flowplayerを使ってFlash Videoを再生します。

817 ワード

http://flowplayer.org/index.html 1:ウェブページにflashembed.min.jsというファイルを導入する必要があります。2:id付きdivを宣言します。3:jsコードを追加します。 window.onload = function() { /* use flashembed to place flowplayer into HTML element whose id is "example" (below this script tag) */ flashembed("example", /* first argument supplies standard Flash parameters. See full list: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701 */ { src:'$ServerURL/FlowPlayerDark.swf', width: 468, height: 350 }, /* second argument is Flowplayer specific configuration. See full list: http://flowplayer.org/player/configuration.html */ {config: { videoFile: '$ServerURL/$name.flv' }} ); }