mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
WebRTC: Add support for A/V only WHEP/WHEP player. v6.0.116 (#3964)
--------- Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
b891c8b587
commit
26f4ab9923
6 changed files with 68 additions and 23 deletions
|
@ -242,11 +242,11 @@
|
|||
hlsPlayer = new Hls({
|
||||
enableWorker: true, // Improve performance and avoid lag/frame drops.
|
||||
lowLatencyMode: true, // Enable Low-Latency HLS part playlist and segment loading.
|
||||
liveSyncDurationCount: 0, // Start from the last segment.
|
||||
liveMaxLatencyDurationCount: 4, // Maximum delay allowed from edge of live.
|
||||
maxBufferLength: 5, // Maximum buffer length in seconds.
|
||||
maxMaxBufferLength: 8, // The max Maximum buffer length in seconds.
|
||||
maxLiveSyncPlaybackRate: 2, // Catch up if the latency is large.
|
||||
liveSyncDurationCount: 2, // Start from the last few segments.
|
||||
liveMaxLatencyDurationCount: 10, // Maximum delay allowed from edge of live.
|
||||
maxBufferLength: 8, // Maximum buffer length in seconds.
|
||||
maxMaxBufferLength: 10, // The max Maximum buffer length in seconds.
|
||||
maxLiveSyncPlaybackRate: 1.2, // Catch up if the latency is large.
|
||||
liveDurationInfinity: true // Override current Media Source duration to Infinity for a live broadcast.
|
||||
});
|
||||
hlsPlayer.loadSource(r.url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue