Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Playing Videos on a website

I was wondering if anyone could shed some light on a problem I am working through. I am creating a website that has a lot of instructional golf videos. I want 1 video player that plays whichever video is selected from the page, as opposed to having all the video just listed down the page. How can I set up one page with the player instead of creating a bunch of new pages, each having only one video?? Also does anyone have a recommendation for a video player? Thanks!

1 Answer

Alex Hedley
Alex Hedley
16,381 Points

JWPlayer http://www.longtailvideo.com/

You could create a list and use JavaScript to set the player's video choice

Thanks, this looks like a really nice player. I am trying to avoid the $99 annual fee. I'm guessing using Javascript it can be accomplished through any player...I'm a beginner at JS so looks like any insight on how to set that up would be great. Thanks!

Thanks Alex!