最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - How to display youtube-like video player in website? - Stack Overflow

programmeradmin5浏览0评论

I'm working on a website where I want camera-recorded vidoes to be uploaded, and be viewable (but not downloadable) to logged-in users only. I'd also like to edit the videos, have certain images appear in the background, and possibly note the time at which they last stopped watching a video. (I.e if they stopped watching after 30 mins, i'd like to start the video from 30:00 the next time they view it).

My question is,

1) Is there a way to dynamically add the selected images/animation as the background and .mp3 file as the soundtrack to the video, or will I have to do this manually for every video using a video editing software? (There will be 100+ videos). Any remendations on the vid. editing software would be cool too.

2) Will I have to convert the videos to .flv using ffmeg, or is there a way to play them directly as .mpegs/.wmv files?

3) Obviously I'd need some kind of a video player (like youtube) where you can pause/stop/skip through the video. Is there a way to build this using Javascript/AJAX, or do I need to purchase a flash ponent for this? (If I have to purchase one, any remendations for such a vid. player would be appreciated)

I'm using PHP 5, MySQL, and Jquery (Javascript) to build this project.

Thanks.

I'm working on a website where I want camera-recorded vidoes to be uploaded, and be viewable (but not downloadable) to logged-in users only. I'd also like to edit the videos, have certain images appear in the background, and possibly note the time at which they last stopped watching a video. (I.e if they stopped watching after 30 mins, i'd like to start the video from 30:00 the next time they view it).

My question is,

1) Is there a way to dynamically add the selected images/animation as the background and .mp3 file as the soundtrack to the video, or will I have to do this manually for every video using a video editing software? (There will be 100+ videos). Any remendations on the vid. editing software would be cool too.

2) Will I have to convert the videos to .flv using ffmeg, or is there a way to play them directly as .mpegs/.wmv files?

3) Obviously I'd need some kind of a video player (like youtube) where you can pause/stop/skip through the video. Is there a way to build this using Javascript/AJAX, or do I need to purchase a flash ponent for this? (If I have to purchase one, any remendations for such a vid. player would be appreciated)

I'm using PHP 5, MySQL, and Jquery (Javascript) to build this project.

Thanks.

Share Improve this question edited Jan 18, 2009 at 8:05 Ali asked Jan 18, 2009 at 7:57 AliAli 267k267 gold badges591 silver badges784 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 8

Check out (Flowplayer). Flowplayer is a really nice opensource video player for the web.

You may need to check into Flash programming with actionscript if you want to build the project as well. This is because if you want to play mpeg/wmv files then the browser needs to have a plugin that supports it and not everyone on the web does have that. Flash, on the other hand, has a large browsing audience. So the alternative is to convert it on the server.

EIDOS made a video mixer before they launched the Kane and Lynch game (I unfortunately can't find it online anymore). It was possible to edit video together with music and sound clips on a timeline.

There are several ways to get php work together with flash such as using AMFPHP. But you still need to hack in actionscript.

If the visitor can view it, the visitor has already downloaded it. That's also how youtube works, you download the video otherwise you can't see it. The puter can't show you something it hasn't downloaded.

Flash would be the way to go it can do everything you described, including capture video from a users puter via webcam.

I doubt that there is a single pre-built flash file for this, you'll probably have to contract something, from someone with alot of action-script experience.

发布评论

评论列表(0)

  1. 暂无评论