You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: MediaBrowser.WebDashboard/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.js
Copy file name to clipboardexpand all lines: MediaBrowser.WebDashboard/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html
Copy file name to clipboardexpand all lines: MediaBrowser.WebDashboard/dashboard-ui/bower_components/hls.js/API.md
+28-7
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,7 @@ configuration parameters could be provided to hls.js upon instantiation of Hls O
170
170
171
171
var config = {
172
172
autoStartLoad :true,
173
+
startPosition :-1,
173
174
capLevelToPlayerSize:false,
174
175
debug :false,
175
176
defaultAudioCodec :undefined,
@@ -228,7 +229,14 @@ a logger object could also be provided for custom logging : ```config.debug=cust
228
229
(default true)
229
230
230
231
- if set to true, start level playlist and first fragments will be loaded automatically, after triggering of ```Hls.Events.MANIFEST_PARSED``` event
231
-
- if set to false, an explicit API call (```hls.startLoad()```) will be needed to start quality level/fragment loading.
232
+
- if set to false, an explicit API call (```hls.startLoad(startPosition=-1)```) will be needed to start quality level/fragment loading.
233
+
234
+
#### ```startPosition```
235
+
(default -1)
236
+
237
+
- if set to -1, playback will start from initialTime=0 for VoD and according to ```liveSyncDuration/liveSyncDurationCount``` config params for Live
238
+
- Otherwise, playback will start from predefined value. (unless stated otherwise in ```autoStartLoad=false``` mode : in that case startPosition can be overrided using ```hls.startLoad(startPosition)```).
239
+
232
240
233
241
#### ```defaultAudioCodec```
234
242
(default undefined)
@@ -477,36 +485,46 @@ parameter should be a boolean
477
485
#### ```abrEwmaFastLive```
478
486
(default : 5.0)
479
487
480
-
Fast bitrate Exponential moving average half-life, used to compute average bitrate for Live streams
488
+
Fast bitrate Exponential moving average half-life, used to compute average bitrate for Live streams
481
489
Half of the estimate is based on the last abrEwmaFastLive seconds of sample history.
482
490
Each of the sample is weighted by the fragment loading duration.
491
+
483
492
parameter should be a float greater than 0
484
493
485
494
#### ```abrEwmaSlowLive```
486
495
(default : 9.0)
487
496
488
-
Slow bitrate Exponential moving average half-life, used to compute average bitrate for Live streams
497
+
Slow bitrate Exponential moving average half-life, used to compute average bitrate for Live streams
489
498
Half of the estimate is based on the last abrEwmaSlowLive seconds of sample history.
490
499
Each of the sample is weighted by the fragment loading duration.
491
-
parameter should be a float greater than abrEwmaFastLive
492
500
501
+
parameter should be a float greater than abrEwmaFastLive
493
502
494
503
#### ```abrEwmaFastVoD```
495
504
(default : 4.0)
496
505
497
-
Fast bitrate Exponential moving average half-life, used to compute average bitrate for VoD streams
506
+
Fast bitrate Exponential moving average half-life, used to compute average bitrate for VoD streams
498
507
Half of the estimate is based on the last abrEwmaFastVoD seconds of sample history.
499
508
Each of the sample is weighted by the fragment loading duration.
509
+
500
510
parameter should be a float greater than 0
501
511
502
512
#### ```abrEwmaSlowVoD```
503
513
(default : 15.0)
504
514
505
-
Slow bitrate Exponential moving average half-life, used to compute average bitrate for VoD streams
515
+
Slow bitrate Exponential moving average half-life, used to compute average bitrate for VoD streams
506
516
Half of the estimate is based on the last abrEwmaSlowVoD seconds of sample history.
507
517
Each of the sample is weighted by the fragment loading duration.
518
+
508
519
parameter should be a float greater than abrEwmaFastVoD
509
520
521
+
#### ```abrEwmaDefaultEstimate```
522
+
(default : 500000)
523
+
524
+
Default bandwidth estimate in bits/second prior to collecting fragment bandwidth samples.
525
+
526
+
parameter should be a float
527
+
510
528
511
529
#### ```abrBandWidthFactor```
512
530
(default : 0.8)
@@ -599,9 +617,12 @@ by default, hls.js will automatically start loading quality level playlists, and
599
617
600
618
however if ```config.autoStartLoad``` is set to ```false```, the following method needs to be called to manually start playlist and fragments loading:
601
619
602
-
#### ```hls.startLoad()```
620
+
#### ```hls.startLoad(startPosition=-1)```
603
621
start/restart playlist/fragment loading. this is only effective if MANIFEST_PARSED event has been triggered and video element has been attached to hls object.
604
622
623
+
startPosition is the initial position in the playlist.
624
+
if startPosition is not set to -1, it allows to override default startPosition to the one you want (it will bypass hls.config.liveSync* config params for Live for example, so that user can start playback from whatever position)
625
+
605
626
#### ```hls.stopLoad()```
606
627
stop playlist/fragment loading. could be resumed later on by calling ```hls.startLoad()```
Copy file name to clipboardexpand all lines: MediaBrowser.WebDashboard/dashboard-ui/bower_components/hls.js/design.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ design idea is pretty simple :
48
48
49
49
-[src/controller/abr-controller.js][]
50
50
- in charge of determining auto quality level.
51
-
- auto quality switch algorithm is bitrate based : fragment loading bitrate is monitored and smoothed using 2 exponential weighted moving average (a fast one, to adapt quickly on bandwidth drop and a slow one, to avoid ramping up to quickly on bandwidth increase)
51
+
- auto quality switch algorithm is bitrate based : fragment loading bitrate is monitored and smoothed using 2 exponential weighted moving average (a fast one, to adapt quickly on bandwidth drop and a slow one, to avoid ramping up too quickly on bandwidth increase)
52
52
- in charge of **monitoring fragment loading speed** (by monitoring data received from FRAG_LOAD_PROGRESS event)
53
53
- "expected time of fragment load completion" is computed using "fragment loading instant bandwidth".
54
54
- this time is compared to the "expected time of buffer starvation".
0 commit comments