Speed button latest version of video.js

◇◆丶佛笑我妖孽 提交于 2019-12-23 05:23:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!