如何使用“视频” Safari 上的元素
<video id="myVideo" src="2.mp4" controls="" tabindex="0">decoder not found</video>
这段代码在 safari 上显示“未找到解码器”(我的操作系统是 windows xp),
为什么?
谢谢
,这个 html5 视频可以在 firefox 和 chrome 上显示,但不能在 safari 上显示。 http://shapeshed.com/examples/HTML5-video-element/
为什么?
<video id="myVideo" src="2.mp4" controls="" tabindex="0">decoder not found</video>
this code show ' decoder not found' on safari (my os is windows xp)
why ?
thanks
and this html5 vedio can be show on firefox and chrome ,but not safari.
http://shapeshed.com/examples/HTML5-video-element/
why ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
“未找到解码器”意味着视频的解码器尚未在浏览器中实现(这是一条后备消息)。
H.264存在专利问题,因此一些浏览器不愿意支持它,而Ogg格式是开源的,目前几乎所有浏览器都支持它。
进一步阅读
HTML5 维基百科条目
深入了解 HTML5
'Decoder not found' means the decoder for the video has not been implemented yet in the browser (its a fallback message).
H.264 has patent issues, so some browsers are reluctant to support it, whereas the Ogg format is open-source and it is supported by almost all browsers at the moment.
Further reading
HTML5 Wikipedia Entry
Dive into HTML5
试试这个,那确实应该有效;
添加添加 ogg 就像插入一样简单
希望这会有所帮助!
try this, that really should work;
add adding ogg is as easy as inserting
hope this helps!
nvl,“未找到解码器”消息只是作者在给出的示例标记中提供的后备文本。在这方面它似乎不是有用的诊断信息。
给出的示例标记应该在 Safari 4 中工作。检查视频是否确实存在、您是否安装了 QuickTime 并且正在运行最新版本的 Safari。
但按照 futta 的建议,提供 Ogg Theora/Vorbis 替代方案是一个好主意,因为它也可以在 Opera 和 Firefox 中运行。
nvl, the "decoder not found" message is just the fallback text provided by the author in the example markup given. It doesn't appear to be useful diagnostic information in this regard.
The example markup given should work in Safari 4. Check that the video actually exists, and that you have QuickTime installed and that you're running the latest version of Safari.
But doing as futta suggested by providing an Ogg Theora/Vorbis alternative is a good idea, as it will then work in Opera and Firefox too.
正如其他人所指出的,“未找到解码器”是根本不实现的浏览器显示的后备消息。 Safari 使用 QuickTime 作为其媒体引擎,因此当未安装 QuickTime 时,它不支持并显示后备。
As others have noted, 'decoder not found' is the fallback message displayed by a browser that does not implement at all. Safari uses QuickTime as its media engine, so when QuickTime is not installed it has no support and displays the fallback.