Media Player Plug-in for Web Browsers
The plug-in samples demonstrates how to use the Media Player plug-in to create Web pages for all Plug-in enabled browsers.
The HTML source code can be found in the \DxMedia\Samples\Plugin folder. This sample consists of the following files:
- sample1.htm (Embedding Only): A self contained, browser agnostic example of the HTML code snippet necessary for basic Media Player control embedding.
- sample2.htm (Embedding with Properties/Methods): A self contained, browser agnostic example which utilizes an embeded player control to demonstrate how to use properties and methods exposed by the plug-in.
- sample3.htm (Script Event handling): This file incorporates Script Event handling, in the form of "alert boxes" which will become visable whenever (a) the state of the player control changes, or (b) a script command is received from the media stream. In this case, the script commands are text strings which contain a transcript of the narration.
- sample4.htm (Advanced Script Event handling): The behavior is the same as Sample #3, but this time the HTML script uses external Javascript include files (.js) as containers for the scripting necessary to receive and handle the methods and events.
- sample5.htm (Advanced All Browser Script Event handling): The behavior is the same as Sample #3 and #4, but this time the HTML script uses external Javascript include files (.js) as containers for the scripting necessary to receive and handle the methods and events. Plus the sample includes VBScript to handle Internet Explorer events on the same page. This is one page fits all.
- demo.asf: This file contains the multimedia content used by all samples.
These samples to are fully documented in the NetShow Web Plug-in
portion of the SDK documenttaion.