Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to play a mp4 video in loop using the ExtractorRendererBuilder #649

Closed
SilkSama opened this issue Jul 23, 2015 · 1 comment
Labels

Comments

@SilkSama
Copy link

Hi,

I need to play short videos in loop from a server. I try to use the seek method to replay the video when the ExoPlayer.STATE_ENDED is reached but the video is play from the server again (no kind of cache).
Are there specific parameters to be defined to play a video in loop without reload it from server again and again or I need to download the video before and play it from the local file system ?

Thank you in advance for your help.

@ojw28
Copy link
Contributor

ojw28 commented Jul 27, 2015

This is not currently supported as a built in feature. You could write your own DataSource implementation to cache the video data on disk the first time it's requested (and serve it from disk for subsequent requests). We have a related request that would add support to this directly to the library here: #420. You could alternatively just download the video first and play it from a local file uri as you suggest.

@ojw28 ojw28 closed this as completed Jul 27, 2015
@ojw28 ojw28 added the question label Jul 27, 2015
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants