void GetPlayerSourceVideoFormat(IltmmPlay *pPlay){CString strSourceVideoFOURCC;char szSourceVideoFOURCC[5];long lSourceVideoFOURCC;// try to get the source FOURCCHRESULT hr = pPlay->get_SourceVideoFOURCC(&lSourceVideoFOURCC);// if zero then it is not a FOURCC formatif (FAILED(hr) || lSourceVideoFOURCC == 0)strSourceVideoFOURCC = "source video is not a FOURCC";else{// if we have a valid FOURCC, bitshift it out to characters for displayszSourceVideoFOURCC[0] = (lSourceVideoFOURCC & 0xff);szSourceVideoFOURCC[1] = (lSourceVideoFOURCC & 0xff00) >> 8;szSourceVideoFOURCC[2] = (lSourceVideoFOURCC & 0xff0000) >> 16;szSourceVideoFOURCC[3] = (lSourceVideoFOURCC & 0xff000000) >> 24;szSourceVideoFOURCC[4] = '\0';strSourceVideoFOURCC = "Source Video ID is ";strSourceVideoFOURCC += szSourceVideoFOURCC;}// display our messageMessageBox(NULL, strSourceVideoFOURCC, TEXT("Source Video FOURCC Format"), MB_OK);}
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
