我正在使用简单的嵌入代码显示实时视频流:
<div class="player_div" align="center">
<span>
<script type="text/javascript" src="/resources/scripts/swfobject.js"></script>
<div id="flashcontent"><embed type="application/x-shockwave-flash" src="/resources/scripts/eplayer.swf" width="772" height="500" style="undefined" id="eplayer" name="eplayer" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="transparent" flashvars="id=8390&s=star11azza&g=2&a=1&l=&ea=&pk=04aeb981954f677d0740e06bfc7d9d4efd076520b5ee71106e791f45402f0791"></div>
<script type="text/javascript">
var isUpdated = true;
function closeUpdateText(test) {
isUpdated = true;
}
var so = new SWFObject("/resources/scripts/eplayer.swf", "eplayer", "772", "500", "9");
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','transparent');
so.addParam('FlashVars', 'id=8390&s=star11azza&g=2&a=1&l=&ea=&pk=04aeb981954f677d0740e06bfc7d9d4efd076520b5ee71106e791f45402f0791');
so.write("flashcontent");
setTimeout("showUpdateText()", 3000);
function showUpdateText() {
if (!isUpdated) {
document.getElementById("flashcontent").innerHTML="<strong>UPDATE: Please clear your web cache for watching videos!</strong>";
}
}
</script>
</span>
</div>
一些不需要的广告将在游戏开始时显示。