L
L
lesh_a2020-01-07 01:09:12
PHP
lesh_a, 2020-01-07 01:09:12

How to stream the finished video to the site?

There is a ready-made video, you need to broadcast this video to the site using pshp, so that you can not rewind it. Is it possible? Are there any ready-made libraries or services? Or maybe you know how to implement it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2020-01-07
@xmoonlight

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Content-Type: {$file->getMimetype()}");
header("Content-Disposition: inline; filename=".$filename.";");
header("Content-Length: ".strlen($file_content));

echo $file_content;

D
Daria Motorina, 2020-01-07
@glaphire

As the path of least resistance, you can try to stream via youtube and display the video of the stream via the API on your site, read the doc and the stackoverflow thread .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question