代码一:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</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 进行播放,注手机不支持quicktime组件播放
<EMBED SRC="test.mp4" type="video/quicktime"
PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="1000"
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">
//调用MediaPlayer组件进行播放
<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设备播放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>