HTML5音频参考(HTML5 audio reference)
HTML5对音频和视频播放和控制有很好的支持。 官方HTML5参考: http : //www.w3.org/TR/html5/
我在一些网页中看到音频对象具有play()和pause()函数,也称为“currentTime”的属性等等。
然而,“play”,“pause”和“currentTime”甚至没有在官方的HTML5参考文献中记录。 我在哪里可以找到HTML5音频的完整参考?
最好的问候,大卫
HTML5 has a good support for audio and video playback and control. The official HTML5 reference: http://www.w3.org/TR/html5/
I've seen in some web pages that the audio object has the play() and pause() functions, also an attribute called "currentTime", and many more things.
However, "play", "pause" and "currentTime" is not even documented in the official HTML5 reference. Where can I find a full reference of HTML5 audio?
Best regards, David
最满意答案
play(),pause()等来自HTMLMediaElement接口,这里记录: http : //www.w3.org/TR/html5/video.html#htmlmediaelement
play(), pause() etc come from HTMLMediaElement interface, documented here: http://www.w3.org/TR/html5/video.html#htmlmediaelement
相关问答
更多-
音频不能在html5中使用(Audio not working in html5)[2022-10-01]
Firefox不支持MP3。 它不会显示回退消息,因为它支持音频标签。 https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements#MPEG_H.264_(AAC_or_MP3) Firefox doesn't support MP3. It won't show the fallback message because it supports the audio tag. https:// ... -
通过HTML5输入音频?(Audio input via HTML5?)[2022-03-09]
网络摄像头和麦克风支持不是HTML 5规范的特色 新的API 除了指定标记之外,HTML5还指定脚本应用程序编程接口(API)。 现有的文档对象模型(DOM)接口被扩展并记录了事实上的功能。 还有新的API,例如: 立即模式的画布元素 2D绘图定时媒体播放 离线存储数据库(离线网站 应用程序)文件编辑 拖放交叉文档 消息(web消息)浏览器 历史管理MIME类型和 协议处理器注册。 微观数据 一些新功能是HTML5的一部分,主要是因为没有志愿者将HTML5拆分并保留这些功能的单独规范。 Webcam and ... -
HTML5音频混合(HTML5 Audio Mixing)[2022-07-26]
目前在我看来这是不可能的(如果它应该是html5并且由IE和Firefox支持),请参阅支持带有音频API支持的音频API 浏览器的浏览器列表。 但是这些信息可能已经过时了。(这些浏览器更新频繁) 您可以等待,首先只提供Chrome并希望其他浏览器赶上(IE可能是个问题)。 或者你使用Java(如果你不喜欢flash)。 另一种技术是Silverlight,但它已经“死了”,所以我不推荐它。 我希望我的输入有所帮助。 At the moment in my opinion it is not possibl ... -
使用HTML5音频和jQuery调用对象(this)的引用(Use of reference to calling object (this) using HTML5 audio and jQuery)[2022-07-26]
这里有一个处理ended事件的HTML5播放列表示例,如果有帮助的话? 在你的事件处理程序中引用this ,但在这个上下文中, this指的是捕获事件的DOM元素,即你的audio元素..试试这个: function myPlaylist(){ var self = this; var player = document.createElement('audio'); this.next = function (){ // Picks next song in t ... -
如果你只是要下载文件,你不需要
-
使用jQuery设置HTML5音频的属性音量不起作用(Setting property volume of HTML5 audio with jQuery not working)[2022-08-26]
在你的线上: $('.audio').prop(volume, 0.1); 您将volume作为变量传递,而不是字符串。 你没有一个名为volume的变量,这就是为什么你收到关于它没有被定义的错误。 尝试将其更改为: $('.audio').prop("volume", 0.1); In your line: $('.audio').prop(volume, 0.1); You are passing volume as a variable not as a string. You do not h ... -
不会喜欢这个答案,但Chromecast根本不支持自签名证书。 它构建在Chromium安全模型中。 如果您可以将证书装载到证书商店中,它就可以工作(Android和Fire平板电脑和电视可以做到这一点),但这可能会有所帮助,但Chromecast(和FireStick)无法做到这一点。 Not gonna like this answer, but Chromecast simply won't support self-signed certs. It is built into the Chromiu ...
-
这是我如何做到的 - 你可以在http://labs.dinahmoe.com/dynamicmusicengine/上看到它。只需将liveSource连接到这个JavaScriptNode(还有context.createScriptProcessor(4096,1,1)这是新的语法,虽然两者都将得到支持,根据http://www.w3.org/2011/audio/wiki/F2F_Mar_2013 ) var levelChecker = context.createJavaScriptNode(4 ...
-
HTML5音频 - 分析输出?(HTML5 Audio — analyzing output?)[2022-10-23]
在Firefox中,它是可能的,但据我所知它还没有标准化(Chrome也可能支持它): https://wiki.mozilla.org/Audio_Data_API Webkit API提案: https : //dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html 以及一些相关的文章/演示: http://ajaxian.com/by/topic/sound http://ajaxian.com/archives/amazing-au ... -
HTML5音频参考(HTML5 audio reference)[2022-11-11]
play(),pause()等来自HTMLMediaElement接口,这里记录: http : //www.w3.org/TR/html5/video.html#htmlmediaelement play(), pause() etc come from HTMLMediaElement interface, documented here: http://www.w3.org/TR/html5/video.html#htmlmediaelement