<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>FLV播放器</title>
</head>
<body bgcolor="#fffff0">
<!-- 影片中使用的 URL-->
<!-- 影片中使用的文本-->
<!--
<p align="left"></p>
-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="610" height="444" id="FLVPlayer" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="FLVPlayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="FLVPlayer.swf" quality="high" bgcolor="#ffffff" width="610" height="444" name="FLVPlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<div style="margin-top:10px;">
<input type="button" onclick="play(true)" value="自动播放" />
<input type="button" onclick="play(false)" value="选定文件" />
<input type="button" onclick=" toStart()" value="播放" />
<input type="button" onclick="ShowOpenFile()" value="显示打开对话框" />
<input type="button" onclick="canSeek()" value="允许拖动" />
<br>
<input type="text" id="txtURI" value="http://www.av.cn/resource/uploadShow/streams/_definst_/212.flv" style=" width:500px;border:solid 1px #ccc;"/>
<input type="button" onclick=" NETPLAY()" value="播放It" />
<br/>
<input type="text" id="txtBCURI" value="rtmp://192.168.1.108/Broadcasting/123456" style=" width:300px;border:solid 1px #ccc;"/>
<input type="text" id="txtBCID" value="2" style=" width:100px;border:solid 1px #ccc;"/>
<input type="button" onclick="Broadcast()" value="播放广播" />
</div>
<script language="javascript">
var IsShow=false;
var IscanSeek=false;
function play(AutoP)
{
thisMovie("FLVPlayer").AutoPlay("demo.flv",AutoP);
}
function NETPLAY()
{
thisMovie("FLVPlayer").AutoPlay($("txtURI").value,true);
}
function $(id)
{
return document.getElementById(id);
}
function toStart()
{
thisMovie("FLVPlayer").Start();
}
function ShowOpenFile()
{
thisMovie("FLVPlayer").ShowOpenFile(IsShow);
IsShow=!IsShow;
}
function ShowMessage(msg)
{
alert(msg);
}
function thisMovie(movieName)
{
if (navigator.appName.indexOf("Microsoft") != -1)
{
return window[movieName]
}
else {
return document[movieName]
}
}
function FullScreen(isFull)
{
player_fullscreen();
if(isFull=="true")
{
player_fullscreen();
}
else
{
obj.style.width="610px";
obj.style.height="444px";
}
}
function canSeek()
{
thisMovie("FLVPlayer").canSeek(IscanSeek);
IscanSeek=!IscanSeek;
}
function Broadcast()
{
thisMovie("FLVPlayer").BroadCasting($("txtBCURI").value,$("txtBCID").value);
}
function getSize() {
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}else{
}
return [myWidth,myHeight];
}
function player_fullscreen(){
var p= getSize();
obj=$("FLVPlayer");
try{
obj.style.position= "absolute";
obj.style.top= 0;
obj.style.left= 0;
obj.style.width=p[0] + "px";
obj.style.height=p[1] + "px";
document.body.style.overflow='hidden';
window.scrollTo(0,0);
}catch(e){}
}
</script>
</body>
</html>
FLV格式视频播放器
4星 · 超过85%的资源 需积分: 10 133 浏览量
2008-08-06
14:11:57
上传
评论
收藏 47KB RAR 举报
sz雨飞
- 粉丝: 1
- 资源: 6
最新资源
- [聊天留言]Ajax PHP文本留言本_xingbook.rar
- ASP.NET某店积分更新记录管理(源代码+论文).rar
- 友邻b2b电子商务 v2.3 简体GBK_gbk_电子商务网站开发模板(使用说明+源代码+html).zip
- JSP企业人事管理系统设计(源代码+论文).rar
- VFP现代物流企业管理系统(源代码+论文).rar
- [图片动画]iFoto v1.0_ifoto-1.0.1.rar
- ssm+vue的物资物流系统的设计与实现(有报告) Javaee项目,ssm vue前后端分离项目
- 521yy 网站Whois查询 php版 1.0_whois_工具查询网站开发模板(使用说明+PHP源代码+html).zip
- vb药品库房管理系统设计(源代码+可执行程序+论文+开题报告+外文翻译+答辩ppt).rar
- 按键 12864显示_单片机C语言实例(纯C语言源代码).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈