-
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
Keep playback at live edge of custom web socket stream #5604
Comments
Hi @TroyStopera, I'm working in a project with the same characteristics as yours. I noticed the same issue as you and what I've done is:
For me it's not the perfect solution, sometimes playback is really far behind the same stream in iOS, but it seems to recover after buffering. At least is playing in the live edge. Maybe someone have a better solution?? |
The main options you have available are seeking to the live edge with Note that we are also looking into better out-of-the-box support for low-latency streaming soon. There are #5011 and #4904 to track that. |
[REQUIRED] Searched documentation and issues
Stack Overflow, GitHub, and source code/documentation. We have some custom-built ExoPlayer components, so it's been hard to even know what I'm looking for.
[REQUIRED] Question
I had asked a previous question about a custom implementation for raw NAL units. We were able to get that working well enough with a custom
Extractor
,ElementaryStreamReader
, andBaseDataSource
. We have now circled back around to it to improve performance and there are 2 main issues:The question is, what approach can we use to ensure the playback is always playing the latest frames? It doesn't matter to us if frames are skipped/discarded, as this feed is live. I've looked into
Extractor.RESULT_SEEK
as well asLoadControl
but I'm not sure if that is even the right place to start. Thank you.The text was updated successfully, but these errors were encountered: