MediaStreamContainer::getAvailableMediaStreamContainerList Method

Returns a list of available container types.
Syntax:
static tMediaStreamContainerList    getAvailableMediaStreamContainerList();
Return Value:

The list may be empty ( size() == 0 ) when no containers were found. Otherwise, it contains the available containers that are available on the system.

Example:

The following example shows how to retrieve the list of available media stream containers and displays their names and GUIDs in a list box:

// Get a list of the available media stream containers.
tMediaStreamContainerList list =
    MediaStreamContainer::getAvailableMediaStreamContainerList();
// Display them in a list box.
for( size_t i = 0; i < list.size(); ++i )
{
    tMediaStreamContainerPtr pContainer = list.at( i );
    std::wstring item;
    item += pContainer->getDescriptionW() + L" ";
    item += GUIDToWString( pContainer->getMediaStreamContainerID() );
    std::wcout << item << "\n";
}

See also: MediaStreamContainer, tMediaStreamContainerList

<< MediaStreamContainer