My JS Code:
$('body').append('<div id="mediaplayer"></div>');
$.getScript('js/mplayer/jwplayer.js', function ()
{
jwplayer("mediaplayer").setup({
flashplayer: "js/mplayer/player.swf",
file: ''+v_url+'',
autostart: "true"
});
$('#mediaplayer_wrapper').css('z-index','107').css('width','853px').css('height','505px').css('padding','10px').addClass('bg_one').center();
});
I close the player with:
$('#mediaplayer, #mediaplayer_wrapper').remove();
but when i load the player again (with an other url) ... the player did not start. If there maybe an unload function?
I got it
jwplayer('mediaplayer').remove();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With