Rich Cooper wrote:
I found out by experimentation that I can embed video clips into HTML pages
on my Indy HTTP web server - haven't done that before.

Note that that has nothing to do with Indy at all. You can do the same thing anywhere. You could paste that HTML into a blog and get the same effect.

This is the video clip HTML I pasted into my web page:

<object width="425" height="344"><param name="movie"
value="http://www.youtube.com/v/X5tOjiP9A3Q&color1=0xb1b1b1&color2=0xcfcfcf&;
feature=player_embedded&fs=1"></param><param name="allowFullScreen"
value="true"></param><param name="allowScriptAccess"
value="always"></param><embed
src="http://www.youtube.com/v/X5tOjiP9A3Q&color1=0xb1b1b1&color2=0xcfcfcf&fe
ature=player_embedded&fs=1" type="application/x-shockwave-flash"
allowfullscreen="true" allowScriptAccess="always" width="425"
height="344"></embed></object>


In this case the "src" is a Youtube web URL.  I would like to paste OTHER
video clips into my web site from time to time, but I don't want to have to
put them on Youtube. Using D7, Indy, Vista for the web server.
How do I upgrade that web site to serve video files from the web site itself
instead of from Youtube?

When your server gets a request with a URL referring to a video resource or a Flash resource, serve that instead of the HTML resources you're already serving.

You could serve those resource from files, or they could be embedded in your application binaries, or you could even generate them on the fly. The user agent never needs to know; it doesn't care.

Also, I want to let people download other files
from the site, but I don't understand how to set up an FTP server along with
the Indy HTTP server.

Do you want to write the FTP server yourself, or would you be content to use one of the billions of FTP servers already available? (I might have exaggerated.) FTP listens on a different port from HTTP, so the servers don't have to be combined into one if you don't want.

If you want to use Indy to make your own FTP server, then I think you start by creating an FTP server object and handling the events it provides. It will be similar to implementing an HTTP server, but it might provide a few more shortcuts for tying the FTP interface to the local computer's files.

--
Rob
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to