`
yuxuguang
  • 浏览: 140069 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

flv视频播放器

阅读更多

播放器1

    flvplayer

 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="400">
	<param name="movie" value="http://www.aliyoga.com/yujia/wp-content/uploads/flvplayer.swf" />
	<param name="quality" value="high" />
	<param name="allowFullScreen" value="true" />
	<param name="FlashVars" value="vcastr_file=<%=prefix1 %>/flv/<%=fileNameArray[0] %>&BufferTime=0" />
	<embed src="http://www.aliyoga.com/yujia/wp-content/uploads/flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file=<%=prefix1 %>/flv/<%=fileNameArray[0] %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="400"></embed>
</object>

  播放器2

    html页面js文件

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
	var s5 = new SWFObject("FlvPlayer201002.swf","playlist","300","210","7");
	s5.addParam("allowfullscreen","true");
	s5.addVariable("autostart","false");
	s5.addVariable("image","flash5.jpg");
	s5.addVariable("file","http://www.trendsmag.com/_homeinc/video/esqmov_feb.flv");
	s5.addVariable("width","300");
	s5.addVariable("height","210");
	s5.write("player5");
</script>

   

swfobject.js文件

   直接拷贝即可

 

/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

  

   下载FlvPlayer201002.swf文件修改路径

分享到:
评论

相关推荐

    websocket-fmp4、websocket-flv 视频播放器 web端 wsplayer

    WebSocket-FMP4与WebSocket-FLV视频播放器在Web端的应用是现代互联网实时通信技术的重要实践,其中wsplayer是一款常见的实现此类功能的播放器。本文将深入探讨WebSocket协议、FMP4与FLV格式以及wsplayer播放器的相关...

    flv视频播放器源码

    《FLV视频播放器源码解析与应用》 在数字媒体领域,FLV视频格式因其体积小、加载快等优点,被广泛应用于网络视频播放。本文将深入探讨FLV视频播放器的源码,以及其核心组件,如info.xml、video.flv、video_player....

    flv视频播放器代码

    在IT领域,FLV视频播放器代码是一种常见的技术实现,用于在网页或应用程序中播放FLV格式的视频文件。FLV(Flash Video)是Adobe Systems开发的一种流式视频格式,广泛应用于在线视频分享网站和互联网电视服务。下面...

    flv视频播放器flv_54098\flv\flv视频播放器.exe

    播放器flv_54098\flv\flv视频播放器.exe

    Flash 3D相册版FLV视频播放器源码

    Flash 3D相册版FLV视频播放器源码 密码:QQ751776763

    FLV视频播放器源代码

    《FLV视频播放器源代码解析与应用》 在数字媒体技术日新月异的今天,FLV视频格式因其小巧高效的特点,广泛应用于网络视频播放。而一款优秀的FLV视频播放器则是展示这类内容的关键。本文将围绕“FLV视频播放器源代码...

    有预览列表的FLV视频播放器

    本文将深入探讨“有预览列表的FLV视频播放器”这一主题,包括其工作原理、实现方式以及相关的技术要点。 首先,我们要理解FLV视频播放器的基本功能。一个FLV视频播放器是专门设计用来播放FLV格式视频的软件或网页...

    html中flv视频播放器

    7. **使用场景**:FLV视频播放器常用于在线教育、新闻网站、视频分享平台等,为用户提供无需下载即可观看的体验。但在移动设备上,由于Flash Player不被广泛支持,现在更多采用HTML5的video标签和MP4等格式。 8. **...

    维棠FLV视频播放器

    维棠FLV视频播放器是一款专门针对FLV格式视频设计的播放软件,它能够帮助用户流畅地播放网络上常见的FLV格式视频文件。在互联网早期,由于其小巧、高效的特性,FLV格式广泛用于在线流媒体服务,如YouTube等网站。维...

    flv视频播放器代码 有实例代码

    本篇将深入探讨"flv视频播放器代码"及其相关实现,包括如何使用MediaPlayer来播放FLV文件。 首先,FLV视频格式是由Adobe Systems开发的一种流行格式,它适用于低带宽网络环境,且与Adobe Flash Player兼容。因此,...

    flv视频播放器asp web开发

    在IT行业中,Web开发是关键领域之一,而创建一个FLV视频播放器是实现在线视频内容展示的重要方式。FLV(Flash Video)是一种常见的网络流媒体格式,尤其在过去的网页设计中广泛使用,因为它能够在Adobe Flash Player...

    Flash as3脚本实现Flv视频播放器.rar

    Flash as3脚本实现Flv视频播放器,用到ActionScript3.0动画编程脚本,源代码中包括了播放器的插件文件FLV_Player_AS3.mxp和皮肤文件AFC_ClassicSkin.mxp,Examples目录内是Flv播放器的Fla源文件和生成文件。

    FLV视频播放器网页版

    标题中的“FLV视频播放器网页版”是指一种在网页上播放FLV格式视频的解决方案。FLV(Flash Video)是Adobe公司推出的一种流媒体格式,广泛用于互联网上的视频内容,尤其是在HTML5普及之前,它是网页视频的标准格式之...

    在jsp中嵌入flv视频播放器

    在JSP中嵌入FLV视频播放器:深入解析与实践 标题:“在jsp中嵌入flv视频播放器” 描述:“在jsp中嵌入FLV视频播放器,可以模拟视频播放网站。” 本文将深入探讨如何在JSP(JavaServer Pages)页面中嵌入FLV格式的...

    无敌FLV视频播放器

    【无敌FLV视频播放器】是一款专为FLV格式视频设计的专业播放软件,它具有强大的兼容性和稳定性,能够流畅地播放各种来源的FLV视频文件。这款播放器不仅支持基本的播放、暂停、停止功能,还具备了丰富的视频控制选项...

    功能比较强的一款在线FLV视频播放器.zip

    标题中的“功能比较强的一款在线FLV视频播放器”指的是一个专为播放FLV格式视频设计的软件或Web应用。FLV(Flash Video)是一种流行的流媒体格式,主要用于网络视频内容,尤其是早年间在Adobe Flash技术广泛应用时。...

    flv视频播放器asp后台添加版

    在IT行业中,FLV视频播放器是Web开发中常见的组件,尤其在早期互联网视频内容流行的时期。ASP(Active Server Pages)是一种服务器端脚本语言,常用于构建动态网站。本项目"flv视频播放器asp后台添加版"显然是一个...

Global site tag (gtag.js) - Google Analytics