
How do I use jwplayer.remove()
I have a simple script to play a video and want to remove it because after this video plays (or is ended by user), the player will not load on a subsequent attempt. Following is code (using Linux server, IE8, jwplayer 6)
iv id="mediaspaceturn">This text will be replaced</div>
<script type="text/javascript">
jwplayer("mediaspaceturn").setup({
file: "videos/63VietnamMemorialPatRing.mp4",
image: "m/videothmb/63VietMemPatRing.jpg",
duration: "22:35",
height: 400,
width: 600
});
jwplayer("mediaspaceturn").remove();
</script>
</div>