Mediaelement.js 需要自定义删除音频的持续时间
我现在主要使用 MediaElements.js HTML 5 视频/音频插件来处理音频。
我想自定义外观,因此它只是一个 30x30 播放按钮(我知道如何做),并且持续时间、控件和其他所有内容都被删除。
所以只有带有播放按钮的盒子,没有其他东西。
我该怎么办?
I'm using the MediaElements.js HTML 5 video/audio plugin mainly for the Audio right now.
I would like to customize the look so it's simply a 30x30 play button (which I know how to do) and the Duration, controls, everything else is removed.
So JUST the box with the Play button and nothing else.
how would I go about that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我无法判断您嵌入播放器的方式(有多种方法可以实现),但自定义播放器的最简单方法是添加以下代码:
现在,这将仅针对
< ;video>
标签,但如果您使用标签,代码将如下所示:
设置位于显示“功能”的位置。您可以列出所需的不同控件。它们如下:
只需列出每一项并用引号引起来,并用逗号分隔(最后一项除外)。我希望这有帮助!
Well, I can't tell which way you are embedding the player (there are several ways to do it), but the easiest way to customize the player is by adding the following code:
Right now this will target only the
<video>
tag, but if you are using the<audio>
tag the code would look like this:The settings are located where it says "features." You can list the different controls that you want. These are as follows:
Just list each one with quotations around it, and separate them with commas (except for the last one). I hope this helps!