IltmmPlay::get_StreamCount

Summary

Gets the number of streams of the specified stream type in the current program.

Syntax

#include "ltmm.h"

Language Syntax
C HRESULT IltmmPlay_get_StreamCount(pPlay, streamType, pVal)
C++ HRESULT get_StreamCount(streamType, pVal)

Parameters

IltmmPlay *pPlay

Pointer to an IltmmPlay interface.

ltmmPlay_Stream streamType

The type of stream you're interested in. Currently, only two stream types are supported: Video (ltmmPlay_Stream_Video) and Audio (ltmmPlay_Stream_Audio).

long *pVal

Pointer to a variable to be updated with the number of streams of the specified streamType.

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

See the Programs and Streams topic for more information on programs and streams.

This property returns the number of streams of the specified type in the current program. You can then select which streams to play by calling IltmmPlay::put_SelectedStream.

If you change the current program using IltmmPlay::put_CurrentProgram, the number of streams can change. So you will need to call IltmmPlay::get_StreamCount again.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

Language Example
C++ IltmmPlay::get_StreamCount
Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.