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

How to change playlist dynamically on an ajax website #52

Open djmhd opened 11 years ago

djmhd commented 11 years ago

Hi i have a problem i try to use osmplayer with an xml youtube playlist when i create the osmplayer the player shows the playslist but when i try to give another playlist the osplayer remains with the first playlist can you help me please? here a sample of the web site http://lidkart.com/LVSB/ you can click on the link Galerie Videos to see the problem Thank you.

travist commented 11 years ago

You should be able to just reconstruct the playlist with a new playlist...

minplayer.get('playlist', function(playlist) {
  playlist.options.playlist = 'http://......../playlist.xml';
  playlist.construct();
});

Let me know if this doesn't work.

djmhd commented 11 years ago

Hi sorry for my late reply i have tested you piece of code and it is still not working you can see the updated code on http://www.lidkart.com/LVSB/ line 512

thank you for your help.

  El-Filahi Mehdi


Mehdinfo Avenue du Roi Albert 260 1082 Berchem-Sainte-Aghate Bruxelles Belgique www.mehdinfo.be

0032 485 81 68 97



De : Travis Tidwell notifications@github.com À : mediafront/osmplayer osmplayer@noreply.github.com Cc : djmhd mehdi_elfi@yahoo.fr Envoyé le : Samedi 10 août 2013 17h30 Objet : Re: [osmplayer] How to change playlist dynamically on an ajax website (#52)

You should be able to just reconstruct the playlist with a new playlist... minplayer.get('playlist', function(playlist) { playlist.options.playlist = 'http://......../playlist.xml'; playlist.construct(); }); Let me know if this doesn't work. — Reply to this email directly or view it on GitHub.