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 trialKnowledgeWoods Consulting
5,607 PointsI want to play video from the folder or want the url of the video from the database, so that I can play videos.
Hi, Thanks in advance. I want to play video from the folder or want the url of the video from the database, so that I can play videos of different topics. Different topics consists of different videos. I want to play videos on click of the topics. Topic name are stored in database. Also video url is stored in the database and videos are kept at the folder in the server. Please tell me the approach to start or provide the code if possible.
5 Answers
Lukas Smith
4,026 PointsYou need some flash player on Your website like ( flowplayer) and after click for selected video put path to movie on your folder on server in to the params your flowplayer. This path U can keep in db.
KnowledgeWoods Consulting
5,607 PointsNo. I want to play videos at different topic name. Like youtube. Every topic has some video, which should play on click of topic name. Like I have Table of contents Topic 1 Topic 2 Topic 3 and so on.....
Every topic has one video like video 1 for topic 1 video 2 for topic 2 video 3 for topic 3 and so on..... On click of every topic, it's respective video should play. Topic name and video url are stored in database table. And also videos are stored in server in some folder.
Lukas Smith
4,026 PointsHow you want display this video on page ? in some player ? It is one the same page only one with link on left side with topics. After click this link your app take link to video for example if you have all movies on server in dir (movies) and link to this movies is /www/app/movies/... so from DataBase you need keep only names of movies without rest of links. and after someone click topics system get name of movies (mymovie_1.flv) and send all path /www/app/movies/mymovie_1.flv to your player. but all video is display in the same page with player
KnowledgeWoods Consulting
5,607 PointsYes. I want to display them in a player, so that I video plays at a time for a particular topic which is clicked. But I want an HTML 5 player, so that videos can run in any device.
Lukas Smith
4,026 Pointsgood idea. So You start project in what language ?
KnowledgeWoods Consulting
5,607 PointsI am using php and mysql.
KnowledgeWoods Consulting
5,607 PointsKnowledgeWoods Consulting
5,607 PointsSomewhat like youtube. In youtube also every video has a link to a particular video. And they play on the same page.