There is an project named GMF bridge and GMF play which is available on the following link http://www.gdcl.co.uk/gmfbridge/ in this project we are able to give the file as input and play it but how can i give the H264 packet as input and make it Play continuously as it takes the path of the file as input....
the original code was as follows:-
HRESULT hr = m_pPlayer->AddClip(ofn.lpstrFile, &pClip);
ClipPlayer::AddClip(const char* path, ClipEntry** ppClip)
{
list<ClipEntry>::iterator it = m_Clips.insert(m_Clips.end(), ClipEntry());
ClipEntry* pClip = &(*it);
*ppClip = pClip;
HRESULT hr = pClip->Create(m_pController, path);
.....
...
}
what i did is
i opened the file and parse the NAL unit and save the NAL unit into an byte array and gave the BYTEArray instead of file name.