Js and flash based web site FLV video playback plug in code

  • 2020-03-30 04:07:43
  • OfStack

The example of this article describes the website FLV video playback plug-in code based on js and flash. Share with you for your reference.

The specific implementation code is as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Web site flv Video playback plug-in ( javascript . flash ) </title>
</head> <body>
<script src="video/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
 var s1 = new SWFObject("video/flvplayer.swf", "single", "640", "240", "7");
 s1.addParam("allowfullscreen", "true");
 s1.addVariable("autostart", "true");
 s1.addVariable("repeat", "true");
 s1.addVariable("image", "preview.jpg");
 
 s1.addVariable("file", "http://www.XXX.com/01.flv");
 
 s1.addVariable("clicktext", " start ");
 s1.write("player1");
 s1.addVariable("width", "640");
 s1.addVariable("height", "240");
</script>
</body>
</html>

Complete sample code click here (link: http://xiazai.jb51.net/201410/yuanma/flv-js-videoplay-codes (jb51.net). Rar).


Related articles: