Once you're finished creating NetShow content, you can link to it from HTML pages or applications so that it plays in its external player, or you can embed it into a Web page or Microsoft Office application.


Note that the Content Creation Authoring Guide (CCAG) is the most complete guide to creating stored NetShow content. For more exhaustive information on these subjects, be sure to look there.

Contents

Launching from standard link from HTML page

Browsers by nature understand that when a user hits a link to content, that content should be downloaded to the user's cache directory where it then plays from the user's hard drive. Streaming was invented to eliminate the need to download content before it starts playing, which means more immediate play and less burden on the user to have adequate hard disk space available. However, when linking directly to streaming files using a standard <a href> tag, the browser will simply download it like any other document. Therefore, when you want to link to NetShow content to play in the external player, you create a redirector file called an ASX and link to that instead.

Next, host your ASX file on an HTTP server or network server to which all of your potential users will have access. When it's time to link to the ASX in your HTML page, just use a normal tag:

<a href="http://servername/path/asxname.asx">Description</a>

Launching from e-mail message

Now that you know what an ASX file is and how to create an ASX, you're already there. Simply insert the ASX file in an e-mail message, and when the user receives it they can double-click on it and the NetShow content will start streaming from the specified server.

There are some big advantages to inserting ASX files into e-mail messages as a way to invite or encourage people to view live or stored content. First, doing it this way saves bandwidth. Instead of e-mailing large numbers of people big multimedia files that could clog network bandwidth, when you send ASX files you're only sending a tiny (approximately 1 Kb) file that doesn't take up network bandwidth until the user starts playing the file. Also, sending ASX files means that the NetShow content will play in its external player, which frees the user to continue reading e-mail or work on other applications. Lastly, it allows the content developer to sidestep the entire browser issue by not even requiring that the user have a browser installed.

Putting it all together: All-Browser Friendly Code

Example: Directions to Microsoft

Use this combination of the above code to create HTML pages that allow you to embed content for Internet Explorer and Netscape, and to play in the external NetShow player on browsers that don't support embedding.

<OBJECT ID="NSPlay" WIDTH=160 HEIGHT=128 CLASSID="CLSID:2179C5D3-EBFF-11CF-B6FD-00AA00B4E220"

<!--CODE TO GO GET NETSHOW PLAYER-->
CODEBASE="http://www.microsoft.com/netshow/download/en/nsasfinf.cab#Version=2,0,0,912">
<PARAM NAME="FileName" VALUE="http://server/path/myvideo.asx">
<Embed type="video/x-ms-asf-plugin"
src="http://server/path/myvideo.asx"
filename="http://server/path/myvideo.asx"
pluginspage="http://www.microsoft.com/netshow/download/player.htm"
ControlType=1
width=290
height=250>
</embed>
</OBJECT>

<!--START CODE TO GO GET CODECS (OUTSIDE OBJECT TAG; NOT INSIDE)-->
<!--CODE TO GO GET ITERATED SYSTEMS CLEARVIDEO CODEC-->

<iframe src="http://www.microsoft.com/netshow/download/codecs/installclear.htm" name="CLEAR" width="1" height="1" frameborder=0 marginheight=0 marginwidth=0 scrolling=auto>
<!-- IE users will get the codec automatically downloaded if they need it. Non IE 32bit users see this next bit -->
If you do not have the Iterated Systems ClearVideo codec installed, you can install the <a href="http://www.microsoft.com/netshow/download/player.htm">Full NetShow client install</a> in order to obtain it.
</iframe>

<!--CODE TO GO GET DUCK TRUMOTION CODEC-->

<iframe src="http://www.microsoft.com/netshow/download/codecs/installduck.htm" name="Duck" width="1" height="1" frameborder=0 marginheight=0 marginwidth=0 scrolling=auto>
<!-- IE users will get the codec automatically downloaded if they need it. Non IE 32bit users see this next bit -->
If you do not have the Duck TruMotion video codec installed, you can install the <a href="http://www.microsoft.com/netshow/download/player.htm">Full NetShow client install</a> in order to obtain it.
</iframe>

<!--CODE TO GO GET VOXWARE METASOUND CODEC-->

<iframe src="http://www.microsoft.com/netshow/download/codecs/installmetasnd.htm" name="MetaSound" width="1" height="1" frameborder=0 marginheight=0 marginwidth=0 scrolling=auto>
<!-- IE users will get the codec automatically downloaded if they need it. Non IE 32bit users see this next bit -->
If you do not have the Voxware MetaSound audio codec installed, you can install the <a href="http://www.microsoft.com/netshow/download/player.htm">Full NetShow client install</a> in order to obtain it.
</iframe>

<!--CODE TO GO GET VOXWARE METAVOICE CODEC-->

<iframe src="http://www.microsoft.com/netshow/download/codecs/installmetavoice.htm" name="MetaVoice" width="1" height="1" frameborder=0 marginheight=0 marginwidth=0 scrolling=auto>
<!-- IE users will get the codec automatically downloaded if they need it. Non IE 32bit users see this next bit -->
If you do not have the Voxware MetaVoice audio codec installed, you can install the <a href="http://www.microsoft.com/netshow/download/player.htm">Full NetShow client install</a> in order to obtain it.
</iframe>

<!--CODE TO GO GET VDONET VDOWAVE CODEC-->

<iframe src="http://www.microsoft.com/netshow/download/codecs/installvdo.htm" name="VDO" width="1" height="1" frameborder=0 marginheight=0 marginwidth=0 scrolling=auto>
<!-- IE users will get the codec automatically downloaded if they need it. Non IE 32bit users see this next bit -->
If you do not have the VDO codec installed, you can install the <a href="http://www.microsoft.com/netshow/download/player.htm">Full NetShow client install</a> in order to obtain it.
</iframe>

<!--HAVE USERS WITH BROWSERS THAT CANNOT EMBED PLAY IN NETSHOW PLAYER-->
<br>
<a href="http://server/path/myvideo.asx">Start the NetShow presentation in the stand-alone player.</a>

Some notes:

Launching from a Microsoft Office application

Imagine being able to give a PowerPoint® presentation that includes streaming multimedia as part of the presentation, or using audio and/or video to explain a tricky part in a spreadsheet. You can use Microsoft Office's ability to insert ActiveX™ controls to do these things quite easily.

The first step is to buy Microsoft Office 97. Then go into your favorite Office application and follow these steps:

Calling VBScript from Within NetShow

One of the most powerful features of NetShow is the ability to embed timed script events within the stream itself. By doing this, one can do anything that VBScript® can do, from firing events within the browser, to calling events within other ActiveX controls.

With the original content in hand, creating full-featured applications is just steps away.


© 1997 Microsoft Corporation. All rights reserved. Legal Notices