Home > Backend Development > PHP Tutorial > Can PHP be used as an app voice chat server?

Can PHP be used as an app voice chat server?

WBOY
Release: 2016-08-04 09:19:33
Original
2115 people have browsed it

Can php be used as the app voice chat server? Is there any mature solution?

Reply content:

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/

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template