I have a flash video player and I am just testing to see if I can use jquery/javascript to load that player in. I am trying to make it so that I can load different players in when I need to. Anyone have any ideas on this or know if it is possible? I know my code is wrong but I don't know how else to illustrate what I want to do.
If I take the below code and simply paste it into the html of the page on startup (without trying to use javascript or jquery to load it) then my video will work fine.
$('#container').html('<div class="test"></div><script> \
/* <![CDATA[ */ \
flowplayer(".test", "player/player.swf", { \
clip: { \
bufferLength: "0", \
autoPlay: true, \
autoBuffering: true, \
scaling: \'scale\', \
url:\'video_handler.php?file=somefile\' \
}, \
}); \
/* ]]> */ \
<\/script>');