Hopefully this is a simple one. I am trying to get the clip dimensions with the following which is triggered from an onPause event:
My config is:
When the clip starts playing the first pause event triggers the function containing the getClip.width() and getClip.height() calls. The first event always gives 320 & 240 respectively. Subsequent pauses return the correct dimensions.
I am getting this information and passing it to FFMPEG to generate and include an video still in the page. You can see the behaviour here:
http://code.nettpar.org.uk/flowplayer/index.php
Does anyone have any suggestions or ideas of what's happening here?
Thanks
height = $f('player').getClip().height + 26;
width = $f('player').getClip().width;
My config is:
HTML:
<a href="flowplayer-700.flv" style="display:block;width:426px;height:300px;float:left; margin-left:10px" id="player"> </a>
JS:
flowplayer("player", "flowplayer-3.1.2.swf", {
clip: {
autoPlay: true,
autoBuffering: true,
scale: 'fit',
}
});
When the clip starts playing the first pause event triggers the function containing the getClip.width() and getClip.height() calls. The first event always gives 320 & 240 respectively. Subsequent pauses return the correct dimensions.
I am getting this information and passing it to FFMPEG to generate and include an video still in the page. You can see the behaviour here:
http://code.nettpar.org.uk/flowplayer/index.php
Does anyone have any suggestions or ideas of what's happening here?
Thanks