videojs-mpegtsjs
v1.0.0
Published
Video.js tech for MPEG2-TS stream with mpegts.js
Downloads
90
Maintainers
Readme
videojs-mpegts
For mpegts-js.
Installation
npm install --save video.js mpegts.js videojs-mpegtsjs
Usage
You need to include video.js first.
videojs-mpegtsjs
internally depends on mpegts.js
, so there is no need to explicitly introduce mpegts.js.
<video id="#video-js-node"></video>
import videojs from 'video.js'
import 'videojs-mpegtsjs'
videojs('video-js-node', {
mpegtsjs: {
mediaDataSource: {
isLive: true,
cors: false,
withCredentials: false,
},
},
controls: 'control',
preload: 'auto',
height: '505',
})
Thanks to
License
Apache-2.0. Copyright (c) Kewell