WINDOWS MEDIA LINKING
Linking with ASX files
|
- This technique opens the movie in WM player
Create a text file (Mac users can use Text Edit or BBedit,
and Windows users can use Notepad) and include the following
link.
<ASX Version="3.0">
<ENTRY>
<REF href = "mms://win.iFactorystream.org/account/wm/filename.wmv"
/>
</ENTRY>
</ASX>
The parameters you personalize are in bold:
Account is the account name we give you when you purchase
your streaming account, and filename.wmv is the name
of your WM file saved on the streaming server in the WM directory.
The file must be saved with the .asx extension with no spaces.
and saved to your WEB SERVER not your streaming server.
Now in your html page you can make a simple href to the file
you have just created. When a user clicks the link the browser
will open Windows Media Player and play the clip.
.asx files are so small they can be easily sent by e-mail
too as an invite to your audience.
Linking
With tag <OBJECT>
- This technique embeds the movie in your web page
Tag <OBJECT> allows you to incorporate a link to
a clip directly in the html page, using the .asx file previously
created (see instructions above) without opening Windows Media
Player.
Copy and paste the following code in the area of your web
page where you intend the clip to be viewed:
<OBJECT ID="MediaPlayer" WIDTH="320"
HEIGHT="240" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="filename.asx">
<PARAM NAME="autostart" VALUE="1">
<PARAM NAME="showcontrols" VALUE="1">
<EMBED TYPE="application/x-mplayer2"
SRC="filename.asx"
WIDTH="320"
HEIGHT="240"
AUTOSTART="1"
SHOWCONTROLS="1">
</EMBED>
</OBJECT>
The parameters that you need to personalise are in bold:
WIDTH e HEIGHT specify the pixel dimension of the clip;
VALUE e SRC= specify the .asx file saved on the web server;
AUTOSTART="1" starts the clip automatically AUTOSTART="0"
the clip appears in pause mode;
SHOWCONTROLS="1" enables the player controls to
be visible
SHOWCONTROLS="0" hides the player controls
If you choose SHOWCONTROLS="1" it is necessary to
increase the Height value by 44 in order to enable the player
controls to be visible and avoid distortion of the video.
|