Compartir a través de


IMultiMediaStream::GetDuration (Compact 2013)

3/26/2014

This method returns the media stream's duration.

Syntax

HRESULT GetDuration(
  STREAM_TIME* pDuration
);

Parameters

  • pDuration
    [out] Pointer to a STREAM_TIME value that will contain the media duration.

Return Value

Returns one of the following values.

Value

Description

E_POINTER

The value of pDuration is invalid.

MS_E_WRITESTREAM

The media stream is writable and therefore has no duration.

S_FALSE

Stream contains live data or this method could not determine the duration.

On return, this method sets pDuration to zero.

S_OK

Stream contains recorded media. On return, pDuration contains duration of media.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IMultiMediaStream Interface