Can php be used as an app voice chat server?

Source: Internet
Author: User
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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.