PDA

View Full Version : movies outside document root issue


aiwetir
02-06-2008, 05:50 PM
hi just purchased fpp and have a question, i guess it's not much related to fpp

i serve my movies (quicktime cubics) from outside the document root to make it harder for people to save them. i use php to fetch and read the file, seems to work fine.

problem with fpp is that i can't figure out how to specify a file outside the document root in the xml

is there a way to do this in the xml or otherwise ?

3rw1n
02-06-2008, 06:11 PM
Hi,

If on the same domain you can use ../, if not I guess absolute links will do.

Cheers,

Erwin

aiwetir
02-06-2008, 09:57 PM
../ does not work for me, it only takes me back to the document root

cheathamlane
02-06-2008, 10:32 PM
Hmmm...

Well, if you have control over the server (and it sounds like you might), then maybe using an intermediary PHP/ASP/What-have-you script to "deliver" the file. Rather than passing a file's filepath info, have the filepath in the XML be to a PHP script, and let PHP do the filepath parsing.

?

aiwetir
02-06-2008, 11:02 PM
that was the first thing i tried, however once i put the query in the url, it no longer reads it

for instance.
panoType = mov
panoName = movie.php?path=highres/test


only seems to read as far as the '=' sign then it doesn't seem to parse anything past that. i don't really know xml so i don't know what can be put in it.

you've got me thinking though. about other ways to get the information to the php script. like i could have the php parse the xml, but i'm not even really sure how to get the info to fpp other than xml you see.

cheathamlane
02-07-2008, 01:16 AM
Hmmm... I bet you'll need to URL encode that question mark; It's probable the XML (and/or fPP) thinks it's getting ended sooner than it is.

?

aiwetir
02-07-2008, 02:38 AM
good idea, i probably never would have thought of it.

however it didn't work :(



edit:

maybe it has worked, just the '=' needed urlencoded, now i get a 403 at least. i'll be back in a few mintues after i mess a bit more

edit2:
well that 'works' as in it points to the file, but as i have the php set up, i need to be able to check a session variable to show the movie. i'm not sure that the session variable can be passed from the xml though

joantna
02-08-2008, 12:08 PM
I think that the 'mov' file is downloaded to the browser in any case. If you are able to see the panorama in your browser, you have the panorama in your computer, you just have to look in the 'cache' folder, and you'll find a nice 'mov' file ;-)

cheathamlane
02-08-2008, 03:15 PM
Couldn't you pass the session ID from within movie.php?

aiwetir
02-09-2008, 08:49 AM
i do pass the session from the page the link to the movie is on to movie.php

movie.php serves up the movie from outside the public_html folder with content header stuff just fine in quicktime. i cannot seem to get it to load in the swf though, i've even gotten it to the point where i know the movie is being successfully asked for, but it tells me 'loading failed' in fpp.


not to change the topic, but
i just set it up temporarily with the files in the web server and the movies load quite a bit slower than they do in quicktime, advice ?

cheathamlane
02-09-2008, 04:11 PM
Are you able to trace out any other errors in the FPP presentation? I totally recommend the Flash Tracer plugin for Firefox.

Without seeing your presentation first hand, I don't know what else to tell you...

cheathamlane
02-12-2008, 09:32 PM
i do pass the session from the page the link to the movie is on to movie.php

movie.php serves up the movie from outside the public_html folder with content header stuff just fine in quicktime. i cannot seem to get it to load in the swf though, i've even gotten it to the point where i know the movie is being successfully asked for, but it tells me 'loading failed' in fpp.

Just curious if there was any progress made with this?

Cheers...

Aris
02-14-2008, 08:36 PM
Hi again!

I think I have a similar problem:
due to small space on the server (only 30Mb) I want to have my .MOV files on my friend's web server (he has 5GB).
Is this possible?

I've tried but there is a problem.

a part of the XML file (for example):

panoType = mov
panoName = http://aaaa.com/aris/mov/pano1


a part of the HTML file:

<SCRIPT type="text/javascript" src="detectvr.js"></SCRIPT>
<SCRIPT type="text/javascript">
viewerparameters("devalvr","resize","0","menu","0","plugincolor","#000000");
viewerparameters("qt","controller","false");
viewerparameters("flash","allowFullScreen","true","allowScriptAccess","sameDomain","qualityStatic","best","bgcolor","#000000");
writecode("http://aaaa.com/aris/mov/pano1.mov","http://aaaa.com/aris/mov/pano1.mov","", "files/pano.swf?xml_file=ex03.xml&","","100%","100%");
</SCRIPT>


For quicktime and DevalVR there is no problem but with FPP it says: LOADING FAILED!

Is there something to do with this: "allowScriptAccess","sameDomain" ?

Regards,
Aris

aiwetir
02-21-2008, 04:34 AM
I think that the 'mov' file is downloaded to the browser in any case. If you are able to see the panorama in your browser, you have the panorama in your computer, you just have to look in the 'cache' folder, and you'll find a nice 'mov' file ;-)

with php i can prevent the movie from being cached ;)

i however don't. because some of my navigation has you go to a gmap and back and it's not nice to make the move load again.

CAN you actually look in your cache and find the movie ? i'm on a mac and it's not possible afaict

aiwetir
02-21-2008, 06:26 AM
sorry to double post but i discovered something


i had this working for a minute and i don't know what happened, however what i did discover after looking closer is that i'm trying to use GET in the movie path in the xml as in

panoName = ../../movie.php?path%3D$tour

however the GET isn't getting passed to the php, so i think it's really just unable to pass the get out of xml, does someone know about this ?

EDIT:
well i sorted that part out, and it's for sure accessing the php, the problem in my php error log now is that having the xml call the script isn't of course passing the session checking stuff to the php. i'll start messing with allowing access from the xml file now too, i don't like referrer checking, but this shouldn't be an issue i hope



um so it works in firefox and camino but in safari (and other webkit? browsers) it won't load.

in the activity monitor there is an extra request for the movie fsr. i have no idea where the ?1 thing is coming from
movie.php?path=7/kitchen.mov
movie.php?path=7/kitchen.mov?1

mediapod
03-04-2008, 10:19 AM
Same problem I'm having - any solution?
I've tried getting the php to ignore the ?1 but then it just adds ?2.
This is happening in IE
My current prong of attack is messing with the headers - is there a specific set or order that pano.swf needs?
Rob