Do you just want to just have a simple link on your page that plays a
video file? If so, import the file into your web first, then on your
page, write a short title for your video (e.g., "my dogs video"),
select the text, hit the hyperlink button on your tools bar (or use
CTRL+K), and when the hyperlink search box pops up, point to your video
file.
On the other hand, if you wish to embed the file, that is, what the
media player directly into your web page (not always recommended
because not everyone has that control - you would want to include a
link to download the appropriate player ) use the following code
(OF COURSE - CHANGE THE SOURCE FILE FROM
http://www.example.com/mydogsvideo.XXX
IN THE SAMPLES BELOW TO THE LOCATION OF YOUR FILE !!! EXAMPLE.COM IS
JUST AN EXAMPLE URL.)
________________________________________
Windows Media Player files:
________________________________________
<object id="MMPlayer1" width="320" height="350"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="
http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<param name="AudioStream" value="-1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="-1">
<param name="AnimationAtStart" value="-1">
<param name="AllowScan" value="0">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="-1">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="-1">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="0">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value="Slide">
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="0">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="0">
<param name="EnablePositionControls" value="0">
<param name="EnableFullScreenControls" value="-1">
<param name="EnableTracker" value="0">
<param name="FileName" value="
http://www.example.com/mydogsvideo.wmv"
ref valuetype="ref">
<param name="InvokeURLs" value="0">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="-1">
<param name="SendMouseClickEvents" value="-1">
<param name="SendMouseMoveEvents" value="-1">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="0">
<param name="TransparentAtStart" value="-1">
<param name="VideoBorderWidth" value="1">
<param name="VideoBorderColor" value="#000000">
<param name="VideoBorder3D" value="-1">
<param name="Volume" value="100">
<param name="WindowlessVideo" value="-1">
<embed type="application/x-mplayer2"
pluginspage="
http://www.microsoft.com/Windows/MediaPlayer/download/default.asp"
src="
http://www.example.com/mydogsvideo.wmv" name="MMPlayer1"
autostart="1" showcontrols="1" showdisplay="1" showstatusbar="1"
defaultframe="Slide" width="280" height="240">
</object>
________________________________________________
for real player files:
_________________________________________________
<embed SRC="
http://www.example.com/mydogsvideo.rm" WIDTH="498"
HEIGHT="362" CONTROLS="ImageWindow" CONSOLE="one"
MAINTAINASPECT="true"><br>
<embed SRC="
http://www.example.com/mydogsvideo.rm" WIDTH="240"
HEIGHT="20" CONTROLS="ControlPanel" CONSOLE="one" AUTOSTART="true">
___________________________________________________
for qucktime files:
____________________________________________________
<embed width="320" height="254"
src="
http://www.example.com/mydogsvideo.mov">
_____________________________________________________
OF COURSE - CHANGE THE SOURCE FILE FROM
http://www.example.com/mydogsvideo.XXX
IN THE SAMPLES ABOVE TO THE LOCATION OF YOUR FILE !!! EXAMPLE.COM IS
JUST AN EXAMPLE URL.
Always, ALWAYS, offer a link to the downloads required to play your
file. Here are the most useful (steal them, and the logo buttons, from
my site):
http://savalas.tv/help/media_players.htm
I recommend that you just put a link to the file, as I said first,
because object embedding is a client-side function, calling a control
on the visitors computer. They have to load the control to see a page
with embedded files, which can be slow and annoying. Might want to use
a browser plug-in test page, like I use at:
http://savalas.tv/help/browser_check.htm
to help folks see what they need before you start running
ActiveX/Java/etc. controls on them. Try to make several versions of
your video (Windows Media, Real Player, QuickTime, and generic .mpg)
files available for your visitors, as well as different bandwidth
requirements (56k & 100k versions, for example) so that everyone can
enjoy your dog's video. Good luck.