Description: Goal- Incorporate simple buttons in a Web page that allow you to stop, play, and pause the Windows Media Player in both Microsoft Internet Explorer and Netscape Navigator. This sample describes how to incorporate simple buttons for the Windows Media Player into a Web page. These buttons will work in any browser that supports the Windows Media Player Plug-in and JavaScript.
By adding custom buttons that control the Windows Media, you (as the Web page author) are allowed more control over the look and feel of the page.
The Windows Media Player supports over 20 methods. We'll use the three most common here -- Play(), Pause(), and Stop().
Code to Include
We'll start with our generic cross-browser code embedding code. This code will instantiate the Media Player ActiveX control for browsers which support ActiveX, and the Media Player plug-in for browsers that don't:
Windows Media : Simple Buttons
0 comments
Hide comments