You are using jQueryUI I think.
This is the official documentation:
http://jqueryui.com/resizable/
The event stop
is called when you have finished to resize your element.
Other event are:
- create
- resize
- start
- stop
Try this:
$(function() {
$( ".resizableaspect" ).resizable({
aspectRatio: true,
helper: "ui-resizable-helper",
stop: function(e, ui) {
var pl=$('#player iframe')[0];pl.src=pl.src;
}
});
});