在页面内播放ogg?
当我看到 http://www.vorbis.com/music/Hydrate 时,我感到非常惊讶-Kenny_Beltrey.ogg 链接没有给我下载选项,但有一个播放器不闪光播放音频。 (FireFox)
有没有办法可以将其嵌入到页面上?
I was pretty surprised when i saw http://www.vorbis.com/music/Hydrate-Kenny_Beltrey.ogg link not give me a download option but had a player that was not flash playing the audio back. (FireFox)
Is there a way i can embed this onto a page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 HTML5
音频
标记。PS 虽然您标记为
firefox
,但 Chrome、Safari 和 Opera 10.5 也支持audio
Use the HTML5
Audio
tag.P.S. Although you tagged as
firefox
, Chrome, Safari and Opera 10.5 also have support foraudio
您可以使用 HTML5 将其嵌入到页面中,但它不会在浏览器之间一致地播放。
跨浏览器获得一致的音频/视频播放的唯一方法是使用插件,而 Flash 拥有最广泛的用户渗透率。
You can use HTML5 to embed this on a page, but it will not play back consistently across browsers.
The only way to get consistent audio/video playback across browsers is to use a plugin and Flash has the widest user penetration.
您正在寻找 HTML5
标记。
请注意,IE 不支持它。
You're looking for the HTML5
<audio>
tag.Note that it's not supported by IE.