この記事では、JSとFlashの実装に基づいたWebサイトFLVビデオ再生プラグインコードについて説明します。参照のためにそれを共有してください。
特定の実装コードは次のとおりです。
次のようにコードをコピーします。<
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<Meta http-equiv = "content-type" content = "text /html; charset = utf-8" />
<Title> WebサイトFLVビデオ再生プラグイン(JavaScript、Flash)</Title>
</head>
<body>
<スクリプト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( "approadfullscreen"、 "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>
完全なサンプルコードをダウンロードするには、ここをクリックしてください。
この記事がすべての人のWebプログラミングに役立つことを願っています。