JW FLV PLAYER 3.11 - ã¦ã§ããµã¤ãã§flvãã¡ã¤ã«ãåç
ãã¸ã«ã¡ã§æ®ã£ãåç»ãã¦ã§ããµã¤ãã§è¦è´ã§ããããã«ãããã¦ãflvåçç¨swfãã¬ã¤ã¤ã¼ãæ¢ãã¾ããã
Googleæ¤ç´¢ã§å¤ãã²ã£ããã£ãã®ã¯FlowPlayerã¨Any Flv Playerãæ¥æ¬èªã§ããç´¹ä»ããã¦ãã®ã¯ãã®äºã¤ã§ããã
ä»åè¦ã¤ããã®ãJW FLV PLAYER 3.11ã§ããJeroen Wijeringã¨ãããªã©ã³ã人ã®æ¹ã製ä½ãé å¸ãã¦ããããã§ãã
JW FLV PLAYERã¯åºæ¬çã«JSã§å¶å¾¡ããã¦ãã¦ãJSã®ãªãã¸ã§ã¯ããnewãã¦ã¡ã½ããã§è¨å®å¤ã渡ãã ãã§ç°¡åã«è¨å®ãè¡ããã¨ãã§ãã¾ããå åãã§è¡ããããã¡ãªã³ã°ã®è¨å®ãç§åä½ã§æå®ã§ããã®ã§ãFlowPlayerã®ããã«è¤æ°ã®ã¦ã£ã³ãã¦ã§ãã¼ã¸ãã¼ãããã£ãããããã¨ãããã¾ããã
å°å ¥ã¯é常ã«ç°¡åã§ãã
ã¾ããææ°çããã¦ã³ãã¼ããããµã¼ãä¸ã«ã¢ãããã¼ããã¾ããããã§ã¯lib/jw_flvplayer/é ä¸ã«é ç½®ãããã®ã¨ãã¾ãã
次ã«åç»ã表示ããããHTMLãã¡ã¤ã«ã®è¨å®ã§ãã
<script type="text/javascript" src="lib/jw_flvplayer/swfobject.js"></script>
ä¸è¨ã®ããã«JSãã¤ã³ã¯ã«ã¼ããã¦ãããåç»ã®ã¦ã£ã³ãã¦ã®è¨å®ãè¨è¿°ãã¾ããæä½éãåçããããã ãã§ããã°ã以ä¸ã®ãããªè¨å®ã§OKã§ãã
<script type="text/javascript"> var s1 = new SWFObject("lib/jw_flvplayer/flvplayer.swf","single","425","350","7"); s1.addParam("allowfullscreen","true"); s1.addVariable("file","/video/sunset.flv"); s1.addVariable("image","/images/play.jpg"); s1.write("player1"); </script>
ç»é¢å³ä¸ã«ãã´ã表示ãããã¨ãã§ãã¾ãããã´ã表示ãããå ´åã¯ä»¥ä¸ã®addVariable()ã¡ã½ããã§ãã´ã®ç»åãã¡ã¤ã«ã®ãã¹ã渡ãã¾ãããã´ã®è¡¨ç¤ºå ´æã®æå®ã¯ããã¥ã¡ã³ããè¦ãéããã¾ã ãªãããã§ããã
s1.addVariable("logo","/images/logo.gif"); // display right upper
以ä¸ã¯åçåã®ã¦ã£ã³ãã¦è¡¨ç¤ºã®ãã£ããã£ã§ãã
åçä¸ã«ãã£ãã·ã§ã³ã表示ããäºãã§ãã¾ããããã¯ç¾ç¶æ¥æ¬èªæªå¯¾å¿ã®ããã§ãã
ãã£ãã·ã§ã³ã表示ãããå ´åã¯ä»¥ä¸ã®ããã«ãã£ãã·ã§ã³ã®å 容ã¨è¡¨ç¤ºæéã®å§ç¹ã¨çµç¹ãè¨è¿°ããxmlãã¡ã¤ã«ãaddVariable()ã¡ã½ããã§æ¸¡ãã¾ãã
s1.addVariable("captions","captions.xml");
ããã¾ã§ã®è¨å®ãå«ãã¦è¨è¿°ãç´ããçµæããããªæãã«ãªãã¾ãããåå¼æ°ã®è¨å®ã®è©³ç´°ã«ã¤ãã¦ã¯ãREADMEã«æ¸ãã¦ããã¾ãã
<p id="player1"> <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player. </p> <script type="text/javascript"> var s1 = new SWFObject("lib/jw_flvplayer/flvplayer.swf","single","425","350","7"); s1.addParam("allowfullscreen","true"); s1.addVariable("file","/video/sunset.flv"); /* APPEARANCE FLASHVARS */ s1.addVariable("overstretch","true"); // true, false, fit, none s1.addVariable("logo","/images/logo.gif"); // display right upper /* PLAYBACK FLASHVARS */ s1.addVariable("smoothing","true"); s1.addVariable("volume","50"); // default:80 s1.addVariable("image","/images/play.jpg"); /* INTERACTION FLASHVARS */ s1.addVariable("captions","captions.xml"); s1.write("player1"); </script>
ã¾ããä¸ã®ããã«åä¸ã®ãã¡ã¤ã«ãåçããã®ã§ã¯ãªããè¤æ°ã®flvãã¡ã¤ã«ã®ãªã¹ãããé¸æãã¦è¦è´ã§ãããã¬ã¤ãªã¹ãã¢ã¼ããããã¾ãã
ãã¬ã¤ãªã¹ãã¢ã¼ãã§ã¯ä»¥ä¸ã®ãããªxmlãã¡ã¤ã«ãaddVariable()ã¡ã½ããã§æ¸¡ã以å¤ã¯ã·ã³ã°ã«ã®ãã¬ã¤ã¤ã¼ã¨ã»ã¼åãã§ãããã¬ã¤ãªã¹ãã¢ã¼ãã§ã¯ãªã¹ãã®ã·ã£ããã«åçãå¯è½ã§ãã
<?xml version="1.0" encoding="utf-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> <track> <title>test</title> <creator>seratch</creator> <location>test.flv</location> </track> <track> <title>sunset</title> <creator>seratch</creator> <location>sunset.flv</location> </track> </trackList> </playlist>
製ä½è
ã®æ¹ãèªåã§éå¶ãããããªãã¹ãã£ã³ã°ãµã¤ãã§å©ç¨ãã¦ããã ããã£ã¦ãç´°ãããªã¨ããã¾ã§æ°ãå©ãã¦ãã¦ãã¨ã¦ã使ããããã§ãããã¨ããããã¤ãã£ãã£ã¦ãã試ä½åã¬ãã«ã§ã¯ãªããèªåã§ä½¿ãè¾¼ãã§æ¹è¯ããã¦ãããªã¨ããå°è±¡ã§ããç¾å¨é²è¡å½¢ã§æ°ãã¼ã¸ã§ã³ããªãªã¼ã¹ããã¦ããããã§ãã
詳細ã«ã¤ãã¦ã¯ä»¥ä¸ãåç §ããªã³ã¯å ã«ãããããµã³ãã«ãããã¾ãã
JW PLAYERS 3.11 README
ï¼http://www.jeroenwijering.com/extras/readme.htmlï¼
ã¨ãããã¾ã§æ¸ãã¦æ°ã¥ããã®ã§ãããJW MEDIA PLAYER 3.11ã使ãã°ãflvã«éããããããªãã©ã¼ãããã®ãã¡ã¤ã«ãæ±ããã®ã§ãããããã¾ã 使ã£ã¦ãªããã©ããã£ã¡ã®æ¹ããããããªã®ããªã