|
Written by Administrator
|
|
Monday, 04 August 2008 10:37 |
|
Having recently been on the hunt for a good free flash player for this site and others. I came across a revolutionary new concept, actually not revolutionary but standards compliant. The concept is SWFOjects envoked by java script replaceing the <object> tags so commonly used to place media in a web page.
There are good reasons to switch from using <object> tags to embed your flash media to a java script invoked SWFObject and that's mostly because the <object> tag never really existed as an HTML compliant tag. You can read more about the SWFObject about it here :
Abobe.Development Center
code.google.com
Two really good, ready to use free flash players I found that used the SWFobject method were The JW FLV player and the GDD player. Which you can see below.
I chose the GDD player because it was ready to go with the features that I wanted ASAP, however I would have a look at the JW FLV Player as it is skin-able and way more customizable. Not only that, but the site has a massive amount of documentation to support the more advanced features of the JW FLV player.
All that being said I am still on the hunt for a good flash DAM that is both standalone and embeddable, does video conversion on upload, is CDN ready or has CDN like features, and is free. My good friend Lee Wells and my self are currently exploring PHPmotion and other low end Flash Based DAM'S.
|
|
Here's the code used on this page to call an SWFObject:
Using SWF Ojects
-
<!-- START gddflvplayer code -->
-
<div id="codex2007"><!--This is where the player appears -give it a unique name if using more that one per page--></div>
-
<script src="http://chrisborkowski.org/includes/gddflvplayer3.5/swfobject.js" type="text/javascript"></script>
-
<script type="text/javascript">
-
// <![CDATA[
-
var so = new SWFObject("http://www.chrisborkowski.org/includes/gddflvplayer3.5/gddflvplay-v35.swf", "codec2007", "320", "280", "8", "#000000"); //change the player size as you want (now:500x360)
-
so.addParam("scale", "noscale");
-
so.addParam("quality", "best");
-
so.addParam("allowScriptAccess", "always");
-
so.addParam("allowFullScreen", 'true');
-
//VIDEO PARAMS
-
so.addVariable("vdo", escape('http://www.chrisborkowski.org/images/codex.flv')); //video file
-
so.addVariable("desc", escape('Codex 2007')); // movie title
-
so.addVariable("autoplay", 'false'); // autoplay: true or false | default: false
-
so.addVariable("sound", '70'); // sound volume 0-100
-
// ADVERTISING/INTRO VIDEO, (controls temporarily disabled) REMOVE NEXT 2 LINES IF NONE
-
//so.addVariable("advert", escape('http://akvideos.metacafe.com/ItemFiles/%5BFrom%20www.metacafe.com%5D%205491.631631.11.flv')); //video file
-
//so.addVariable("advertdesc", escape(' Ad Commercial Fast Cars Budwieser ')); // description text
-
// YOUR CUSTOM LOGO, remove the next line if none
-
so.addVariable("mylogo", escape('http://www.chrisborkowski.org/includes/gddflvplayer3.5/cjb_logo.png')); // PNG, JPG, GIF,SWF, we recommend PNG for transparency
-
//TRACKER LINK URL (goes active on play)
-
//so.addVariable("tracker", escape('your_tracker_link.php')); // TRACKER LINK | vars sent by POST
-
//BUFFER SIZE (preloads x seconds of the movie before play)
-
so.addVariable("buffer", 2); // buffer time in seconds; default 2sec if missing
-
// START
-
so.write("codex2007");
-
// ]]>
-
</script>
-
<!-- END gddflvplayer code -->
-
<br />
|
|
|
|
|
Last Updated on Wednesday, 06 August 2008 15:26 |