IltmmPlay::get_SourceVideoFOURCC Example for C++
CString strSourceVideoFOURCC;
char szSourceVideoFOURCC[5];
long lSourceVideoFOURCC;
m_player->get_SourceVideoFOURCC (&lSourceVideoFOURCC);
if (lSourceVideoFOURCC == 0)
strSourceVideoFOURCC = "source video is not a FOURCC";
else
{
szSourceVideoFOURCC[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;
}
MessageBox(strSourceVideoFOURCC);