Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
218 views
in Technique[技术] by (71.8m points)

Set different options for playbackRate for video HTML tag without using JS

Is there any way to add 2x speed rate to HTML tag without using JS? Is it possible to add any special property or attribute to have two different playbackRate for the client side?

Thanks

<div>
    <video controls="" class="-fullwidth">
        <source src="/cms/_4.mp4" type="video/mp4">
        Your browser does not support the video tag.
    </video>
</div>
question from:https://stackoverflow.com/questions/65883627/set-different-options-for-playbackrate-for-video-html-tag-without-using-js

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The problem is solved by using videojs player. It has a property that we could add in a video tag to enable us to change the playback rate. this post has a good example about it.

thanks.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...