使用PHP进行实时视频流 [英] Live Video Streaming with PHP

查看:992
本文介绍了使用PHP进行实时视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PHP/AJAX/MYSQL聊天应用程序.我想将视频聊天添加到我的应用程序中.如何在PHP应用程序中创建实时视频流以用于实时视频会议/聊天.如果要构建这样的系统,我需要知道哪些关键术语?首先使用PHP是一个好主意吗?我有没有在想什么吗?我还可以使用其他哪些语言(可能与PHP结合使用)?

I have a PHP/AJAX/MYSQL chat application. I want to add video chatting to my application. How can I create live video streaming to be used for live video conferences/chatting in a PHP application. What are the key-terms I need to know if I wanted to build such a system? Is it a good idea in the first place to use PHP? Is there something I'm not thinking about? What other languages can I use, perhaps in conjunction with PHP?

推荐答案

我并不是说您必须放弃PHP,但这里需要其他技术.

I am not saying that you have to abandon PHP, but you need different technologies here.

让我们从简单开始(没有Akamai :-)),然后思考这里的含义.视频,聊天等-一开始都是客户端.用户有一个网络摄像头,您想以某种方式捕获信号并将其发送到服务器.到目前为止还没有PHP.

Let's start off simple (without Akamai :-)) and think about the implications here. Video, chat, etc. - it's all client-side in the beginning. The user has a webcam, you want to grab the signal somehow and send it to the server. There is no PHP so far.

我知道Flash对此提供了支持(请查看有关网络摄像头和Flash的教程),因此您可以使用Flash将内容传输到服务器.我认为,如果您继续使用Flash,那么 Flex (

I know that Flash supports this though (check this tutorial on webcams and flash) so you could use Flash to transport the content to the server. I think if you'll stay with Flash, then Flex (flex and webcam tutorial) is probably a good idea to look into.

因此,这些仅仅是基础知识,也许它使您了解需要研究的地方,因为显然,这还无法在您的应用程序内提供完整的视频聊天.对于初学者,您将需要某种方式来记录流并重新发布,以便其他人从聊天中看到其他人,等等.

So those are just the basics, maybe it gives you an idea of where you need to research because obviously this won't give you a full video chat inside your app yet. For starters, you will need some sort of way to record the streams and re-publish them so others see other people from the chat, etc..

我也不确定这会消耗多少流量和带宽,通常来说,您需要的不仅仅是Stackoverflow问题,还需要更多方法来解决此问题.最好是对您的应用进行完整的规格说明,然后雇用一些人来帮助您进行构建.

I'm also not sure how much traffic and bandwidth this is gonna consume though and generally, you will need way more than a Stackoverflow question to solve this issue. Best would be to do a full spec of your app and then hire some people to help you build it.

HTH!

这篇关于使用PHP进行实时视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆