Visual InterDev

Visual Studio 6.0

Multimedia Site Sample


This sample displays several different multimedia files from a single Web page. A background sound, an embedded video in HTML, an embedded video using the Microsoft® ActiveMovie™ control, and links to different multimedia files are used to enhance this page.

Behind the Scenes

This example has only one file:

  • MMedia.htm contains enhancements for and links to multimedia effects.

The first two multimedia enhancements in this file are from HTML tags. The first one is used to set the background sound that is played when this page is loaded in the browser:

<BGSOUND SRC=Utopia.wav>

The second enhancement plays an AVI file continuously in the page using a Microsoft® Internet Explorer enhanced version of the <IMG> tag:

<IMG dynsrc=Clock.avi loop=infinite>

The next multimedia enhancement in this file uses the Microsoft ActiveMovie control, directly embedded in the page so that a separate program does not need to run.

The following settings load the multimedia file Globe.avi into the player and set properties of the object to control how the object is displayed and run:

<OBJECT classid=CLSID:05589FA1-C356-11CE-BF01-00AA0055595A height=155
id=ActiveMovie1 style="LEFT: 0px; TOP: 0px" width=267 VIEWASTEXT>
   <PARAM NAME="_ExtentX" VALUE="7064">
   <PARAM NAME="_ExtentY" VALUE="4101">
   <PARAM NAME="EnableContextMenu" VALUE="-1">
   <PARAM NAME="ShowDisplay" VALUE="0">
   <PARAM NAME="ShowControls" VALUE="-1">
   <PARAM NAME="ShowPositionControls" VALUE="0">
   <PARAM NAME="ShowSelectionControls" VALUE="0">
   <PARAM NAME="EnablePositionControls" VALUE="-1">
   <PARAM NAME="EnableSelectionControls" VALUE="-1">
   <PARAM NAME="ShowTracker" VALUE="-1">
   <PARAM NAME="EnableTracker" VALUE="-1">
   <PARAM NAME="AllowHideDisplay" VALUE="0">
   <PARAM NAME="AllowHideControls" VALUE="0">
   <PARAM NAME="MovieWindowSize" VALUE="0">
   <PARAM NAME="FullScreenMode" VALUE="0">
   <PARAM NAME="MovieWindowWidth" VALUE="-1">
   <PARAM NAME="MovieWindowHeight" VALUE="-1">
   <PARAM NAME="AutoStart" VALUE="0">
   <PARAM NAME="AutoRewind" VALUE="-1">
   <PARAM NAME="PlayCount" VALUE="1">
   <PARAM NAME="SelectionStart" VALUE="0">
   <PARAM NAME="SelectionEnd" VALUE="-1">
   <PARAM NAME="Appearance" VALUE="0">
   <PARAM NAME="BorderStyle" VALUE="1">
   <PARAM NAME="FileName" VALUE="http://mpope3/Gallery/mmedia/Globe.avi">
   <PARAM NAME="DisplayMode" VALUE="0">
   <PARAM NAME="AllowChangeDisplayMode" VALUE="0">
   <PARAM NAME="DisplayForeColor" VALUE="0">
   <PARAM NAME="DisplayBackColor" VALUE="0">
   <PARAM NAME="Enabled" VALUE="-1">
   <PARAM NAME="Rate" VALUE="1">