IMedia Streaming Capabilities | developer.brewmp.com IMedia Streaming Capabilities | developer.brewmp.com

Developer

IMedia Streaming Capabilities

Forums:

Hi everybody,
i'm trying to use IMedia interface to reproduce media files such as mp3,mp4,3gp.
If I pass to IMEDIA_SetMediaData a local file everything goes right.
Now, how can i reproduce a file intended for streaming (for example http:\\abcserver\test.mp3)?
is IMEDIA able to handle and play content directly from the net?

I simply tried to replace the local file's path with a rtsp (or http) URL: i dont receive any error message, app ends regularly, but i can't hear anything...it seems like Imedia doesn't handle connection...

Could anyone give me suggestions and hopely give me some working code as an example??

Thanks to everybody

Hi,
You'll have to work with IWEB interface.
When calling to IWEB_GetResponse method you'd have to define a callback function which you'll implement. There you'll get the ISOURCE by calling IWEBRESP_GetInfo and give the member "pisMessage" to your IMEDIA object.
AEEMediaDataEx mediaInfo;
.
.
mediaInfo.clsData = MMD_ISOURCE;
mediaInfo.pData = (void*)pISource; // the ISOURCE you took from IWEB
.
.

Hi,
You'll have to work with IWEB interface.
When calling to IWEB_GetResponse method you'd have to define a callback function which you'll implement. There you'll get the ISOURCE by calling IWEBRESP_GetInfo and give the member "pisMessage" to your IMEDIA object.
AEEMediaDataEx mediaInfo;
.
.
mediaInfo.clsData = MMD_ISOURCE;
mediaInfo.pData = (void*)pISource; // the ISOURCE you took from IWEB
.
.