videojs-mpegtsjs

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i videojs-mpegtsjs

      Weekly Downloads

      8

      Version

      1.0.0

      License

      Apache-2.0

      Unpacked Size

      4.94 kB

      Total Files

      3

      Last publish

      Collaborators

      • kewell