|
Edited by LesVikings at 2019-1-30 02:33 \n\nThank you.
I'm trying to launch the media player scene that I created from a Cordova Plugin to be used in Ionic applications.
I have the code for the player, but I can't figure out how to launch it from my plugin class (it's a CordovaPlugin class). I tried launching my class (derived from XBaseScene) directly but the system can't cast it as an Activity.
I tried creating a XBaseXRActivity class and setting a LauncherScene in the manifest, but that did not work either.
Do you have any idea how I could launch my scene from the Cordova plugin?
Here is an error I get in logcat (it's repeating over and over until the app dies):
- 01-29 13:31:00.507 32202 32483 D NibiruSDKPlugin: Args: ["file:\/\/\/storage\/emulated\/0\/Download\/Onsim\/video_formation2.mp4",{"videoType":1,"videoFormat":0}]
- 01-29 13:31:00.507 32202 32483 D NibiruSDKPlugin: Play video
- 01-29 13:31:00.510 32202 32483 D NibiruSDKPlugin: Starting MediaPlayerView activity
- 01-29 13:31:00.512 2301 3498 I ActivityManager: START u0 {cmp=fr.of2s.onsim_student/cordovapluginnibirusdk.MediaPlayerActivity (has extras)} from uid 10065 on display 0
- 01-29 13:31:00.512 2301 3498 I ActivityManager: activitye: cordovapluginnibirusdk.MediaPlayerActivity, pkg: fr.of2s.onsim_student, vr mode: null
- 01-29 13:31:00.512 2301 3498 W ActivityManager: startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { cmp=fr.of2s.onsim_student/cordovapluginnibirusdk.MediaPlayerActivity (has extras) }
- 01-29 13:31:00.523 32202 32202 D CordovaActivity: Paused the activity.
- 01-29 13:31:00.542 32202 32202 D NibiruStudio: cordovapluginnibirusdk.MediaPlayerActivity ======================== Activity on Create: cordovapluginnibirusdk.MediaPlayerActivity@b89da77
- 01-29 13:31:00.551 32202 32202 D ccc : NibiruVR.clearBeforeInit.false
- 01-29 13:31:00.552 32202 32202 D NibiruStudio: [M] ========== is M Env: false
- 01-29 13:31:00.555 32202 32202 D ccc : NPM.edt.0
- 01-29 13:31:00.556 32202 32202 D ccc : checkClass Failed, not find class com.nibiru.service.NibiruPayService
- 01-29 13:31:00.559 32202 32202 D ccc : use dtr sdk mode
- 01-29 13:31:00.559 32202 32202 D ccc : allow nvr tracker working
- 01-29 13:31:00.564 32202 32202 D ccc : create NibiruVRServiceGL engineType is 0
- 01-29 13:31:00.565 32202 32202 V ccc : [] === init Context=== Thread[main,5,main]
- 01-29 13:31:00.567 32202 32202 D ccc : engine type is 0,0
- 01-29 13:31:00.573 32202 32202 W ccc : cannot load core lib version: no set
- 01-29 13:31:00.573 32202 32202 V ccc : NVR Loader Ver: 2
- 01-29 13:31:00.591 1648 1648 E HWComposer: Invalid layer type change: Client --> Client
- 01-29 13:31:00.597 32202 32202 I nvr-sdk-info: >>> Disable Interaction SDK <<<
- 01-29 13:31:00.597 32202 32202 I nvr-sdk-info: [NibiruSDK] SVer[246], JVer[252], Dual[0], Date[20181017], Sv[14239], DFBR[0],
- 01-29 13:31:00.597 32202 32202 I nvr-sdk-info: Sst[2], Ft[14285714], Tw[0], Xr[1], P[neptune], CS[0],
- 01-29 13:31:00.597 32202 32202 I nvr-sdk-info: Ant[0], 9Trk[1], Spy[0.500000], Oax[0], OaxRot[-2.000000],
- 01-29 13:31:00.597 32202 32202 I nvr-sdk-info: Reticle[0], ET[0], Mtid[32202],Mr[], Channel[],
- 01-29 13:31:00.597 32202 32202 I nvr-sdk-info: TwFifo[0], SyncFrame[0], Tps[1.000000], Inact[0]
- 01-29 13:31:00.599 32202 32202 I nvr-platform: client version: 246
- 01-29 13:31:00.600 32202 32202 I nvr-sdk-info: NVR PLATFORM Ver.23 SUPPORT DTR: 0 ,PLATFORM ID: 11 ,UNREAL DTR: 0 ,OS API: 25_7.1.2 ,CHANNEL VR1030, DualTB 1, LRRefresh 1, UnityDTR 0
- 01-29 13:31:00.602 32202 32202 I nvr-sdk-info: Nibiru OS: 1, ABI: armeabi-v7a, Support DTR: 0, Engine Type: 0, OS Env Ver 1, FrameTime 14285714ms, REL V2.4.6, Oct 17 2018 - 17:13:35
- 01-29 13:31:00.605 1648 1648 E HWComposer: Invalid layer type change: Client --> Client
- 01-29 13:31:00.611 32202 32202 I nvr-sdk-info: Load NoloClient success: connected 0, version is 100 !
- 01-29 13:31:00.611 32202 32202 I nvr-sdk-info: TrackerVR9 Init Succ
- 01-29 13:31:00.611 32202 32202 I nvr-sdk-info: >>>>>> Tracker.init TrackerVR9
- 01-29 13:31:00.599 32202 32202 I s.onsim_student: type=1400 audit(0.0:70): avc: denied { call } for scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:noloservice:s0 tclass=binder permissive=1
- 01-29 13:31:00.599 14153 14153 I Binder:1641_3: type=1400 audit(0.0:71): avc: denied { transfer } for scontext=u:r:noloservice:s0 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=binder permissive=1
- 01-29 13:31:00.599 1659 1659 I Binder:1641_1: type=1400 audit(0.0:72): avc: denied { use } for path="/dev/ashmem" dev="tmpfs" ino=5938 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:noloservice:s0 tclass=fd permissive=1
- 01-29 13:31:00.611 32202 32202 E nvr-sdk-info: Open liblive555_client.so failed ! dlopen failed: library "liblive555_client.so" not found . Change to load libnvr_live555.so
- 01-29 13:31:00.612 32202 32202 E nvr-sdk-info: Open libnvr_live555.so failed ! dlopen failed: library "libnvr_live555.so" not found
- 01-29 13:31:00.613 32202 32202 E nvr-sdk-info: open os service lib failed: dlopen failed: library "libinvrservice.so" not found
- 01-29 13:31:00.613 32202 32202 D PortalApi: call int awInitPortalSdk(int)
- 01-29 13:31:00.613 32202 32202 D libEGL : call EGLBoolean android::eglCustomEnablePortal(int). time=13940.615961
- 01-29 13:31:00.613 32202 32202 E libEGL : call int android::PortalDevice::SetPortalEnabled(int) mode 1:dynamic reprojection
- 01-29 13:31:00.613 32202 32202 D libEGL : PortalDevice: load portal driver
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalInit=0xcd8a9ce5 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalDestroy=0xcd8a9da1 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalSwap=0xcd8a9dd5 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalSetFrameNumber=0xcd8a9e1d from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalReproj=0xcd8a9e55 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalSetTracker=0xcd8a9d61 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalEnableDevice=0xcd8a9e91 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalDisableDevice=0xcd8a9ec9 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalGetOrientation=0xcd8a9f05 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalResetHeadTracker=0xcd8a9f4d from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Get PortalSetWarpStatus=0xcd8a9f89 from /libatw.so
- 01-29 13:31:00.621 32202 32202 D libEGL : Portal MSAA:0 IsUnityApp:0
- 01-29 13:31:00.621 32202 32202 D libEGL : set PortalStatus 1
- 01-29 13:31:00.621 32202 32202 D PortalApi: init portal sdk success
- 01-29 13:31:00.623 32202 32202 I nvr-sdk-info: Service->initialize[0], Service.init nvr for VR9CoreService, isDTRSupport false
- 01-29 13:31:00.623 32202 32202 D ccc : nvr.tw.mode: 0, qualcomm sdk.false
- 01-29 13:31:00.626 32202 32202 D ccc : checkClass Failed, not find class com.nibiru.service.Nibiru6DOFProService
- 01-29 13:31:00.630 32202 32202 D ccc : checkClass Failed, not find class com.nibiru.service.NibiruPayService
- 01-29 13:31:00.630 32202 32202 D ccc : free version do not need preInit !
- 01-29 13:31:00.633 1648 1648 E HWComposer: Invalid layer type change: Client --> Client
- 01-29 13:31:00.638 32202 32202 D ccc : ExtAndroid Sensor Init
- 01-29 13:31:00.650 32202 32202 D ccc : checkClass Failed, not find class com.nibiru.service.NibiruPayService
- 01-29 13:31:00.650 32202 32202 I nvr-platform: client version: 246
- 01-29 13:31:00.650 32202 32202 V test : platform length: 25
- 01-29 13:31:00.656 32202 32202 W ccc : cannot load core lib version: no set
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Welcome to Nibiru VR World
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Release Date: 2018-12-06 07:35:04
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Hardware Platform: VR9
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Nibiru Platform Version: 23
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Frame Time: 16666666
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> VSYNC Support: false
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> VSync Drift: 0
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Screen Mode: SINGLE
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> DTR Opt Mode: false
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> DTR Support: S->false U->false UE->false
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> DTR Impl: FEN
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> DTR Support Render: SYNC MODE
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> MultiView Support: NO SUPPORT
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Refresh Order: R -> L
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Distortion: true
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Tracking Mode: Raw Data Fusion [N]
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Tracking Source: APP
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Performance Level: 2
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Version: SDK->246 JAR->252 DATE->20181206 JID->101 Lib->-1 Ser->5 SVNVER->15027
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> APP Package: fr.of2s.onsim_student
- 01-29 13:31:00.656 32202 32202 I NVR : >>>>>>>>>>>>>>>>>>> Build.VERSION_CODES: 25
- 01-29 13:31:00.661 32202 32202 V ccc : [cordovapluginnibirusdk.MediaPlayerActivity] === init vr service ===0 Thread[main,5,main]
- 01-29 13:31:00.662 32202 32202 D ccc : NO SUPPORT DIRECT RENDER
- 01-29 13:31:00.666 32202 32202 I nvr-sdk-info: on create
- 01-29 13:31:00.675 32202 32202 D ccc : NibiruVRActivity.onCreate.248
- 01-29 13:31:00.777 32202 32202 D ccc : >>>>>> has initCardboardInfo , just pass it !
- 01-29 13:31:00.778 32202 32202 D ccc : App Ver [0.0.2 Base 2]fr.of2s.onsim_student
- 01-29 13:31:00.779 32202 32202 V ccc : [cordovapluginnibirusdk.MediaPlayerActivity] ========set_view_false,false,0 Thread[main,5,main]
- 01-29 13:31:00.826 32202 32202 D NibiruStudio: register cmd receiver
- 01-29 13:31:00.830 32202 32202 D AndroidRuntime: Shutting down VM
- 01-29 13:31:00.831 32202 32202 I System.out: >>>>>>>>>> 程序出错,请查看 sdcard/NibiruSDK.Log目录下log文件...
Copy the Code
Thanks!
|
|