Partager via


IMultiMediaStream::SetState (Compact 2013)

3/26/2014

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

Syntax

HRESULT SetState(
  STREAM_STATE NewState
);

Parameters

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

Return Value

Returns S_OK.

Remarks

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

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IMultiMediaStream Interface