在audio.js中禁用快进音频 [英] Disable fast forward audio in audio.js

查看:262
本文介绍了在audio.js中禁用快进音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我为我使用了 https://kolber.github.io/audiojs/插件应用程序.有一个像使用鼠标一样转发音频的选项,我可以转发音频.我想在用户界面中使用jquery或css禁用转发.

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.

推荐答案

似乎他们没有该图书馆的任何正式文档.

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.

我不推荐这样做,但是如果该库提供了更合适的方法,那就是使用正确的Api.

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

这篇关于在audio.js中禁用快进音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆