How to stream response output? |
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); PHP Code: while (...)
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 )
(02-24-2019, 09:33 AM)InsiteFX Wrote: Maybe this will help you out. Hi, yes, I know that implementation but I am looking for a solution using CI4.
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 )
(02-25-2019, 04:27 AM)InsiteFX Wrote: Any php solution should work with CI 4 it's just a framework. Hi, video is just an example. In general I was looking for a streaming / chunked up- and download solution using the CodeIgniter framework.
It seems you need to extend the Response class to support stream output.
I know Lonnie and I wrote a video help a while back maybe streaming could be added to that helper.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
What's a video help?
(02-25-2019, 01:42 PM)HardyW Wrote:(02-25-2019, 04:27 AM)InsiteFX Wrote: Any php solution should work with CI 4 it's just a framework. Not necessarily related to streaming but instead uploading large files, chunking should be fairly trivial to implement. We have simple chunked uploading class, basically just borrowing some of the core from pluploader https://www.ignitedcms.com/playground/chunked
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
|
Welcome Guest, Not a member yet? Register Sign In |