Browse Source

docs: Update overrideNative information (#599)

pull/737/head
mister-ben 6 years ago
committed by GitHub
parent
commit
bfdeb33345
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 27
      README.md

27
README.md

@ -137,19 +137,27 @@ Is it recommended to use the `<video-js>` element or load a source with `player.
## Compatibility
### Via MSE
The [Media Source Extensions](http://caniuse.com/#feat=mediasource) API is required for http-streaming to play HLS or MPEG-DASH.
### Browsers which support MSE
- Chrome
- Firefox
- Internet Explorer 11 Windows 10 or 8.1
Using the [overrideNative](#overridenative) option
These browsers have some level of native HLS support, which will be used unless the [overrideNative](#overridenative) option is used:
- Chrome Android
- Firefox Android
- Edge
### Native only
- Mac Safari
- iOS Safari
Mac Safari does have MSE support, but native HLS is recommended
### Flash Support
This plugin does not support Flash playback. Instead, it is recommended that users use the [videojs-flashls-source-handler](https://github.com/brightcove/videojs-flashls-source-handler) plugin as a fallback option for browsers that don't have a native
[HLS](https://caniuse.com/#feat=http-live-streaming)/[DASH](https://caniuse.com/#feat=mpeg-dash) player or support for [Media Source Extensions](http://caniuse.com/#feat=mediasource).
@ -323,20 +331,15 @@ var player = videojs('playerId', {
html5: {
hls: {
overrideNative: true
}
},
nativeAudioTracks: false,
nativeVideoTracks: false
}
});
// via the source
var player = videojs('playerId');
player.src({
src: 'https://example.com/index.m3u8',
type: 'application/x-mpegURL',
overrideNative: true
});
```
Since MSE playback may be desirable on all browsers with some native support other than Safari, `overrideNative: !videojs.browser.IS_SAFARI` could be used.
##### blacklistDuration
* Type: `number`
* can be used as an initialization option

Loading…
Cancel
Save