Skip to content

Commit

Permalink
Merge pull request #3 from kafeltz/update_osmf
Browse files Browse the repository at this point in the history
added readme
  • Loading branch information
Germano Fronza authored Sep 6, 2016
2 parents ade37f9 + 8edbee2 commit c55c947
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ var player = new Clappr.Player({
playbackType: 'live',
bufferTime: 1,
startLevel: 0,
switchRules: {
"SufficientBandwidthRule": {
"bandwidthSafetyMultiple": 1.15,
"minDroppedFps": 2
},
"InsufficientBufferRule": {
"minBufferLength": 2
},
"DroppedFramesRule": {
"downSwitchByOne": 10,
"downSwitchByTwo": 20,
"downSwitchToZero": 24
},
"InsufficientBandwidthRule": {
"bitrateMultiplier": 1.15
}
}
},
});
```
Expand All @@ -40,6 +57,7 @@ The plugin accepts several **optional** configuration options, such as:
- `autoSwitch` (default **false**) - Whether video should autoSwitch quality
- `useAppInstance` (default **false**) - Set it to `true` if your source url contains the app instance (not required if the app instance is `_definst_`).
- `proxyType` (default **none**) - Determines which fallback methods are tried if an initial connection attempt to Flash Media Server fails.
- `switchRules` (default **system defined**) - Rules defined to autoSwitch video quality based in some conditions.

## Building

Expand Down

0 comments on commit c55c947

Please sign in to comment.