极酷阳光播放器做流媒体播放并不暴露视频地址代码

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>
复制代码

posted on 2016-12-02 10:03  ysdong  阅读(310)  评论(0编辑  收藏  举报

导航