Can php be used as the app voice chat server? Are there any mature solutions. Can php be used as the app voice chat server? Are there any mature solutions.
Reply content:
Can php be used as the app voice chat server? Are there any mature solutions.
WebRTC =
GetUserMedia
RTCPeerConnection (signaling can be transmitted using WebSocket/AJAX)
RTCDataChannel (based on RTCPeerConnection, transmits arbitrary data between browsers, such as transferring files)
Let's take a look at PHP Swoole's official chat room Demo, which supports group chat, private chat, and file upload.
Php alone does not work. to implement it, you must use extensions.
There can be a swoole framework, a high-performance asynchronous framework, which is currently used by many live websites.
This is generally done by a third party.
WebSocket can be implemented.
Websocket I know that it can be used for text chat, but it involves audio file transmission. Who knows about the process?
NetEase Yunxin, Ronglian cloud, and Huanxin all have these services.
WebSocket bidirectional transmission can implement voice functions
See http://web.jobbole.com/84706/