2

https://github.com/nicetip/videojs-speed

Could anyone help me in using this plugin in latest version of video.js?

Hussnain Cheema
  • 152
  • 5
  • 15

2 Answers2

14

This is built into the most recent versions of Video.js, so the plugin is unnecessary. Now you can simply pass an array of playbackRates in the Video.js configuration and you're good to go. Here's a working example.

Keep in mind that this only works with the HTML5 playback tech. Good luck!

Matt McClure
  • 2,046
  • 2
  • 18
  • 19
4

add the option { 'playbackRates': [0.7, 1.0, 1.5, 2.0] }

in script: videojs('J_video_player', option, function() {})

or in dom tag: <video data-setup='{ "playbackRates": [0.5, 1, 1.5, 2] }'></video>

It's work!

Surmon
  • 257
  • 3
  • 6