The content of JS interface:
var so = new SWFObject ("shipin/1114bofangqi/cuplayerv35/player/player.swf? Flvid= "+id+" "," "Ply", "" "," "9", "#000000"); Spell the ID of the video behind the player
So.addparam ("allowFullScreen", "true");
So.addparam ("allowScriptAccess", "always");
So.addparam ("wmode", "opaque");
So.addparam ("Quality", "high");
So.addparam ("salign", "LT");
Player configuration file-----------------------------
So.addvariable ("Jcscpfile", "/yhmgc/public/shipinbofang.php"); Write a PHP page instead of its XML file, which is used to write parameters
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 the parameters that are copied from the XML file.
<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>
Use the cool Sun player to do streaming playback and not expose the video address