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: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,23 @@ var player = new Clappr.Player({
24
24
playbackType:'live',
25
25
bufferTime:1,
26
26
startLevel:0,
27
+
switchRules: {
28
+
"SufficientBandwidthRule": {
29
+
"bandwidthSafetyMultiple":1.15,
30
+
"minDroppedFps":2
31
+
},
32
+
"InsufficientBufferRule": {
33
+
"minBufferLength":2
34
+
},
35
+
"DroppedFramesRule": {
36
+
"downSwitchByOne":10,
37
+
"downSwitchByTwo":20,
38
+
"downSwitchToZero":24
39
+
},
40
+
"InsufficientBandwidthRule": {
41
+
"bitrateMultiplier":1.15
42
+
}
43
+
}
27
44
},
28
45
});
29
46
```
@@ -40,6 +57,7 @@ The plugin accepts several **optional** configuration options, such as:
40
57
-`autoSwitch` (default **false**) - Whether video should autoSwitch quality
41
58
-`useAppInstance` (default **false**) - Set it to `true` if your source url contains the app instance (not required if the app instance is `_definst_`).
42
59
-`proxyType` (default **none**) - Determines which fallback methods are tried if an initial connection attempt to Flash Media Server fails.
60
+
-`switchRules` (default **system defined**) - Rules defined to autoSwitch video quality based in some conditions.
0 commit comments