PHP 7 FFMPEG Script to Build RTSP & RTMP Live Video Streaming Server From Scratch in Browser

  • Post author:
  • Post category:PHP
  • Post comments:0 Comments

 

Pure PHP RTSP 1.0 server

This is a library that allow you to build a RTSP/1.0 server.

Examples

Bare minimum server

This is a very minimal server that will

  • dump requests
  • reply with 200 OK (which is not very useful :-)):

 

 

 

 

Server with middleware stack

This is almost the same example as the previous one, but with a more flexible and trendy middleware stack.

phpbg/rtsp comes with some handy middlewares that will help you build a rfc compliant application:

  • AutoCseq: automatically add cseq header to your responses
  • AutoContentLength: automatically add content-length to your responses
  • Log: Automatically log request and responses

 

 

 

 

Install

 

 

 

Leave a Reply