html 具有闪回后备的HTML5视频

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 具有闪回后备的HTML5视频相关的知识,希望对你有一定的参考价值。

<!-- first try HTML5 playback: if serving as XML, expand `controls` to `controls="controls"` and autoplay likewise -->
<!-- warning: playback does not work on iOS3 if you include the poster attribute! fixed in iOS4.0 -->
<video width="640" height="360" controls>
	<!-- MP4 must be first for iPad! -->
	<source src="__VIDEO__.MP4" type="video/mp4" /><!-- Safari / iOS video    -->
	<source src="__VIDEO__.OGV" type="video/ogg" /><!-- Firefox / Opera / Chrome10 -->
	<!-- fallback to Flash: -->
	<object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF">
		<!-- Firefox uses the `data` attribute above, IE/Safari uses the param below -->
		<param name="movie" value="__FLASH__.SWF" />
		<param name="flashvars" value="controlbar=over&amp;image=__POSTER__.JPG&amp;file=__VIDEO__.MP4" />
		<!-- fallback image. note the title field below, put the title of the video there -->
		<img src="__VIDEO__.JPG" width="640" height="360" alt="__TITLE__"
		     title="No video playback capabilities, please download the video below" />
	</object>
</video>
<!-- you *must* offer a download link as they may be able to play the file locally. customise this bit all you want -->
<p>	<strong>Download Video:</strong>
	Closed Format:	<a href="__VIDEO__.MP4">"MP4"</a>
	Open Format:	<a href="__VIDEO__.OGV">"Ogg"</a>
</p>

以上是关于html 具有闪回后备的HTML5视频的主要内容,如果未能解决你的问题,请参考以下文章

使用 mediaelement.js 与 HTML5 后备的 Flash 视频

HTML5 视频的图像占位符后备

即使浏览器支持 html5 视频,也显示后备图像

播放带有 HTML5 后备的 FLV 视频

html HTML5视频会议Flash后备广告

HTML5 视频后备 - 无法在本地 Flash 播放器中播放视频文件