mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-19 08:32:05 +00:00
update hls.js loading props
This commit is contained in:
parent
4ad4114125
commit
3af0a8aaa2
1 changed files with 2 additions and 1 deletions
|
|
@ -151,7 +151,8 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
|
|||
if (!hls) {
|
||||
hls = new Hls({
|
||||
autoStartLoad: true,
|
||||
maxBufferSize: 500 * 1000 * 1000, // 500 mb of buffering, should load more fragments at once
|
||||
maxBufferLength: 120, // 120 seconds
|
||||
maxMaxBufferLength: 240,
|
||||
fragLoadPolicy: {
|
||||
default: {
|
||||
maxLoadTimeMs: 30 * 1000, // allow it load extra long, fragments are slow if requested for the first time on an origin
|
||||
|
|
|
|||
Loading…
Reference in a new issue