它实际上适用于Chrome和Safari,但ie8和firefox无法识别$video
变量。是否有不同的语法,他们可能更有可能使用这些浏览器。
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject/swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myFlashContent", "9.0.0");
</script>
</head>
<?php $video="monday.mp4"; ?>
<body>
<div>
<object width="600" height="409">
<param name="movie"value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf">
</param>
<param name="flashvars" value="src=http%3A%2F%2F81.107.65.42%2Fmonday.mp4"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess"
value="always"></param>
<embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"
type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true"
width="600" height="409" flashvars="src=http%3A%2F%2Fmydomain%2F"
<?php $video; ?></embed></object>
</div>
</body>
</html>
答案 0 :(得分:0)
因为看起来硬编码为什么不试试html5视频标签?
<video width="320" height="240" controls>
<source src="monday.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>