问题
https://github.com/nicetip/videojs-speed
Could anyone help me in using this plugin in latest version of video.js?
回答1:
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!
回答2:
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!
来源:https://stackoverflow.com/questions/24684339/speed-button-latest-version-of-video-js