Does this SDK support playing remote URIs? #65
Comments
+1 I am seeking remote url support too |
This feature is useful, looking forward to seeing it soon |
+1,as soon as possible |
I met the same trouble.It just can play the local video by this method(loadVideo(Uri)).But if your file is too big ,it does not work.I want to enter the video link, then you can play video. Do not know how to get. This is my demand is not supported? This function is perfect or. thanks! |
+1 this is a must have! |
Just as a follow up to anyone who's interested: BUT if you're really in a pinch (like I was), I got remote URL's to work by building a custom downloader which downloads the .mp4 video resource to the device. Then when it reaches about 10% completion, I start playing the file back using the SDK's It worked fine and was easy to write, but was by no means optimal. |
Looks like this feature is popular! Thanks for the feedback, we'll definitely place this high on our TODO list. |
+1, would be very welcoming to have |
+1, an out-of-the-box solution to this would be totally awesome |
@dav-cz hello,when this can be completed?And how can i use other mediaplayers play videos on the videowidget? |
We added support for remote URLs (e.g. www.domain.com/file.mp4) in v 0.8. Pretty basic for now as it supports only mono 360, but we'll improve this in future versions. |
By the way, thanks all for the massive feedback on this issue. This has helped up prioritize this even while we were super focused on adding support for NDK and Daydream developer preview. |
@dav-cz , thanks for your effort. I have issues in playing the sample video from both local and remote uri. The video was playing, however, the whole screen was black. All I heard was just the audio. Do you have any suggestions to fix this issue? |
Hi @aaronliew, could you create a separate bug for this? with logcat / phone model / android API / whether you have a back screen with a sample video such as http://techslides.com/demos/sample-videos/small.mp4 |
@dav-cz I'm having trouble playing a remote video due to inability to buffer. The video in question is: When I drop the video in as a static asset everything plays perfectly. When trying to stream, the video stops and does not start on its own again. Is there a way to control how much is download before starting as well as general buffering strategies? The only code change I made to SimpleVrVideoActivity is to change the url in async task to I see that there's some generated code that deals with exoplayer, maybe there are more hooks that can be exposed? |
What phone / Android version are you using? Anything interesting in logcat? I'm able to play your video with the sample app on Nexus 5 running Android 5.0.1.
|
5x N beta 4. Will confirm on lots of devices on Monday
|
@dav-cz apologies for posting on an older issue but we did some more tests and the issue is only on N Beta devices. Just a heads up that there seems to be buffering difference between 5X M & 5X N Beta 4 |
I've hosted a few monoscopic and stereoscopic .mp4 files which I've tried to play in the
simplevideoviewwidget
sample, but haven't had any luck. I just added in a line to override the local uri with a remote uri:I just got it working with iOS sample where the docs specify that the load method works with remote URL's, but the Android docs for
loadVideo(Uri)
make no such promise. I'm just wondering if there currently is support for playback of remotely hostedUri
s (or support in the near future).Thanks
The text was updated successfully, but these errors were encountered: