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
{{ message }}
This repository was archived by the owner on Sep 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,9 @@ var player = new Clappr.Player(
44
44
hlsUseNextLevel:false,
45
45
hlsMinimumDvrSize:60,
46
46
hlsRecoverAttempts:16,
47
+
hlsPlayback: {
48
+
preload:true,
49
+
},
47
50
playback: {
48
51
extrapolatedWindowNumSegments:2,
49
52
triggerFatalErrorOnResourceDenied:false,
@@ -83,6 +86,26 @@ The `hls.js` have recover approaches for some fatal errors. This option sets the
83
86
84
87
If this option is set to true, the playback will triggers fatal error event if decrypt key http response code is greater than or equal to 400. This option is used to attempt to reproduce iOS devices behaviour which internally use html5 video playback.
85
88
89
+
#### hlsPlayback
90
+
> Soon (in a new breaking change version), all options related to this playback that are declared in the scope of the `options` object will have to be declared necessarily within this new scope!
91
+
92
+
Groups all options related directly to `HlsjsPlayback` configs.
93
+
94
+
```javascript
95
+
var player =newClappr.Player(
96
+
{
97
+
...
98
+
hlsPlayback: {
99
+
preload:true,
100
+
},
101
+
});
102
+
```
103
+
104
+
#### `hlsPlayback.preload`
105
+
> Default value: `true`
106
+
107
+
Configures whether the source should be loaded as soon as the `HLS.JS` internal reference is setup or only after the first play.
108
+
86
109
#### hlsjsConfig
87
110
88
111
As `HlsjsPlayback` is based on `hls.js`, it's possible to use the available `hls.js` configs too. You can check them out [here](https://github.com/video-dev/hls.js/blob/master/docs/API.md#fine-tuning).
0 commit comments