Referred by Kroc @ Video for Everyone. I\'d like to be able to automatically play a second video after first one ends, and then display a static image after the second one ends
$(function(){ $('audio,video').mediaelementplayer({ success: function(player, node) { player.addEventListener('ended', function(e){ player.src = 'media/somefile.mp4'; player.load(); player.play(); }); } }); });
That should do it.