swfobject.removeSWF ("myVideoPlayer");
-
Edit : this kills the original <DIV>that you used to create swfobject in the first place.
So, if you need to create Flash again, you will need to insert a new placeholder <DIV>.
<div id="videoPlayerWrapper">
<div id="myVideoPlayer"/>
<a href="#" class="close">Close Player</a>
</div>
swfobject.removeSWF("myVideoPlayer");
$('#videoPlayerWrapper').prepend("<div id='myVideoPlayer'></div>");
source
share