Coder Social home page Coder Social logo

live's Introduction

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}

live's People

Contributors

576297060 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.