private String Path = ""; private int mimeType;
//1跳转播放器 Path=list.get(position ).getVideoUrl(); mimeType= MimeType.ONLINE | MimeType.VIDEO; start();
private void start(){ Pano360ConfigBundle configBundle= Pano360ConfigBundle .newInstance() .setFilePath(Path) .setMimeType(mimeType) .setPlaneModeEnabled(planeModeEnabled) //set it false to see default hotspot .setRemoveHotspot(true) .setVideoHotspotPath(videoHotspotPath); if((mimeType & MimeType.BITMAP)!=0){ //add your own picture here // this interface may be removed in future version. configBundle.startEmbeddedActivityWithSpecifiedBitmap( context, BitmapUtils.loadBitmapFromRaw(context,R.mipmap.ic_launcher)); return; } if(USE_DEFAULT_ACTIVITY) configBundle.startEmbeddedAct