IMultiMediaStream::SetState

This method sets the media stream to either a running or stopped state.

HRESULT SetState(
  STREAM_STATE NewState
);

Parameters

  • NewState
    [in] A STREAM_STATE enumeration value that specifies the new media stream state.

Return Values

Returns S_OK.

Remarks

When you set the stream to STREAMSTATE_STOP, this method deletes all data still pending.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.

See Also

IMultiMediaStream Interface

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.