简体   繁体   English

将AAC(M4A)文件嵌入HTML

[英]Embed aac (m4a) file into HTML

I'm searching for the best up-to-date way to embed a m4a file into HTML. 我正在寻找将m4a文件嵌入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. 通过JavaScript控制音量以淡入和淡出以及检测是否安装了QuickTime插件也很重要。

Is there any JavaScript library that can do this? 有没有可以做到这一点的JavaScript库? 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. 我在看apple.com,他们使用的是称为“ audio-preview-url”的html标签,但我不知道它们是如何嵌入quicktime插件来播放该预览URL的。

Another 另一个

thx, tux 礼服

I solved it by myself: I'm now using the AC_QuickTime.js from quicktime to embed the code. 我自己解决了这个问题:我现在使用的是来自quicktime的AC_QuickTime.js来嵌入代码。 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. 如果有人不知道,那么当您尝试隐藏时间轴本身时,插件会有奇怪的行为:当时间轴在HTML文件中可见时,您只能通过javascript控制插件。 I don't know why, if anybody has a solution, feel free to tell me ;) 我不知道为什么,如果有人有解决方案,请随时告诉我;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM