A
A
Anton Fedko2013-11-19 21:11:50
PHP
Anton Fedko, 2013-11-19 21:11:50

Creating a site with streaming video to start with the video is taken from YouTube?

Good afternoon, I ran into such a problem, there is a task to implement a site for showing streaming video, an example of a TV broadcast, the videos go one after another, they start immediately at startup.
That is, let's say there are 5 links to the video. One video follows another, and at the end of the code 5 ends again goes 1 and so on in a circle.
I’m engaged in the web, I started doing it not long ago, I don’t even know where to dig, they could tell me where to dig) and what is the best way to implement it. maybe someone did something similar?

I'd be grateful for any advice on this matter.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasilioCat, 2013-11-20
@afphoto10

Taking a video stream from YouTube is also an option, especially if the player is your own, where you can mimic a regular browser. Otherwise, they may be banned and / or required to use an API key, which either limits mass use or costs money.
And if you suddenly have to deal with files or video streams, then you can’t do without ffmpeg. The documentation has ways to broadcast a live stream , play files from disk in real time - even easier. The question is what software acts as a client. For ios, the best output stream is http live streaming, for flash - RTMP. In addition to these protocols, HDS is also suitable for live, but ffmpeg cannot do it, and there is also an implementation from Microsoft Smooth Streaming, rest in peace.
Here I googled a review article on Habré- it is quite a bit outdated, because more software has appeared.
An approximate video server scheme can be as
follows - ffmpeg makes an RTMP stream from files (or from somewhere else), and publishes it to the server that distributes this stream to clients. Type ffmpeg -i file1.mp4 rtmp://127.0.0.1/mystream
- nginx with rtmp module can act as a distributing server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question