bypass controller and modify headers for flv output |
[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) When this is working in another file I want to send the url to a jeroenwijering player like so: Code: ... 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 juts came out as text. I tried looking at hooks but dont know if thats right place to look?
[eluser]jtkendall[/eluser]
You shouldn't need to echo the headers. You're just setting them.. Change your code to: Code: header("Content-Type: video/x-flv"); and see if it works. |
Welcome Guest, Not a member yet? Register Sign In |