|
Load the video from byte array. It support avi, mpeg1, mpeg2, vob, wmv file only. This method is useful when you use vc++.
Parameter ByteArray An Array which contains video data.
iBufferLen the length of buffer.
strFileType the type of video data. avi- avi video mpg - mpg video wmv - wmv video
Return Value True - Success, False- Failed
Example
|
Visual c++ Syntax std::vector<BYTE> m_vData; CFile cFile; if(!cFile.Open(strPath, CFile::modeRead)) return false; m_vData.resize(cFile.GetLength()); if(m_vData.size() != cFile.Read((void*)&m_vData[0], m_vData.size())) return false; m_MoviePlayer.LoadFromMemory((long*)&m_vData[0],m_vData.size(),strExt);
|
|
|