代碼一:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns="
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
</head>
<body>
<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=400 WIDTH=600>
<param name="_ExtentX" value="9313">
<param name="_ExtentY" value="7620">
<param name="AUTOSTART" value="0">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="SRC" value="iceage4.mp4">
<param name="CONTROLS" value="ImageWindow">
<param name="CONSOLE" value="Clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="scale" value="tofit" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="ShowAudioControls" value="-1">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
//引用的MP4路徑使用quicktime 進(jìn)行播放,注手機(jī)不支持quicktime組件播放
<EMBED SRC="test.mp4" type="video/quicktime"
PLUGINSPAGE="
HEIGHT="600" scale="tofit" controller="true" autoplay="false"></EMBED>
</OBJECT>
</body>
</html>
代碼二:
<object width="300" height="300" type="video/x-ms-asf" url="http://test.com/test.mp4” data="test.mp4" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="test.mp4">
<param name="filename" value="test.mp4">
<param name="autostart" value="1">
<param name="uiMode" value="full" />
<param name="autosize" value="1">
<param name="playcount" value="1">
//調(diào)用MediaPlayer組件進(jìn)行播放
<embed type="application/x-mplayer2" src=" http://test.com/test.mp4" width="100%" height="100%" autostart="true" showcontrols="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"></embed>
</object>
代碼三:
//引用CulPlayer播放組件
<div class="video" id="CuPlayer" >
<SCRIPT LANGUAGE=JavaScript>
<!--
var vID = "";
var vWidth = "100%";
var vHeight = 400;
var vFile = "CuSunV2set.xml";
var vPlayer = "player.swf?v=2.5";
var vPic = "images/start.jpg";
var vCssurl = "images/mini.css";
//同時支持PC,安卓,iOS設(shè)備播放MP4,但是會下載js腳本到空間上。
var vMp4url = "http://test.com/test/test.mp4";
//-->
</SCRIPT>
<script class="CuPlayerVideo" data-mce-role="CuPlayerVideo" type="text/javascript" src="js/CuSunX1.min.js"></script>
</div>