Hi, I ve got a very simple question, I want to stream via quictime a file wich is not in the public folder... so my JS template for the streaming is : <OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="320" height="255" codebase='http://www.apple.com/qtactivex/qtplugin.cab'> <param name='src' value="PATH OF THE VIDEO"> <param name='autoplay' value="true"> <param name='controller' value="true"> <param name='loop' value="true"> <EMBED src="PATH OF THE VIDEO" width="320" height="255" autoplay="true" controller="true" loop="true" pluginspage='http://www.apple.com/quicktime/download/'> </EMBED> </OBJECT> So in order to make it works i need to change the "PATH OF THE VIDEO" by the path of it... the only way i see is using something like send_file... but howto do that..?. i guess if i do a send_file the file will be sent to the user but it s not going to be stream via my JS template and quicktime... (and it s not possible to use a send_file directly in a view, i ve got error"... Thx for any idea Guillaume.
on 2007-05-06 18:47
on 2007-05-18 19:29
I had this problem too, but the only way i found, was to let the video in the public folder (inside subfolder...), and you just need to implement an ht.access on the folder, so nobody will be able to access your video by entering www.YOURWEBSITE.com/VIDEO etc... By the way send_file is not quiet good, google "x-sendfile".. Guillaume.