BaseHlsVideo
Component to implement the HLS.js JavaScript library which adds an HTTP Live Streaming client. It relies on HTML5 video and MediaSource Extensions for playback.
Props
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| mediaUrl | url of the media to be displayed | string | - | '' |
| mediaPosterUrl | url of image for poster property in html5 video tag | string | - | '' |
| displaySize | set height and with from outside | object | - | { height: '720px', width: '1280px' } |
| autoplay | start video on load | boolean | - | false |
| buttonTitle | define play button text could be string or path to i18n json as well | string | - | 'Play' |
| hlsStartLevel | define startLevel (size) of hls-video Note: The default value of -1 indicates automatic start level selection. | number | - | -1 |
Methods
play
initialize hls player and start video
pause
pause video