Skip to content
/ live Public

基于SRS+EASYSWOOLE的直播服务器✨!!!

Notifications You must be signed in to change notification settings

tenry18/live

Repository files navigation

PHP跨平台直播

支持:

  • 按需拉流,RTSP转RTMP,HLS
  • 客户端主动推流,封装多码率
  • 同步录制
  • 多级集群

更多支持请参阅
https://github.com/ossrs/srs/wiki/v2_CN_Home

###一.基本信息:

1.入门推荐书籍:

2.环境

php          => 7.1.0
swoole       => 4.4
easyswoole   => 3.3

3.使用:

1.  composer install
2.  php easyswoole install_srs
3.  php easwswoole start    

###一.HTTP API接口


1.添加设备

POST  http://服务器ip:服务端口/api/create 
{
	"stream": "唯一名称",
	"live_host": "rtsp://账号:密码@摄像头ip:摄像头端口/stream1",//不同设备rtsp地址可能不一样
	"app": "live"
}

2.编辑设备

POST  http://服务器ip:服务端口/api/update 
{
    "stream": "唯一名称",
    "live_host": "rtsp://账号:密码@摄像头ip:摄像头端口/stream1",//不同设备rtsp地址可能不一样
    "app": "live"
}

2.删除设备

POST  http://服务器ip:服务端口/api/destroy 
{
    "stream": "唯一名称",
    "app": "live"
}

###二.观看


rtmp://服务器ip:1935/{app}/{stream}

About

基于SRS+EASYSWOOLE的直播服务器✨!!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages