如何在网站上显示类似YouTube的视频播放器? [英] How to display youtube-like video player in website?
问题描述
我正在一个网站上工作,我想要上传摄像机录制的视频,而且只能登录用户查看(但不能下载)。我还想编辑视频,在背景中显示某些图像,并可能记录上次停止观看视频的时间。 (即如果他们在30分钟后停止观看,我想从下次30:00开始观看视频)。
我的问题是, / p>
1)有没有办法动态地将选定的图像/动画作为背景和.mp3文件作为音轨添加到视频中,或者我必须手动执行此操作为每个视频使用视频编辑软件? (将有100多个视频)。任何关于vid的建议。编辑软件也会很酷。
2)我必须使用 3)显然, d需要某种类型的视频播放器(如youtube),您可以在其中暂停/停止/跳过视频。有没有办法使用Javascript / AJAX来构建这个,还是我需要为此购买一个Flash组件? (如果我必须购买一个,任何建议这样的视频播放器将不胜感激) 谢谢。 <3> ( Flowplayer )。 Flowplayer是一个非常好的开源视频播放器。 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 recommendations 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 component for this? (If I have to purchase one, any recommendations for such a vid. player would be appreciated) I'm using PHP 5, MySQL, and Jquery (Javascript) to build this project. Thanks. 3) Check out (Flowplayer). Flowplayer is a really nice opensource video player for the web. 这篇关于如何在网站上显示类似YouTube的视频播放器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
我使用PHP 5,MySQL和Jquery(Javascript)来建立这个项目。