-
Notifications
You must be signed in to change notification settings - Fork 0
Ultra low latency mode #16
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
Conversation
…aylists and segments. Fallback to MPEG-TS demuxer
…e the playback starts as fast as possible in ultra low latency mode
lib/ex_hls/client/live/reader.ex
Outdated
| forwarder: forwarder, | ||
| segment_format: segment_format | ||
| segment_format: segment_format, | ||
| ultra_low_latency?: ultra_low_latency? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me this option name can be confused with LL-HLS, so I'd rename it to something more different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about live_edge_mode?
lib/ex_hls/client/live/reader.ex
Outdated
| defp should_start_playing?(%{live_edge_mode?: true}) do | ||
| true | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move usage of live_edge_mode? filed into or statement in the next function clause
lib/ex_hls/client/live/reader.ex
Outdated
| end | ||
|
|
||
| defp next_segment_to_download_seq_num(%{max_downloaded_seq_num: nil} = state) do | ||
| # in the ultra low latency mode it skips to the most recent segment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 ultra low latency
lib/ex_hls/client.ex
Outdated
| the client will treat HLS segments based on the extension in their name, | ||
| falling back `MPEG-TS` if the cannot recognize the extension. | ||
| Passing `live_edge_mode?: true` option turns on ultra low latency mode of the client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ultra low latency mode - it is now live edge mode
This PR:
ultra_low_latency?option to the Client which allows for turning on the ultra low latency modeThe ultra low latency mode:
Closes membraneframework/membrane_core#1018