Team:TU-Delft/Test2

From 2011.igem.org

(Difference between revisions)
(Blanked the page)
Line 1: Line 1:
 +
<html>
 +
    <head>
 +
        <title>JW API Example 1-1-1-0 JW FLV Media Player</title>
 +
        <style type="text/css">
 +
            #wrapper { position:absolute; left:64px; top:128px; width:320; height:196; background-color:#CCCC00; }
 +
        </style>
 +
        <script type="text/javascript" src="swfobject.js"></script>
 +
        <script type="text/javascript">
 +
        function createPlayer() {
 +
            var flashvars = {
 +
                    file:"http://content.longtailvideo.com/videos/flvplayer.flv",
 +
                    autostart:"true"
 +
            }
 +
            var params = {
 +
                    allowfullscreen:"true",
 +
                    allowscriptaccess:"always"
 +
            }
 +
            var attributes = {
 +
                    id:"player1", 
 +
                    name:"player1"
 +
            }
 +
            swfobject.embedSWF("player.swf", "placeholder1", "320", "196", "9.0.115", false, flashvars, params, attributes);
 +
        }
 +
        </script>
 +
        <body onload="createPlayer();">
 +
 +
<a href="http://www.longtailvideo.com/players/jw-flv-player/">JW FLV Media Player</a> embedded using swfobject and a createPlayer function.
 +
 +
            <div id="wrapper">
 +
                <div id="placeholder1"></div>
 +
            </div>
 +
 +
    </body>
 +
</html>

Revision as of 13:38, 26 July 2011

JW API Example 1-1-1-0 JW FLV Media Player JW FLV Media Player embedded using swfobject and a createPlayer function.