Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change playlist dynamically on an ajax website #52

Open
djmhd opened this issue Aug 6, 2013 · 2 comments
Open

How to change playlist dynamically on an ajax website #52

djmhd opened this issue Aug 6, 2013 · 2 comments

Comments

@djmhd
Copy link

djmhd commented Aug 6, 2013

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
Copy link
Collaborator

travist commented Aug 10, 2013

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
Copy link
Author

djmhd commented Aug 22, 2013

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 [email protected]
À : mediafront/osmplayer [email protected]
Cc : djmhd [email protected]
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants