1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Live streaming in PHP

Discussion in 'PHP' started by amskape, Jul 2, 2020.

  1. #1
    Dear Friends,
    I am looking a solution for live streaming. I hope my company prefer to setup their own streaming server. So just avoid third party option in answer.
    I read in an article can collect the rtmp stream through software like OBS . My read here https://opensource.com/article/19/1/basic-live-video-streaming-server
    In second read I can see , the rtmp url can embed through code
    <!DOCTYPE html>
    <html>
    <head>
    <link href="//vjs.zencdn.net/4.12/video-js.css" rel="stylesheet">
    <script src="//vjs.zencdn.net/4.12/video.js"></script>
    </head>
    <body>
    <script type="text/javascript">
    document.createElement('video');document.createElement('audio');document.createElement('track');
    </script>
    
    <video id="example_video_1" class="video-js vjs-default-skin"
    controls preload="auto" width="1024" height="576"
    data-setup='{"autoplay":true, "controls": true}'>
    
    <source src="rtmp://xibo.myserver.loc/live/streamkey" type='video/ogg' />
    <p class="vjs-no-js">
    To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
    </p>
    </video>
    
    
    </body>
    </html>
    Code (markup):
    by replacing <source src="rtmp://xibo.myserver.loc/live/streamkey"
    with our URL.
    My doubts are
    1. how to transmit this rtmp stream from the hardware camera device to the streaming server ?
    2. How to identify the "rtmp stream" currently available in the web page for dispaly ?

    Please advise
    Thanks
    Anes
    SEMrush
     
    amskape, Jul 2, 2020 IP
    SEMrush