使用 HTML<视频>如果支持标签,否则使用灯箱??? (脚本)视频>
使用新的 HTML 标签(只要浏览器支持)来显示视频的页面是否很流行,否则就使用灯箱??? [&也许还有另一个后备?]
我从来没有做过这样的事情,所以我不知道。如有任何建议,将不胜感激
is it popular to have a page display video using the new HTML tag (as long as its supported by the browser), else fallback to using a lightbox??? [ & maybe even have another fallback??]
i've never had to do anything like this so i don't know. would appreciate any suggestions
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
灯箱?你能举个例子吗?
虽然 HTML 内容相当多,但Video for Every 看起来是使用 HTML5 视频的好方法,几乎所有其他浏览器(包括 IE 6)的后备方案,同时仅对视频文件进行两次编码(遗憾的是,这是目前 HTML5 视频的最低要求)。
如果您想使用 JavaScript 检测 HTML5 视频,深入了解 HTML5 有一个很棒的演练。
Lightbox? Could you give an example?
Although it’s quite a lot of HTML, Video for Everybody looks like a great way to use HTML5 video, with fallbacks for virtually every other browser (including IE 6), whilst only encoding your video file twice (which, sadly, is the minimum for HTML5 video at the moment).
If you want to detect HTML5 video with JavaScript, Dive into HTML5 has a great walkthrough.
好吧,如果浏览器不支持视频,那么您可以回退到对象标记,该标记可以通过包含嵌入标记进一步回退。
是否要在灯箱式弹出窗口中呈现视频是一个单独的呈现问题,而不是技术问题。上述任何内容都可以显示在灯箱中。
Well, if the browser doesn't support video then you could fall back to an object tag, which could fall back further by containing an embed tag.
Whether you want to present the video in a lightbox-style pop-up is a separate question of presentation rather than technology. Any of the above could be shown in a lightbox.