使用极酷阳光播放器做流媒体播放并不暴露视频地址
Posted 向前看!明天会更好!
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用极酷阳光播放器做流媒体播放并不暴露视频地址相关的知识,希望对你有一定的参考价值。
js界面的内容: var so = new SWFObject("shipin/1114bofangqi/CuPlayerV35/player/player.swf?FlvID="+id+"","ply","700","500","9","#000000"); //在播放器后面拼上视频的id so.addParam("allowfullscreen","true"); so.addParam("allowscriptaccess","always"); so.addParam("wmode","opaque"); so.addParam("quality","high"); so.addParam("salign","lt"); //播放器配置文件----------------------------- so.addVariable("JcScpFile","/yhmgc/public/shipinbofang.php"); //写一个php页面来代替它的xml文件,用来写参数 so.write("CuPlayer"); php界面的内容: <?php include("DBDA.class.php"); $db = new DBDA(); $FlvID = $_GET["FlvID"]; //接收传过来的参数 $sql = "select video from shangpin where id =‘{$FlvID}‘ "; //查找视频路径 $rs = $db->StrQuery($sql); //获取路径 ?> <CuPlayer> <!--下面的都是从xml文件里复制过来的参数--> <Player_Set JcScpBufferTime = "3" JcScpVolume = "75" JcScpCode = "utf8" JcScpImgDisplay = "no" JcScpAutoHideControl="yes" JcScpControlHideTime="0.5" JcScpControlHeight="40" JcScpShowList= "yes" JcScpAutoRepeat = "no" JcScpAutoPlay = "yes" JcScpsetMode = "1" JcScpAFrontCanClose = "no" JcScpShowRightmenu = "yes" JcScpShareMode = "JcScpVideoPath" JcScpLoadbarMode = "0" JcScpLiveMode = "0" /> <Logo_Set JcScpLogoDisplay = "yes" JcScpLogoPath = "Images/logo.png" JcScpLogoPosition = "top-left" JcScpLogoWidth = "165" JcScpLogoHeight = "55" JcScpLogoAlpha = "0.5" /> <Flashvars_Set JcScpServer ="" JcScpVideoPath = "<?php echo $rs ?>" JcScpVideoPathHD = "<?php echo $rs ?>" JcScpImg ="" JcScpTitle = "" JcScpStarTime = "0" JcScpEndTime = "0" JcScpCuePointInfo = "" JcScpCuePointTime = "" ShowJcScpAFront = "no" JcScpCountDowns = "5" JcScpCountDownsPosition = "top-right" JcScpAFrontW = "730" JcScpAFrontH = "454" JcScpAFrontPath = "" JcScpAFrontLink = "/" ShowJcScpAVideo= "no" JcScpAVideoServer= "" JcScpAVideoPath= "" JcScpAVideoLink= "/" ShowJcScpAPause = "no" JcScpAPausePath = "" JcScpAPauseW = "300" JcScpAPauseH = "250" JcScpAPauseLink= "/" ShowJcScpACorner = "no" JcScpACornerPath= "" JcScpACornerW = "90" JcScpACornerH = "50" JcScpACornerPosition = "top-right" JcScpACornerLink = "/" ShowJcScpAEnd = "no" JcScpAEndPath = "" JcScpAEndW = "400" JcScpAEndH = "300" JcScpAEndLink= "/" ShowJcScpAMoveText = "no" /> <SkinColor_Set JcScpBackcolor = "0x000000" JcScpBackcolortop = "0x353535" JcScpLightcolor = "0xcfcfcf" JcScpFontcolor = "0xffffff" JcScptimebg = "0x393939" JcScpLoadbar = "0x00a0e9" JcScpLoaded = "0x4d4b4b" JcScpLoadbg = "0x000000" JcScpPlayBtn = "0x2d2d2d" JcScpBar = "0xffffff" /> </CuPlayer>
以上是关于使用极酷阳光播放器做流媒体播放并不暴露视频地址的主要内容,如果未能解决你的问题,请参考以下文章