Google Vr视频错误

时间:2016-06-30 06:46:13

标签: android video google-vr

videoWidgetView.loadVideo(Uri.parse("http://192.168.0.115:8888/googlemap/MageComp.mp4"));

videoWidgetView..loadVideoFromAsset("3dtest3.mp4");

3dtest3.mp4 存储在我的资产文件夹

我在运行时收到此错误。

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.vr.sdk.widgets.video.VideoTexture.getIsTextureSet()' on a null object reference
at com.google.vr.sdk.widgets.video.VrVideoPlayerInternal.prepareFrame(VrVideoPlayerInternal.java:318)
at com.google.vr.sdk.widgets.video.VrVideoRenderer.onDrawFrame(VrVideoRenderer.java:57)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1566)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1272)

1 个答案:

答案 0 :(得分:0)

您错过了将选项对象作为方法调用中的参数传递。 该对象包含有关源(资产/ HLS)和VR视频类型(360 / 3D 360)的相关信息。