For complete code, refer to the CNVWM demo.
void GetStreamInfo(IltmmWMProfile *pProfile){USES_CONVERSION;IltmmWMStreamConfig *pStreamConfig = NULL;BSTR bstrString;long lStreamCount;int i;long lValue;double fValue;WCHAR temp[50];// Show all the information regarding the streamspProfile->get_StreamCount(&lStreamCount);for (i=0; i<lStreamCount; i++){pProfile->GetStream(i, &pStreamConfig);wsprintf(temp, TEXT("[[ Stream %d ]]\n"), i);wprintf(temp);// Get the major type of the streampStreamConfig->get_StreamType(&bstrString);wprintf(TEXT("Stream type : %s\n"), bstrString);SysFreeString(bstrString);// Get Stream numberpStreamConfig->get_StreamNumber(&lValue);wprintf(TEXT("Stream number : %d\n"), lValue);// Get Stream namepStreamConfig->get_StreamName(&bstrString);wprintf(TEXT("Stream name : %s\n"), bstrString);SysFreeString(bstrString);// Get Connection namepStreamConfig->get_ConnectionName(&bstrString);wprintf(TEXT("Stream connection name : %s\n"), bstrString);SysFreeString(bstrString);// Get BitratepStreamConfig->get_Bitrate(&lValue);wprintf(TEXT("Stream bitrate : %d\n"), lValue);// Get the maximum latency (time in milliseconds) between stream reception and displaypStreamConfig->get_BufferWindow(&lValue);wprintf(TEXT("Stream buffer window : %d\n"), lValue);// Get the major type of the media in the streampStreamConfig->get_Type(&bstrString);wprintf(TEXT("Major type of the stream media : %s\n"), bstrString);SysFreeString(bstrString);// Get the maximum key frame time interval (in 100-nano seconds)pStreamConfig->get_MaxKeyFrameSpacing(&fValue);wprintf(TEXT("Maximum key frame time interval : %.Ef\n"), fValue);// Get the Quality, range from 0 to 100// where zero denotes maximum frame rate and 100 denotes maximum quality.pStreamConfig->get_Quality(&lValue);if(lValue == -1)wprintf(TEXT(" ...(Unknown)\n"));elsewprintf(TEXT("Stream quality : %d\n"), lValue);wprintf(TEXT("\n"));pStreamConfig->Release();}pProfile->Release();}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
