-
Notifications
You must be signed in to change notification settings - Fork 6k
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 There a Loop Mode ? #490
Comments
You can play track again when it ends. |
How can I do it, can you help me. |
For Dash and Smoothstreaming, you can implements LoopEvaluator from FormatEvaluator in ExoPlayer/library/src/main/java/com/google/android/exoplayer/chunk/FormatEvaluator.java |
I use the default one to stream an mp4 video |
/**
} |
Maybe I misunderstand your means. |
Where do you apply that looping format evaluator to? My Problem: I need Adaptive Streaming AND a endless Video Loop.
I am using the DashRenderBuilder from the sample code (https://github.com/google/ExoPlayer/blob/master/demo/src/main/java/com/google/android/exoplayer/demo/player/DashRendererBuilder.java), the only difference is that I apply my Class to the videoChunkSource and not the Adaptive one from the samples. It also Seems that the player gets Released once Media Playback is done, since i cannot switch to another Video when one has finished playing and called STATE_ENDED (wich during playback works....) |
Can someone explain the solution above?. It is a bit confusing. |
Same here, I dont understand what the LoopEvaluator is doing and if its working for looping video. Doesn't feel like it the aswer to the question "is There a Loop Mode ?" |
`
|
Now you can do cool things (if you really want to!) like play a video twice, then play a second video, then loop the whole thing, all seamlessly. new LoopingMediaSource( new LoopingMediaSource(firstVideoSource, 2), secondVideoSource)); You can also just loop, which is probably more useful :). Issue: #490 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132049599
Seamless looping is supported in We'll also be publishing a blog post next week about MediaSource composition, which will include a small section on looping media. I'd suggest subscribing to the blog so you're notified when this happens! |
You can use LoopingMediaSource as source instead. MediaSource source = new ExtractorMediaSource(videoUri, ...); Ref: https://google.github.io/ExoPlayer/guide.html#seamlessly-looping-a-video |
How can I add a loop mode ?
The text was updated successfully, but these errors were encountered: