Reply LinkBack Thread Tools Search this Thread
Old 15-01-2008, 19:37   #1 (permalink)
Transmogrify
Rough Creep Arse™
 
Transmogrify's Avatar
 
Join Date: Jul 2005
Location: Vancouver, Canada
Posts: 1,888
Send a message via MSN to Transmogrify
SWFObject/FLV file contained outside htdocs

Hey guys,

Am working on a project and am using SWFObject to play a Flash movie, which in turn plays a .flv file. The Flash movie is stored within the web root folder, however I would like the .flv file to be contained outside this directory so it can't be downloaded directly. Is this possible? Within the Flash movie file, I assume we can point the relative or actual path of the .flv file to be anywhere on the server, or is this not the case?

Cheers in advance!
__________________
  Reply With Quote
Old 15-01-2008, 23:26   #2 (permalink)
roto
Floating libation anyone?
 
roto's Avatar
 
Join Date: Apr 2003
Location: El Barco del Amor
Posts: 4,644
Send a message via AIM to roto Send a message via Yahoo to roto
Ewwwww...you have to work with htdocs, too? Such a mess...

I'd assume there's a bit of programming you could put in place to use either path to the .flv. Some of the programming nerds should be able to come up with something.
__________________
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!

New to interweb design? Your friends at dt can help.
  Reply With Quote
Old 16-01-2008, 02:27   #3 (permalink)
Larixk
Senior Member
 
Larixk's Avatar
 
Join Date: Sep 2006
Location: Utrecht, Netherlands
Posts: 1,029
Send a message via MSN to Larixk
flash works client-side so I think hiding it outside public_html won't work.
__________________
  Reply With Quote
Old 16-01-2008, 04:48   #4 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,643
Quote:
Originally Posted by Transmogrify
Hey guys,
I assume we can point the relative or actual path of the .flv file to be anywhere on the server, or is this not the case?

Yes that's true. Are you using the FLVPlayback component, if so you can use,

Code:
FLVPlayback.load();

To specify your URL.

However (and someone correct me if I'm wrong) as far as I understand it, even if you place the flv is outside of the htdocs folder the user is still going to be able to access it, as the location/file will have to be made accessable to the public for it to work with your site. I've seen many similar discussions about "hiding" MP3 files, there are ways to make it more difficult but they seem quite involved and require certain server permissions that I know I don't have access to on many of the servers I work on.

If you're using progressive download the user is always going to have access to the file no matter how you cut it as it is essentially downloaded to their system. The only true way around it is to use streaming servers.

If you do find a way around it let me know, could come in very useful.
  Reply With Quote
Old 16-01-2008, 10:44   #5 (permalink)
proc355
Senior Member
 
proc355's Avatar
 
Join Date: Sep 2006
Location: Glasvegas
Posts: 865
apache : Flash streaming with mod flvx - www.mosalov.com
lighttpd : ~jk flv streaming (good lightweight option if you can install daemons)
__________________
meh.
  Reply With Quote
Old 16-01-2008, 13:21   #6 (permalink)
Transmogrify
Rough Creep Arse™
 
Transmogrify's Avatar
 
Join Date: Jul 2005
Location: Vancouver, Canada
Posts: 1,888
Send a message via MSN to Transmogrify
Thanks for the tips all, it doesn't matter 100% of where the flv file lives but it'd be marginally easier if it could sit outside the web root directory as the flv file plus a load of quicktime movies are generated using final cut server. No problems but will check out the links!
__________________
  Reply With Quote
Old 16-01-2008, 14:41   #7 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,643
Quote:
Originally Posted by proc355
apache : Flash streaming with mod flvx - www.mosalov.com
lighttpd : ~jk flv streaming (good lightweight option if you can install daemons)

Interesting. Will have to have a play with those.
  Reply With Quote
Old 16-01-2008, 15:50   #8 (permalink)
proc355
Senior Member
 
proc355's Avatar
 
Join Date: Sep 2006
Location: Glasvegas
Posts: 865
Quote:
Originally Posted by dan
Interesting. Will have to have a play with those.
you may also want to have a look @ nginx if you're ok with partial documentation (it's getting better); it's a great low footprint server that also has a flv module

apache may be ubiquitous but it's a fat bastard
__________________
meh.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8