Forward Compatibility

Windows Media Player SDK banner art

In addition to the attributes supported when you create an instance of the control in NSPlay or ActiveMovie mode, a new property named MediaPlayer is exposed. This property provides access to the methods and properties supported in MediaPlayer mode. Use the following syntax to access MediaPlayer-mode attributes when the control is operating in NSPlay or ActiveMovie mode.

AlternateMode.MediaPlayer.Attribute

AlternateMode is the instance of the player control object ID created by using the NSPlay or ActiveMovie CLSID, and Attribute is any method or property exposed by the control in MediaPlayer mode. For example, if your script embedded the NetShow Player 2.0 control with an ID attribute equal to NSPlay1, you would access the Volume property by using the following code.

NSPlay1.MediaPlayer.Volume