topical media & game development
lib-flow-example-embed.htm / htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<!-- include flowplayer specific files -->
<script src="lib-flow-example-files-flowplayer-3.js"></script><script src="lib-flow-example-files-flowplayer.js"></script></head><body><c:if test="true">
</c:if>
<!-- setup player with standard HTML syntax -->
<a href="http://player-e7.simplecdn.net/flowplayer.flv" style="display: block; width: 400px; height: 300px; float: left;" id="player"><object id="player_api" data="lib-flow-example-files-flowplayer-3.swf" type="application/x-shockwave-flash" width="100%" height="100%"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="flashvars" value="config={"playerId":"player","clip":{"url":"http://player-e7.simplecdn.net/flowplayer.flv"},"playlist":[{"url":"http://player-e7.simplecdn.net/flowplayer.flv"}]}"></object></a>
<!-- here is a textarea element where embed code is placed -->
<textarea id="textarea" style="margin: -1px 0pt 0pt 10px; overflow: hidden; float: left; height: 287px; width: 320px;"><object
width="400" height="300"
data="http://www.flowplayer.org/swf/flowplayer-3.1.0.swf?0.0039061794360203406"
type="application/x-shockwave-flash"><param name="movie"
value="http://www.flowplayer.org/swf/flowplayer-3.1.0.swf?0.0039061794360203406"
/><param name="allowfullscreen" value="true" /><param
name="allowscriptaccess" value="always" /><param name="flashvars"
value='config={"clip":{"url":"http://player-e7.simplecdn.net/flowplayer.flv"},"playlist":[{"url":"http://player-e7.simplecdn.net/flowplayer.flv"}]}'
/></object></textarea>
<!-- stop floating (things are not side by side after this tag) -->
<br clear="all">
<script>
// install Flowplayer inside previous anchor tag
f().embed().getEmbedCode();
// place this code to our textarea
document.getElementById("textarea").innerHTML = code;
</script>
</body></html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.