Original address: http://aykkk.blog.163.com/blog/static/161779533201211044316285/
Today a customer put forward this request, online search information, inadvertently see a website has this function, analyzed, found that to achieve this function requires 2 files: flvplayer.swf, this is the player, Swfobject.js, this is the control script,
The specific code is as follows: simple:
<script src= "Swfobject.js" type=text/javascript></script>
<font id=player1> </font>
<script type=text/javascript>
var S1 = new SWFObject ("flvplayer.swf", "" "," 262 "," 195 "," 7 ");
S1.addparam ("allowFullScreen", "true");
S1.addvariable ("File", "movie.flv");
S1.addvariable ("image", "/image/shiping.jpg");
S1.addvariable ("width", "262");
S1.addvariable ("height", "195");
S1.addvariable ("Loop", "true");
S1.addvariable ("Repeat", "flase");
S1.addvariable ("FontColor", "0XFFFFFF");
S1.addvariable ("AutoScroll", "true");
S1.addvariable ("logo", "");
S1.addvariable ("Autostart", "true");
S1.addvariable ("Smoothing", "true");
S1.write ("Player1");
</SCRIPT>
Video Initial size you can change it yourself.