Flash Embed jQuery Plugin

admin March 9, 2009 1

Flashembed can work as both, a standalone script and as a jQuery plugin.

Configuring Flash with JSON

Flashembed has an unique feature of configuring your Flash objects with JSON. This gives you the ability to supply complex configurations directly upon embedding. JSON is a JavaScript based syntax and much more flexible and simpler than XML which has historically been used in Flash configuration.

Flowplayer is one example Flash application that accepts JSON based configurations. Here is our flashembed call.

flashembed("player""/swf/flowplayer-3.0.7.swf", { 
         
    // "config" parameter is a complex JSON object. not just a simple value 
    config: { 
        clip:  { 
            autoPlay: false, 
            autoBuffering: true, 
            url: 'http://player-e7.simplecdn.net/flowplayer.flv'         
        } 
    } 
});

click here to see result or visit the offisial FlowPlayer website
 

One Comment »

  1. actarian September 20, 2010 at 11:19 am -

    there is a new jquery plugin for flash embedding named JFE.. check it @ http://www.eightclaws.com

Leave A Response »

You must be logged in to post a comment.