Welcome Guest, Not a member yet? Register   Sign In
bypass controller and modify headers for flv output
#1

[eluser]alectrash[/eluser]
I want to have on my site the url

www.mydomain.com/video/view/a-lake

which upon being requested basically does this

Code:
//query db to get filename and filesize where file id is "a-lake" (simple)

      echo 'header("Content-Type: video/x-flv")';
      echo 'header("Content-Disposition: attachment; filename="' . $filename . '")';
      echo 'header("Content-Length: "' . $filesize .')';

When this is working in another file I want to send the url to a jeroenwijering player like so:

Code:
...
  s1.addVariable("file", encodeURIComponent(http://www.mydomain.com/video/a-lake));
...

I am storing videos above root directory hence why i'm doing it this way.

I tried creating a controller video with function view which output the headers but they just came out as text. I looked at kaging but to no avail.

I tried looking at hooks but dont know if thats right place to look?


Messages In This Thread
bypass controller and modify headers for flv output - by El Forum - 09-29-2008, 05:54 AM
bypass controller and modify headers for flv output - by El Forum - 09-29-2008, 07:31 AM
bypass controller and modify headers for flv output - by El Forum - 09-29-2008, 07:39 AM
bypass controller and modify headers for flv output - by El Forum - 09-30-2008, 06:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB