Flash Embed jQuery Plugin

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(<span class="js__string"><span style="color: #295c72;">"player"</span></span><span class="js__string"><span style="color: #295c72;">"/swf/flowplayer-3.0.7.swf"</span></span>, { 
         
    <span class="js__com"><span style="color: #81ac1b;">// "config" parameter is a complex JSON object. not just a simple value</span></span> 
    config: { 
        clip:  { 
            autoPlay: <span class="js__keyword"><span style="color: #b8128f;">false</span></span>, 
            autoBuffering: <span class="js__keyword"><span style="color: #b8128f;">true</span></span>, 
            url: <span class="js__string"><span style="color: #295c72;">'http://player-e7.simplecdn.net/flowplayer.flv'</span></span>         
        } 
    } 
});

click here to see result or visit the offisial FlowPlayer website
 

Did You Enjoy This Post? Subscribe via RSS, by Email or by Twitter | Share on
bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Leave a comment