JW Playerに簡単な組み込みコード例がある。それをもとに作成したソースコードを以下に示す。このソースを本HTMLに書いた再生プレイヤが表示されている。
<div id="container">動画を再生するためには
<a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> が必要です。</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","240","180","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=video.flv&image=preview.jpg");
s1.write("container");
</script>
|
このソースを書いた再生プレイヤ 動画を再生するためには Flash Player が必要です。
|
flashvarsに&stretching=fillを追加した例 動画を再生するためには Flash Player が必要です。
|
The player is licensed under a Creative Commons License. It allows you to use, modify and redistribute the script, but only for noncommercial purposes. For corporate use, please apply for a commercial license.
The easiest way to get to know the player is by using the setup wizard. Select an example, set the file or playlist you want to play and copy-paste the embed code to your site. If you want to play Youtube content in the player, you also have to copy the yt.swf file along with the player.swf.
If you need any help, please visit our extensive support section, including FAQs, a string of tutorials and a very active support forum.
The developer Wiki contains a wealth of info about the player, including:
The source code of all different versions of the player can be found here. You can click a version and download the ZIP files (the links at the bottom).
If you're ready to get professional about online video, check out our additional services, which take your site to the next level: