Share via


IWMPControls2 (VB and C#) interface

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Provides a method that supplements the IWMPControls interface.

Members

The IWMPControls2 (VB and C#) interface has these types of members:

Methods

The IWMPControls2 (VB and C#) interface has these methods.

Method Description
step Moves the current video media item to the next frame or the previous frame and freezes playback.

The following example code shows how to access an IWMPControls2 interface. The example code casts the IWMPControls value that the AxWindowsMediaPlayer.Ctlcontrols property returns to a IWMPControls2 value.

For C#:

IWMPControls2 Ctlcontrols2 = (IWMPControls2)AxWindowsMediaPlayer.Ctlcontrols;

For VB:

Dim Ctlcontrols As WMPLib.IWMPControls = Me.AxWindowsMediaPlayer1.Ctlcontrols
Dim Ctlcontrols2 As WMPLib.IWMPControls2 = DirectCast(Ctlcontrols, WMPLib.IWMPControls2)

Requirements

Requirement Value
Header
Wmp.h

See also

IWMPControls

Interfaces for Visual Basic .NET and C#

IWMPControls Interface (VB and C#)

IWMPControls3 Interface (VB and C#)