The content of JS interface:
var so = new swfobject ("shipin/ 1114bofangqi/cuplayerv35/player/player.swf? Flvid= "+id+" "," "Ply", "" "," "9", "#000000"); // The video ID so.addparam ("allowFullScreen", "true" ); So.addparam ( "allowscriptaccess", "Always" "wmode", "opaque" "quality", "High" "salign", "LT" // player profile----------------------------- So.addvariable ("Jcscpfile", "/yhmgc/public/shipinbofang.php"); // Write a PHP page in place of its XML file to write the parameter so.write ("Cuplayer");
Content of the PHP interface:
<? PHP include ("DBDA.class.php"); $db New Dbda (); $FlvID $_get ["Flvid"]; // receive the passed-over parameters $sql = "Select video from shangpin where id = ' {$FlvID} '"; // Find a video path $rs $db->strquery ($sql); // Get path ?>
<Cuplayer> <!--The following are all the parameters copied from the XML file . -<Player_setJcscpbuffertime= "3"Jcscpvolume= " the"Jcscpcode= "UTF8"Jcscpimgdisplay= "No"Jcscpautohidecontrol= "Yes"Jcscpcontrolhidetime= "0.5"Jcscpcontrolheight= "Max"jcscpshowlist= "Yes"jcscpautorepeat= "No"Jcscpautoplay= "Yes"Jcscpsetmode= "1"Jcscpafrontcanclose= "No"Jcscpshowrightmenu= "Yes"Jcscpsharemode= "Jcscpvideopath"Jcscploadbarmode= "0"Jcscplivemode= "0"/><Logo_setJcscplogodisplay= "Yes"Jcscplogopath= "Images/logo.png"jcscplogoposition= "Top-left"Jcscplogowidth= "165"Jcscplogoheight= " on"Jcscplogoalpha= "0.5"/><Flashvars_setJcscpserver=""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= "+"Jcscpapauseh= "+"Jcscpapauselink= "/"Showjcscpacorner= "No"Jcscpacornerpath= ""Jcscpacornerw= "All"Jcscpacornerh= " the"jcscpacornerposition= "Top-right"Jcscpacornerlink= "/"Showjcscpaend= "No"Jcscpaendpath= ""JCSCPAENDW= "The "Jcscpaendh= "+"Jcscpaendlink= "/"Showjcscpamovetext= "No" /><Skincolor_setJcscpbackcolor= "0x000000"Jcscpbackcolortop= "0x353535"Jcscplightcolor= "0XCFCFCF"Jcscpfontcolor= "0xFFFFFF"JCSCPTIMEBG= "0x393939"Jcscploadbar= "0x00a0e9"jcscploaded= "0x4d4b4b"jcscploadbg= "0x000000"jcscpplaybtn= "0x2d2d2d"Jcscpbar= "0xFFFFFF" /> </Cuplayer>
Use the cool Sun player to do streaming playback and not expose the video address