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

2022-11-22php开发问题
13

本文介绍了如何在网站中显示类似 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 的视频播放器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17