IMFSinkWriter::SendStreamTick method

Indicates a gap in an input stream.

Syntax


HRESULT SendStreamTick(
  [in]  DWORD dwStreamIndex,
  [in]  LONGLONG llTimestamp
);

Parameters

dwStreamIndex [in]

The zero-based index of the stream.

llTimestamp [in]

The position in the stream where the gap in the data occurs. The value is given in 100-nanosecond units, relative to the start of the stream.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

For video, call this method once for each missing frame. For audio, call this method at least once per second during a gap in the audio. Set the MFSampleExtension_Discontinuity attribute on the first media sample after the gap.

Internally, this method calls IMFStreamSink::PlaceMarker on the media sink.

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

See also

Sink Writer
IMFSinkWriter

 

 

Community Additions

ADD
Show:
© 2014 Microsoft