example of the Apdev Videoplayer embeddded into HTML page

You can now easily embed our Videoplayer into HTML and pass all important variables (video-url, previewimage-url) to the swf via flashvars.

NEW: you can set styles via flashvars too!

because we're using swfobject it looks like this:

...
var width=380;
var height=240;
...
var flashvars = {};
flashvars.v = "video01.mp4";
flashvars.img = "videostill.jpg";
...

// *** set styles ***

flashvars.playIcon = "#ff0000";
flashvars.controlsBg = "#ff00ff";
flashvars.controlsBgAlpha = 1.0;

...
swfobject.embedSWF(movie, replaceDiv, width, height, flashVersion, express, flashvars, params, attributes);
    

The Videoplayer resizes itself to fill the whole SWF - so in this case the player is 380x240px.

alternativ content

© 2009 apdeblog.com - and some text beneath the video player