• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

#2
Maybe this will help you out.

PHP HTML5 Video Streaming Tutorial
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
(02-24-2019, 10:33 AM)InsiteFX Wrote: Maybe this will help you out.

PHP HTML5 Video Streaming Tutorial

Hi,

yes, I know that implementation but I am looking for a solution using CI4.
Reply

#4
Any php solution should work with CI 4 it's just a framework.

Video is specific to html so by using a php framework you need
to roll your own or find a solution.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#5
(02-25-2019, 05:27 AM)InsiteFX Wrote: Any php solution should work with CI 4 it's just a framework.

Video is specific to html so by using a php framework you need
to roll your own or find a solution.

Hi,

video is just an example. In general I was looking for a streaming / chunked up- and download solution using the CodeIgniter framework.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.