>- see footer for list info -< Hello again :) Paul : This actually works really well except for the "autoplay" feature. The problem only exists in Mozilla browsers, and was circumvented in PHP by passing the content-size after the content-type header. I will however try adding a content-disposition header as you've used. Perhaps suggesting a file-extension of FLV might help. I will try it and get back to you.
Lucas: Just to clarify, this script is called from within the SWF. One of the major points of this exercise to on saving bandwidth which is being rapidly used up due to other sites hotlinking to these SWFs. The FLV files are all 40+ MB each, so bandwidth gets chewed up fast. Writing in security precautions into the swfs themselves won't necessarily help because if the SWF itself is hotlinked, all will be for nought. This solution works fine except for this little hiccup, and the PHP solution works perfectly. The SWF file and FLV are both retrieved based on a (date based) keystring (which is passed on to the SWF using FlashVars to retrieve the FLV).. I hope I'm making sense :) Also, is there a better method of retrieving the file size of a file besides this ? <cfdirectory action="list" name="filesize" directory="#flvpath#" filter="#flvname#"> Regards, Karthik. On Thu, 10 Mar 2005 16:38:57 -0000, Paul Fennell <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Yes I do understand what you are saying. > > If you don't have the file info to hand then yea cffile is a solution > , > If you are likely to have a lot of these files and they are uploaded > via an admin interface ( they should be if not ) > You should store the filename and file details in a database > That way the information is to hand and does not place unnecessary > load on the server > > Using Cf content to deliver > > <cfheader name="Content-Disposition" > value="#filepath##filename#.flv"> > <cfcontent type="video/x-flv" file="#filepath##filename#.flv"> > > Should suffice, cannot see why you need the filelenght, never had > that issue before. > > Mind you its not the best - > > I tend to have a file serve cfm page - > There I pass on the fly paras to fill in a <object> tag to pull the > file out > Avoiding cf server having to do any work that way I can protect > content by passing a timer var to the page to validate any request. _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
