Skip to content

Commit 8edbee2

Browse files
committed
added readme
1 parent c358ed5 commit 8edbee2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@ var player = new Clappr.Player({
2424
playbackType: 'live',
2525
bufferTime: 1,
2626
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+
}
2744
},
2845
});
2946
```
@@ -40,6 +57,7 @@ The plugin accepts several **optional** configuration options, such as:
4057
- `autoSwitch` (default **false**) - Whether video should autoSwitch quality
4158
- `useAppInstance` (default **false**) - Set it to `true` if your source url contains the app instance (not required if the app instance is `_definst_`).
4259
- `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.
4361

4462
## Building
4563

0 commit comments

Comments
 (0)