home / experts / javascript / column53 |
|
Controlling the PlayerThe set of the ActiveX control's properties, methods, and event handlers is very similar to the plugin's. The names of the methods and events are identical. The properties are different though. While you can set and get the ActiveX control's properties as they are, you have to use the plugin's
You can get it simply by referring to
and get it:
To streamline the integration between the ActiveX control and plugin conventions, we chose to write our own functions for getting and setting properties. In this way, the difference between the browsers is reflected only inside our functions, leaving the overall script quite generic and neat. For example, let's examine the function that sets the media file name,
Now, let's examine a get function. Here is the function that gets the
The rest of the functions can be found in the listings of the script. Refer to our previous two installments for explanation on the buttons and the selection list at the bottom of the Media Control display. The
|
Produced by Yehuda Shiran and Tomer Shiran
Created: December 6, 1999
Revised: December 7, 1999
URL: http://www.webreference.com/js/column53/control.html