用于HTML的视频,Flash或...视频 [英] Video, flash or... videos for HTML
问题描述
我甚至不知道如何格式化或转换视频MPEG,AVI在线FLV(与我自己的网页),但这不是我做这个职位的原因。我需要将它们转换成flv,把视频放在我的网页上?如何转换视频质量(质量损失)?
如何制作我自己的在线视频播放器?
潜入HTML5 有一个很好的关于HTML5视频的文章。你应该从A-Z读这篇文章(抢咖啡)。它解决了几乎所有与HTML5视频相关的问题,包括为什么您应该转换为HTML5视频,视频格式,如何转换视频以及如何将标记添加到您的页面以播放这些视频。
如果您想知道如何播放HTML5视频,请查看 HTML5视频播放器比较图表。仅供参考,一个HTML5视频播放器是浏览器的原生HTML5播放器的JavaScript封装器,它应该提供皮肤,API,事件和Flash后备支持。
话虽如此,如果你不关心自定义皮肤,事件处理,API等,你根本不需要HTML5播放器。所有你需要的是由 Video for Everybody (但你仍然需要一个能够播放MP4文件的SWF文件)。
I'm not new to HTML, CSS, JS or PHP, I already made diff. web pages, but every time when I included a video from YouTube or from another external site, I always used iframe, or embed code. So, today I started to make my own personal page, and I want to know how to insert my own videos. I have two different web hosts, one for uploading videos and another for the webpage. So the stream (am I correct?) is coming from host#1, and host#2 is for web page.
I don't even know how to format or convert videos mpeg, avi to flv online (with my own page), but this is not why I made this post. Am I need to convert them into flv, to put videos on my page? What about the converted video quality (losing from quality)?
How can I make my own online video player?
DIVE INTO HTML5 has an excellent article on HTML5 video. You should read this article from A-Z (grab a coffee). It addresses almost all issues related to HTML5 videos including the reasons why you should be converting to HTML5 video, video formats, how to convert videos and how to add markup to your page to play those videos.
And in case you are wondering how to play the HTML5 videos, have a look at HTML5 Video Player Comparison chart. FYI, a HTML5 video player is a JavaScript wrapper over the browser's native HTML5 player which is supposed to provide skinning, API, events and flash fallback support.
Having said that, you do not need an HTML5 player at all if you do not care about custom skins, event handling, API etc. All you need is the "code" suggested by Video for Everybody (but you still need a SWF file capable of playing MP4 files).
这篇关于用于HTML的视频,Flash或...视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!