問題描述
我有一個 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模板網!