我有一个 OVG 视频想要放入我的网站
我有一个 OVG 视频,我想将其放入我的网站中。我对该文件格式了解不多,所以我担心它的跨浏览器兼容性如何。我知道 FF 会播放该文件,但我不确定 IE(我只担心 IE 8+)
将此文件放入我的网站的最佳方式是什么?我应该使用 HTML 5 标签还是应该使用其他格式?我需要它与 IE 8 一起使用,所以我不确定最好的路线是什么。
谢谢!
I have a OVG video and I would like to put that into my site. I do not know much about that file format so I am concerned how it will be with cross browser compatibility. I know that FF will play the file yet I am unsure about IE (I am only worrying about IE 8+)
What is the best way to put this file into my site? Should I use the HTML 5 <video>
tag or should I use another format? I need this to work with IE 8 so I am unsure what the best route is.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该使用 video 元素,其中包含多个源元素,每个元素都指向 .ovg 文件的不同格式。您可以在 media.io 或通过 Miro 转换器(下载)。 最好的方法是为旧版浏览器优雅地降级,您需要提供一些 JavaScript,VideoJS< /a> 是我首选的库,您可以使用他们的嵌入构建器工具,它将提供较旧的后备
You should use video element, with multiple source elements inside, each pointing to a different format of your .ovg file. you can generate cross-browser files at media.io or via Miro converter (download). the best way would be to degrade gracefully for older browsers, you'll want to provide some JavaScript, VideoJS is my preferred lib, you can use their embed builder tool, that'll provide the older fallbacks
为了获得最佳兼容性,您需要使用视频托管网站并将 Flash 视频嵌入到该网站中。如果您想自己托管它,则必须找到一个可以使用的 Flash 视频播放器,但我很确定其中大部分或全部都是商业的。
否则,您需要同时拥有 H264 版本 (MP4) 和 OGG 版本,并将这两个版本都包含在源标记中。然后,您还可以包含 Flash 嵌入式版本的后备版本。
您可以 在此处了解更多信息。
For the best compatibility, you'll want to use a video hosting site and embed the Flash video into the site. If you want to host it yourself, you'll have to find a Flash video player that you can use, but I'm pretty sure most or all of those are commercial.
Otherwise you'll need to have both an H264 version (MP4) and an OGG version and include both versions in the source tag. You can then also include a fallback to a Flash embedded version.
You can find out more here.