Baidu page embedded media player code

. 1  < div ID = "playercontainer" > </ div > 
2  < Script type = "text / JavaScript" the src = "Player / cyberplayer.js" > </ Script > 
. 3  < Script type = "text / JavaScript" > 
. 4      var Player = cyberplayer ( " playercontainer " ) .setUp ({
 . 5          width: 680 , // width, the percentage may be supported (but the parent element have a width) 
. 6          height: 448 ,// height can also support percentage
7          title: " Basic functions " , // Title 
8          File: " http://gcqq450f71eywn6bv7u.exp.bcevod.com/mda-hbqagik5sfq1jsai/mda-hbqagik5sfq1jsai.mp4 " , // Play address 
9          Image: " HTTP: // gcqq450f71eywn6bv7u.exp.bcevod.com/mda-hbqagik5sfq1jsai/mda-hbqagik5sfq1jsai.jpg " , // preview 
10          autostart: to false , // if AutoPlay 
. 11          stretching: " Uniform " , // set stretch 
12         REPEAT: to false , // if repeat 
13 is          Volume: 100 , // Volume 
14          Controls: to true , // ControlBar whether 
15          startTime: 0 , // the video playback start time (in s), if not set, can be playback time from the last point continued broadcasting 
16          logo: { // logo is provided 
. 17              LinkTarget: " _blank " ,
 18 is              margin: . 8 ,
 . 19              hide: to false ,
 20 is             position: " Top-right " , // position 
21              File: " ./img/logo.png "  // Picture address 
22          },
 23          AK: " xxxxxxxxxxxxxxxx "  // public cloud platform Sign up to get accessKey 
24-      });
 25  </ Script >

 

Guess you like

Origin www.cnblogs.com/jing-tian/p/10957009.html