If you need any help in emergency, you can send a message to me on Skype:linke_china QQ:1928886288
This is a project build with Workerman to support hlsjs-p2p-engine signaler service.
Written in full pure PHP. High performance and support cluster.
- PHP 5.3 or Higher
- A POSIX compatible operating system (Linux, OSX, BSD)
- POSIX and PCNTL extensions for PHP
About enviroment, you can review the webpage from Workerman
Download programe.
git clone https://github.com/RayP2P/php-signaler
Don't really need to change anything. You just need to change the ssl settings in Applications/RayP2P/start_gateway.php(not necenssary,Read the comment)
Applications/RayP2P/start_gateway.php
1.Change the ssl settings. (not necenssary,Read the comment)
2.Change the $gateway->lanIp to Lan interface IP.
Applications/RayP2P/start_businessworker.php
1.Change $worker->registerAddress To Register IP.
1.Running in Debug mode.
php php-signaler/start.php start
2.Running in Daemon mode.
php php-signaler/start.php start -d
3.Running in Master mode.(exclude bussniess worker)
php php-signaler/master.php start -d
4.Running in Cluster mode.(only bussniess worker)
php php-signaler/cluster.php start -d
1.Change the signal address to your address
var hlsjsConfig = {
p2pConfig: {
wsSignalerAddr: 'wss://example.com/ws',
}
};
More info visit hlsjs-p2p-engine API.md