Can php be used as the app voice chat server? Is there any mature solution?
Can php be used as the app voice chat server? Is there any mature solution?
WebRTC =
getUserMedia
RTCPeerConnection (signaling can be transmitted using WebSocket/AJAX)
RTCDataChannel (based on RTCPeerConnection, transmit any data between browsers, such as transferring files)
You can first take a look at the official PHP Swoole chat room Demo , supports group chat, private chat, upload files, etc.
PHP alone is not enough. If you want to achieve it, you need to use extensions
Yes, there is a swoole framework, a high-performance asynchronous framework. Nowadays, many live broadcast websites use this framework
This is usually done by a third party
WebSocket can do it.
I know websocket can do text chat, but when it comes to voice file transfer, I’m a little confused. Does anyone know the general process
NetEase Cloud, Ronglian Cloud, and Huanxin all have these services
WebSocket two-way transmission can realize voice function
Please refer to http://web.jobbole.com/84706/