Flowplayer with jQuery and SWFObject

Basic

HTML

<p class="video">
    <a class="src" href="toto.flv"></a>
</p>

Javascript

$('.video').each(function(){
        // get FLV path
        var path = $(this).find('a.src').attr('href');
 
        // configuration options        
        var config = "{";
        config += "'clip': '" + path + "'";
        config += "}";
 
        // put the video in place        
        $(this).flash(
            {
                swf: 'flowplayer.swf',
                flashvars:
                {
                    config: config 
                }
            }
        );        
});

Feedback