googlevr / gvr-android-sdk

Google VR SDK for Android
http://developers.google.com/vr/android/
Other
3.28k stars 1.28k forks source link

VrVideoView Doesn't Support HLS Playback #116

Closed azeemmohd closed 8 years ago

azeemmohd commented 8 years ago

I have a use-case where I need to play HLS Streams of mono 360 videos in VrVideoView widget. I see that this widget is backed by the ExoPlayer, but is using a HttpDataSource instead of a HLS data source in case the uri provided is for a HLS stream.

I will be very thankful if you can make a quick fix for supporting HLS Streams via the VrVideoView widget.

azeemmohd commented 8 years ago

Sample HLS stream that I am testing: httplive://vevoplaylist-live.hls.adaptive.level3.net/vevo/ch1/appleman.m3u8

dav-cz commented 8 years ago

Hi @azeemmohd, we had an issue with the push yesterday. With today's update you'll find HLS support in VrVideoView. Use the loadVideo(url, options) function, with options.inputFormat = Options.FORMAT_HLS.

In particular your video now works with the sample video app:

adb shell am start -a android.intent.action.VIEW -n com.google.vr.sdk.samples.simplevideowidget/.SimpleVrVideoActivity -d "http://vevoplaylist-live.hls.adaptive.level3.net/vevo/ch1/appleman.m3u8" --ei inputFormat 2

azeemmohd commented 8 years ago

@dav-cz : That's awesome, thanks a lot.