Reply to Re: linking a video file

Your name:

Reply:


Posted by Ed Mullen on 01/04/07 02:43

thedarkman wrote:
> I may have asked this before but if I have a directory on my disk
> called say:
>
> c:\video
>
> and I have a file in this called
>
> c:\video\tv.wmv
>
> how can I play it using a file called c:\video\play.html
>
> what code do I put in the file?
>
> Thanks
>

The other replies notwithstanding, and since you didn't ask about /how/
the file should be played, the simplest thing is to create an html file
with a simple href to the file. Assuming the html file and the video
file are in the same folder ...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
Click <a href="tv.wmvclick"> this link</a> to play the video
</body>
</html>

If your system and browser are configured properly that will launch a
media player program to play the file.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
Harmony of aim, not identity of conclusion, is the secret of sympathetic
life. - Ralph Waldo Emerson

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация