다음을 통해 공유


IWMPControls2::step method

[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.]

The step method causes the current video media item to step to the next frame or the previous frame and freeze playback.

Syntax

public void step(
  System.Int32 lStep
);

Public Sub step( _
  ByVal lStep As System.Int32 _
)
Implements IWMPControls2.step

Parameters

lStep [in]

A System.Int32 value indicating how many frames to step before freezing. Must be set to 1 or -1.

Return value

This method does not return a value.

Remarks

This method currently supports only the parameters 1 or -1, so you can only step one frame at a time.

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later
Namespace
WMPLib
Assembly
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

See also

IWMPControls2 Interface (VB and C#)

IWMPDVD Interface (VB and C#)