ISource with IMedia | developer.brewmp.com ISource with IMedia | developer.brewmp.com

Developer

ISource with IMedia

Forums:

Hello,

I am opening up a file and creating a ISource object using ISOURCEUTIL_SourceFromAStream. As my media object I'm using AEEMediaDataEx filled with the following data:

media.clsData = MMD_ISOURCE;
media.pData = (void*)pSource;
media.dwSize = 0;
media.dwStructSize = sizeof(media);
media.dwCaps = 0;
media.bRaw = FALSE;
media.dwBufferSize = 0;
media.pSpec = NULL;
media.dwSpecSize = 0;

if(IMEDIA_SetMediaDataEx(pMedia,&media,1) != SUCCESS)
{
Debug("Couldn't set Media Ex Structure");
return;

When I tell IMedia to play I notice in the output window that the buffer being flushed. I have created a call back for IMedia and its being called with the start event. Is there something I have to do or should it work without me having to fill a buffer or something?

Thoughts/ Help

Thanks,

Mike.