Skip to content

afdah/php-signaler

 
 

Repository files navigation

php-signaler

中文文档

Contact

If you need any help in emergency, you can send a message to me on Skype:linke_china QQ:1928886288

Introduction

This is a project build with Workerman to support hlsjs-p2p-engine signaler service.

Written in full pure PHP. High performance and support cluster.

Requires

  1. PHP 5.3 or Higher
  2. A POSIX compatible operating system (Linux, OSX, BSD)
  3. POSIX and PCNTL extensions for PHP

Install

About enviroment, you can review the webpage from Workerman

Download programe.

git clone https://github.com/RayP2P/php-signaler

Configure

Full package

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)

Master

Applications/RayP2P/start_gateway.php

1.Change the ssl settings. (not necenssary,Read the comment)

2.Change the $gateway->lanIp to Lan interface IP.

Cluster

Applications/RayP2P/start_businessworker.php

1.Change $worker->registerAddress To Register IP.

Running as service

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

Configure hlsjs-p2p-engine

1.Change the signal address to your address

Example

var hlsjsConfig = {
    p2pConfig: {
        wsSignalerAddr: 'wss://example.com/ws',
    }
};

More info visit hlsjs-p2p-engine API.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%