将 aac (m4a) 文件嵌入 HTML
我正在寻找将 m4a 文件嵌入 HTML 的最佳最新方法。我希望标准控件隐藏并用我自己的控件替换它们。通过JavaScript控制音量淡入淡出以及检测是否安装了QuickTime插件也很重要。
有没有任何 JavaScript 库可以做到这一点?我正在查看 apple.com,他们正在使用名为“audio-preview-url”的 html 标签,但我无法弄清楚他们如何嵌入 Quicktime 插件来播放该预览 url。
另一个
谢谢, 无尾礼服
I'm searching for the best up-to-date way to embed a m4a file into HTML. I want the standard controls to hide and replace them with my own controls. The control of the volume through JavaScript for fade in and fade out and the detection if the QuickTime plugin is installed is also important.
Is there any JavaScript library that can do this? I was looking at apple.com, and they are using an html tag called 'audio-preview-url', but I couldn't figure out, how they embed the quicktime plugin for playing that preview url.
Another
thx,
tux
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己解决了这个问题:我现在使用quicktime中的AC_QuickTime.js来嵌入代码。如果有人不知道,当您尝试隐藏时间线本身时,该插件有一个奇怪的行为:当时间线在 HTML 文件中可见时,您只能通过 javascript 控制该插件。我不知道为什么,如果有人有解决方案,请随时告诉我;)
I solved it by myself: I'm now using the AC_QuickTime.js from quicktime to embed the code. If anybody doesn't know, there is a strange behaviour of the plugin, when you are trying to hide the timeline itself: You can only control the plugin through javascript, when the timeline is visible in your HTML file. I don't know why, if anybody has a solution, feel free to tell me ;)