|
Wednesday 20 October 2010 5:37:08 am
Comment62864
..made a teeny-tiny progress but still couldn't get it work properly. I added this line too..
$('object#videoplayer_api param[name=flashvars]').attr('value','config={"clip":{"autoPlay":false,"autoBuffering":true,"url":"' + videoPath + '"},"playerId":"player","playlist":[{"autoPlay":false,"autoBuffering":true,"url":"' + videoPath + '"}]}');..to pass the variable value to the rendered object (which comes compiled when the page is loaded - the original script recalls just an <a> tag and a floplayer's script). The progress is that, with this line, unlike before, when the page is loaded the player get the default videoPath value and plays that video. But if I click on other videos' link, it successflully passes the related value to the code (which I can see from firebug) but it still keeps playing the default video. One strange thing I noticed is that in IE, when checking the code through its developers tool, the above code has no value within the brackets of clip: and playlist:.
loredanaebook.it
|