First, a great big THANK YOU to everyone that's been to the dating website
and created a user for us. You've saved us quite a bit of time, and have
also been creative and found a few bugs, too.
For those of you that have poked around at all, you know that we're having
some trouble serving audio and video clips. Here's how the system is
currently built -- can you think of any way to make this work better across
more platforms?
The process (for audio, in this example):
1. User opts to upload a .WAV file. (We currently do not have money from
the client to work with streaming media, or we'd DEFINITELY be there!)
2. The .WAV file is stored in a directory OUTSIDE the web directory, so
that it is NOT browse-able. It is in a folder outside the www directory, in
a sub-folder associated with THAT particular member. The name of the file
on the server is now "audio.wav" in that user's data directory. Again, I
stress -- this file is NOT available directly to any browser, because it is
NOT in a web-served directory. We are tracking hits on these files, plus
they really are for members only!
3. Joe Public-User logs in as a member, goes to a member's profile, and
sees that they have an audio clip available. They click the link to play
the WAV file.
4. The fuse gets the member's folder, based on the profile the person was
viewing.
5. Next, using CFCONTENT, the file is "served" from the fuse. Code looks
like:
{dsp_AudioFile.cfm}
<cfcontent
type="audio/x-wav"
file="#Attributes.MDPathInfo#\#Attributes.UserPK#\Audio.wav"
deletefile="No">
Now, here on MY machine (Dell Dimension XPS R-450, Windows 2K Pro, I.E. 5.5)
this works fine -- I am prompted to play the file from it's current
location, or to download it. That is the expected behavior in this release
of the application. But other people are having trouble, and I myself am
having trouble when using Netscape 4.x.
My question is, without actually placing the file online where anyone could
browse to it (meaning that now everyone would have access, not just site
members, AND we lose hit count), how would YOU handle this requirement?
Ultimately, I'd love to embed Windows Media Player in a popup window, and
automatically play the WAV (or MPG, for the videos) when the user selects to
play a sound or movie clip. But I don't think I can embed the player AND
have the file "offline", because the player is expecting a URL-type access
to these files, whereas I need to provide drive-letter access to the file,
served THROUGH the player page.
Any ideas?
Thanks in advance, everyone!
Marc
(Cartman, on the dating website!)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists