Skip to content

PHP Library to Stream Any Stored Video File Format to RTMP or RTMPS URL. Developed by Sohail Haider <[email protected]> & Akif Quddus <[email protected]>

License

Notifications You must be signed in to change notification settings

akifquddus/PHP-LiveStreaming-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-LiveStreaming-Library

PHP Library to Stream Any Stored Video File Format to RTMP or RTMPS URL. Developed by Sohail Haider [email protected] & Akif Quddus [email protected]

Start Stream

Send a POST Request to: http://yourstreamingserver.com/stream/startstream

{
    'source': '//bucketvideos.s3.amazonaws.com/Video4.mp4',
    'destination: 'rtmps://live-api-a.facebook.com:443/rtmp/1840118365998379?ds=1&s_sw=0&a=ATjIps5N8axKP4bu'
}

Success

{
    "status": true,
    "PID": 27013,
    "source": "https://bucketvideos.s3.amazonaws.com/Video4.mp4",
    "destination": "rtmps://live-api-a.facebook.com:443/rtmp/1840118365998379?ds=1&s_sw=0&a=ATjIps5N8axKP4bu"
}

Error

{
    "status": false,
    "message": "0x2031: Oops, Something went wrong! Unable to start Processing.",
}

Stop Stream

Send a POST Request to: http://yourstreamingserver.com/stream/stopstream

{
    'PID': 27265
}

Success

{
    "status": true,
    "message": "Terminated Process 27265 successfully."
}

Error

{
    "status": false,
    "message": "Could not Terminate the Process 27265 successfully.",
}

Server Requirements

PHP version 5.6 or newer is recommended.

It should work on 5.3.7 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features.

License

Please see the license agreement <https://github.com/bcit-ci/CodeIgniter/blob/develop/user_guide_src/source/license.rst>_.

Resources

  • User Guide <https://codeigniter.com/docs>_
  • Language File Translations <https://github.com/bcit-ci/codeigniter3-translations>_
  • Community Forums <http://forum.codeigniter.com/>_
  • Community Wiki <https://github.com/bcit-ci/CodeIgniter/wiki>_
  • Community Slack Channel <https://codeigniterchat.slack.com>_

About

PHP Library to Stream Any Stored Video File Format to RTMP or RTMPS URL. Developed by Sohail Haider <[email protected]> & Akif Quddus <[email protected]>

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published