我有一个 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,那么 Flex (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 进行实时视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!