如何在网站中显示类似 youtube 的视频播放器?

How to display youtube-like video player in website?(如何在网站中显示类似 youtube 的视频播放器?)
本文介绍了如何在网站中显示类似 youtube 的视频播放器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在一个网站上工作,我希望在该网站上上传摄像机录制的视频,并且仅对登录用户可见(但不能下载).我还想编辑视频,在背景中显示某些图像,并可能记下他们上次停止观看视频的时间.(即,如果他们在 30 分钟后停止观看,我想在他们下次观看时从 30:00 开始观看).

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).

我的问题是,

1) 有没有办法动态添加选定的图像/动画作为背景和 .mp3 文件作为视频的配乐,或者我是否必须使用视频编辑软件为每个视频手动执行此操作?(将有 100 多个视频).关于视频的任何建议.编辑软件也很酷.

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) 我是否必须使用 ffmeg 将视频转换为 .flv,或者有没有办法直接将它们作为 .mpegs/.wmv 文件播放?

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) 显然,我需要某种视频播放器(如 youtube),您可以在其中暂停/停止/跳过视频.有没有办法使用 Javascript/AJAX 来构建它,或者我需要为此购买 Flash 组件吗?(如果我必须购买一个,任何有关此类视频的推荐.播放器将不胜感激)

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)

我使用 PHP 5、MySQL 和 Jquery (Javascript) 来构建这个项目.

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

谢谢.

推荐答案

查看 (Flowplayer).Flowplayer 是一款非常棒的网络开源视频播放器.

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

这篇关于如何在网站中显示类似 youtube 的视频播放器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Encryption in JavaScript and decryption with PHP(JavaScript 加密和 PHP 解密)
Best solution to protect PHP code without encryption(无需加密即可保护 PHP 代码的最佳解决方案)
PHP AES encrypt / decrypt(PHP AES 加密/解密)
Upgrading my encryption library from Mcrypt to OpenSSL(将我的加密库从 Mcrypt 升级到 OpenSSL)
How to add/remove PKCS7 padding from an AES encrypted string?(如何从 AES 加密字符串中添加/删除 PKCS7 填充?)
How do I upgrade from PHP 7.0 to 7.3 on google cloud platform?(如何在谷歌云平台上从 PHP 7.0 升级到 7.3?)