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.
On 6 mai, 16:47, Guillaume
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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
THEVIDEO">
> <param name=''autoplay'' value="true">
> <param name=''controller'' value="true">
> <param name=''loop'' value="true">
> <EMBED src="PATH OF THEVIDEO" 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
THEVIDEO" 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.
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---