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

Multiple players on the same page not working #1

Open
jeremyleejames opened this issue Jun 2, 2010 · 6 comments
Open

Multiple players on the same page not working #1

jeremyleejames opened this issue Jun 2, 2010 · 6 comments

Comments

@jeremyleejames
Copy link

I don't think multiple instances of the player on the same page are working. I can get it to work with the non-jquery version.

Ideas?

Thanks ahead of time.

~Jeremy
jeremy@writeclickmedia.com

@kcivey
Copy link
Owner

kcivey commented Jun 3, 2010

Do you have an example page? Are you giving the two players different ids? The id defaults to 'jwPlayer', but you'll need to set it to something else if you have a second player on the page.

@jeremyleejames
Copy link
Author

Yes, I am giving the two players different ids.

I got it to work by not using this jQuery version, and reverting to the standard javascript method of embedding jwplayer, as provided on the longtail video site. Which sucks, because I can do a lot more UI stuff if I could get this to work.

Your example / demo only shows one player working. Have you tested this with multiple players on the same page? If so, I'd love to see an example, and I could probably get mine to work by comparing it to yours to see where I've gone wrong.

I'd have to recode my previous verison to give you a sample of what it looks like, and since I'm embedding it through Expression Engine CMS, it would look a little messy.

@kcivey
Copy link
Owner

kcivey commented Jun 3, 2010

Yes, I have used it for multiple players on the same page, but it's quite possible there's a bug. The plugin hasn't been used by many people yet, so I don't doubt there are things I'll have to fix as people uncover them. I'll see about adding a second player to the demo page tomorrow.

@jeremyleejames
Copy link
Author

Thanks so much. I really appreciate it. I was already able to get a really nice UI effect working with this jquery plugin on another site: http://www.exportassist.org/video/filterby/episode-002/ (but with only one player). It would be nice to be able to do similar things, but with multiple players.

@kcivey
Copy link
Owner

kcivey commented Jun 4, 2010

The demo now has two players and works for me. It would be good to find out what difference caused your attempt not to work.
http://kcivey.github.com/jquery.jwplayer/demo.html

@jeremyleejames
Copy link
Author

Thanks for your help. Seeing your code for two players on the same page is very useful, and after seeing how you did it, my guess is that I forgot to code a separate playerReady function for each player. When I get caught up on some client work, I'll attempt another multi-player version using this jquery plugin. And when I do, I'll let you know how it goes.

Best!

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