Disable fast forward audio in audio.js

谁说胖子不能爱 提交于 2020-01-07 03:15:29

问题


Hi everyone,

I had used https://kolber.github.io/audiojs/ plugin for my application.There is a option to forward audio like using mouse I can forward audio.I want to disable the forward in user interface using jquery or css.

I tried searching in many ways.Please anyone help me to get out this issue.Thanks in advance.


回答1:


Don't seem like they have any official documentation for the Library.

One hack you can apply is unbinding the event on the player progress bar.

$('scrubber').unbind('click'); // Not passing click will unbind all events.

This way user won't be able to click the progress and forward it.

I wouldn't recommend it, but more suitable way would be using proper Api if provided by the library.



来源:https://stackoverflow.com/questions/44667690/disable-fast-forward-audio-in-audio-js

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