1.0.1 • Published 3 years ago

videojs-plugin-markers v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Install via npm

npm install videojs-plugin-markers

Script

<link rel="stylesheet" href="videojs-plugin-markers/index.css" />
<script src="videojs-plugin-markers/index.js"></script>

Ssage

var video = videojs('test_video');

video.markersPlugin({
  style: {
    'background': 'red'
  }
});

player.markersPlugin().clear();

player.markersPlugin().add([
  {
    time: 10,
    text: 'text'
  },
  {
    time: 50,
    text: 'text2'
  }
]);