loadVideo throws NullPointerException for m3u8 streaming video #145
Comments
Thanks for the report. I was able to reproduce this just now. |
Just a quick update that a fix for this was found, it will be pushed in our next update. |
Thanks for the updates. |
Fixed in v 0.9.0 |
With the latest version of library I am able to reproduce this bug for Samsung Galaxy S3 with Android version 5.1.1 (Cyanogenmod) but I haven't faced this issue on Samsung Galaxy S6 with Android version 5.1.1, Can anyone please confirm? [I face this issue more often in debug mode] @dav-cz Can you please check this? |
On Loading .m3u8 file i am getting error like this.... please help 08-06 12:48:06.611 11657-11671/com.google.vr.sdk.samples.simplevideowidget E/ExoPlayerImplInternal: Internal track renderer error. |
It looks like you have a file that the device is unable to read. Can you On Sat, Aug 6, 2016, 12:22 AM ashwin-sectorqube notifications@github.com
|
@ashwin-sectorqube -- please don't change the topic of this thread. This is a different issue, most likely because you didn't specify inputType = FORMAT_HLS, which is necessary to play m3u8 files as explained in the [reference documentation](https://developers.google.com/vr/android/reference/com/google/vr/sdk/widgets/video/VrVideoView.html#loadVideo%28Uri, com.google.vr.sdk.widgets.video.VrVideoView.Options%29). |
ok sorry.... ive tried that too.... On Mon, Aug 8, 2016 at 10:05 PM, David Coz notifications@github.com wrote:
|
@ashwin-sectorqube please create a new issue for this with logcat and code snippet used to play the file. |
For playing m3u8 all you need to do is change the options input forma to <VrVideoView.Options.FORMAT_HLS> and it will work |
Hi,
I am streaming .m3u8 videos using loadVideo with option FORMAT_HLS, most of the time VrVideoView crashes with NullPointerException. I am using samsung s3 and s6 for my testing and both have similar crash, this crash is intermittent. Below is the logcat for the same.
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:338)
at com.google.vr.sdk.widgets.video.VrVideoRenderer.onDrawFrame(VrVideoRenderer.java:57)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1522)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
Similar bug is reported on GoogleCodeLab android VrVideoView lab. [https://github.com/googlecodelabs/vr_view_app_101/issues/5]
The text was updated successfully, but these errors were encountered: