I have a source code bellow
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="jwplayer.js"></script>
<div id="mediaplayer"></div>
<script type="text/javascript">
function animate() {
$("#mediaplayer_wrapper").animate({width: "300px", height: "300px"}, 500, function() {
$(this).animate({width: "100px", height: "100px"}, 500);
});
}
jwplayer("mediaplayer").setup({
flashplayer: "player.swf",
file: "video.mp4",
width: 100,
height: 100,
controlbar: "none"
});
</script>
<input type="button" value="Animate" onclick="animate()">
When I click Animate button while jwplayer is playing, the video size is moddify. How to fix it ? @@
@martin -
Right now, it's not currently recommended to use the JW Player with the jQuery animate method.