用于HTML的视频,Flash或...视频 [英] Video, flash or... videos for HTML

查看:273
本文介绍了用于HTML的视频,Flash或...视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是新来的HTML,CSS,JS或PHP,我已经做了差异。网页,但每次当我从YouTube或其他外部网站收录视频时,我总是使用iframe或嵌入代码。所以,今天我开始做自己的个人页面,我想知道如何插入我自己的视频。我有两个不同的网络主机,一个用于上传视频,另一个用于网页。所以流(我是正确的?)来自主机#1,主机#2是网页。

我甚至不知道如何格式化或转换视频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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆