mediafront / osmplayer

The Open Standard Media Player is an all-in-one media player for the web. It is an industry changing, open source (MIT) media player that is built to dynamically deliver any type of web media, including HTML5, YouTube, Vimeo, and Flash.
http://www.mediafront.org
MIT License
342 stars 181 forks source link

howto continue playlist when a video fails #31

Closed notecortes closed 6 years ago

notecortes commented 11 years ago

Hi, i'm sorry but i need help.

I'm trying to continue with next video from a youtube playlist when an error occurs (video has been deleted).

I don't know how to get an error event from osmplayer and reproduce next video from playlist. Could someone help me?

Thank you!

notecortes commented 11 years ago

reading, i've this, but fails first time there is not error but is called an plays 1st and second video togethers. $(document).ready(function() { minplayer.get('media', function(media) { media.bind('error', function() { console.log('Video has an error!'); media.stop(); minplayer.get('playlist', function(playlist) { playlist.next(); }); }); }); });//ready thank you.