MediaStreamContainer::getAvailableMediaStreamContainers Method [Deprecated]

Returns a list of available container types.
Syntax:
static tMediaStreamContainerListPtr    getAvailableMediaStreamContainers();
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.

Information:

Introduced in version 3.0
This method is deprecated since version 3.5.6.
MediaStreamContainer::getAvailableMediaStreamContainerList

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:

CListBox* pContainerList = (CListBox*)GetDlgItem( IDC_CONTAINERS );
// Get a list of the available media stream containers.
tMediaStreamContainerListPtr pList =
    MediaStreamContainer::getAvailableMediaStreamContainers();
// Display them in a list box.
for( int i = 0; i < int(pList->size()); ++i )
{
    tMediaStreamContainerPtr pContainer = pList->at( i );
    std::wstring item;
    item += pContainer->getDescriptionW() + L" ";
    item += GUIDToWString( pContainer->getMediaStreamContainerID() );
    pContainerList->AddString( item.c_str() );
}

See also: MediaStreamContainer, tMediaStreamContainerListPtr

<< MediaStreamContainer