在网页中嵌入视频的最佳解决方案
我正在寻找将视频嵌入网页的方法。我的网站采用 HTML4 编码,目前视频通过嵌入 Flash (SWF) 文件显示。 SWF 本身可以是单个电影,也可以是加载另一个 FLV 文件的播放器。
现在我们面临的第一个问题是,这些视频显然无法在 iPhone 或 iPad 上播放,因为它们不支持 Flash。我自己还没有验证这一点。
我的替代方案是使用 YouTube,但 iPhone 和 iPad 可能无法播放视频,因为嵌入 YouTube 视频与嵌入 SWF 文件相同。即使我能让 YouTube 视频正常运行,这也会给我带来另外两个问题:YouTube 品牌和 YouTube 广告。如果这三个问题有解决方法,那么我可以接受 YouTube 作为解决方案。
我正在寻找一种在页面中嵌入视频的解决方案,该解决方案不存在这些问题,并且已知可以跨浏览器和设备工作。我计划丢弃所有 SWF 和 FLV 文件,并将视频转换为真正的视频格式,也许是 MPEG4,但我也需要这方面的建议。
I am looking at ways to embed videos in webpages. My website is coded in HTML4 and currently the videos are displayed by embedding Flash (SWF) files. The SWF itself can be a single movie or a player that loads another FLV file.
Now the first problem we have is that that apparently these videos won't play on iPhones or iPads because it does not support flash. I am yet to verify this myself.
My alternative was to use YouTube but again the iPhones and iPads may not play the videos because embedding YouTube videos is same as embedding a SWF file. Even if I can get the YouTube videos to work this leas me to two other problems: YouTube branding and YouTube advertisements. If there is a workaround for the three problems then I can accept YouTube as a solution.
I am looking for a solution for embeding videos in my pages that does not have these problems and is known to work across browsers and devices. I plan to discard all SWF and FLV files and convert the videos into a genuine video format, MPEG4 perhaps but I need advice on that too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 iOS 设备,因此我可以确认 Flash 不会在这些设备上播放。不过,YouTube 会自动向需要 HTML5 视频的设备提供 HTML5 视频,因此这应该不是问题。品牌永远是一个问题,除非你推出自己的解决方案。
您可以查看 Sublime 视频播放器,它似乎只在播放开始后短时间内显示其品牌。
I use iOS devices so I can confirm that Flash will not play on them. However, YouTube will automatically serve HTML5 video to devices that require it, so that should not be a problem. Branding will always be an issue, unless you roll your own solution.
You can check out the Sublime Video player, which seems to only show their branding for a short while after playback begins.