Live Video Streaming with PHP

I would like to create a live video streaming site in php and WebRTC

As you may have already realised WebRTC knows how to communicate with other peers, but it doesn’t know how to discover these other peers. For discovery you can try Ably - use it as a realtime signalling platform in collaboration with WebRTC.

I'd really recommend having a look through Ably's WebRTC tutorial series. More specifically there's a tutorial focussed on video calling using WebRTC and Ably. I hope that helps, or is at least a good place to start.

Live video streaming from recording files over HTTP based on PHP

Do you have a time limit for php execution ?
if yes , change it to unlimited with :

set_time_limit(0);

Streaming video with PHP Html5

  1. I am also trying to stream to a player but the video is taking over my whole >page how do i make the video is just added to my html5 player.

Did you just copy the HTML example without changing a thing?
look at the HTML5 example, you will see that theres width="100%", you can change the value to your fit.

2 - when I make a url http video (http://video.newsmed.fr/pdv/0616.mp4) that does >not work

the URL should point to your php code, not the video file path.
for example: yourdomain.com/dir/your-php-file.php?video=0616.mp4

try to put your-php-file.php code instead of the videostream.php class on your question.

youtube live streaming PHP API integration

Register means creating a projectId in cloud console: https://cloud.google.com/console#/flows/enableapi?apiid=youtube

Then you will use that credentials inside your project so that api server can identify your project.

Here's a live api php sample: https://github.com/youtube/api-samples/blob/master/php/create_broadcast.php

PHP + cURL for live video streaming (can cURL work with infinite data?)

I've figured out what's the problem.
My code is working, there's no need for any other headers, except for cURL option:

CURLOPT_FOLLOWLOCATION => 1 

So yeah, cURL CAN work with infinite data. Here's working solution for video proxing via cURL, if anyone else is interested.



Related Topics



Leave a reply



Submit