V
V
Vince Leiks2017-07-13 16:14:22
PHP
Vince Leiks, 2017-07-13 16:14:22

How to organize streaming of a large binary file with hosting restrictions?

There is a case. In general, this is how it is: the PHP script returns one large audio file of unknown size (content-length cannot be set) with the header content-type: audio/mpeg. What is the problem: the transfer rests on the hoster's limitation on the size of the file being transferred.
I ask for advice: is it possible, and if so, how to split the stream into parts of a fixed length (it's not really about chunk download). Let's say, for example, that when one part is fully loaded, the download is reset and another part starts loading.
Thank you in advance for your response.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stoitli, 2017-07-13
@vince_leiks

HLS gives chunks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question