Welcome Guest, Not a member yet? Register   Sign In
How to stream response output?
#1

Hi,

is there any possibility to stream response output?

I would like to stream a video to the browser. But because the video's size is to large I cannot do something like

PHP Code:
$response->setBody($video); 
Currently I am using the following construct that I would like to replace:

PHP Code:
while (...)
{
 
 $data fread($handle,$bytesToRead);
  echo 
$data;
  
flush();
  
$bytesToRead = ...;

Reply


Messages In This Thread
How to stream response output? - by HardyW - 02-23-2019, 02:17 PM
RE: How to stream response output? - by InsiteFX - 02-24-2019, 09:33 AM
RE: How to stream response output? - by HardyW - 02-24-2019, 03:08 PM
RE: How to stream response output? - by InsiteFX - 02-25-2019, 04:27 AM
RE: How to stream response output? - by HardyW - 02-25-2019, 01:42 PM
RE: How to stream response output? - by kenjis - 07-15-2022, 09:49 PM
RE: How to stream response output? - by InsiteFX - 07-16-2022, 12:39 AM
RE: How to stream response output? - by kenjis - 07-16-2022, 04:01 PM
RE: How to stream response output? - by InsiteFX - 07-16-2022, 11:18 PM
RE: How to stream response output? - by luckmoshy - 07-17-2022, 05:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB