Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all,
I don't know Simulator in Brew MP can support RTSP or not. This is my code, I think it is ok but can't run in Simulator. Please help me, thanks a lot.

IMediaUtil *pIMediaUtil; // access IMediaUtil interface
IMedia *pIMedia; // access IMedia interface
if (ISHELL_CreateInstance(pIShell, AEECLSID_MEDIAUTIL,
(void **)&pIMediaUtil) != SUCCESS) {
pIMediaUtil = NULL;
return ;
}
char file_name[100]="rtsp.url"; // rtsp://192.168.161.15:81/paradise.mp3
AEEMediaData md;
md.clsData = MMD_FILE_NAME;
md.pData = (void *)file_name;
md.dwSize = 0;
IMEDIAUTIL_CreateMedia(pIMediaUtil, &md, &pIMedia);
IMedia_Play(pIMedia);

Hi
You are directally setting URL to the md.pData
So it is not working. Ones you download file first and then set path of downloaded file to md.pData

Hi
You are directally setting URL to the md.pData
So it is not working. Ones you download file first and then set path of downloaded file to md.pData

I am trying to use rtsp video streaming  and i study it from mediaplayer example demo, i changed some code line to work with rtsp as follows but it shows only duration of video on screen but not play it, Can any one heple me? my email is : ssmali1505@gmail.comI am using 1.0.4 emulator    md.clsData = MMD_FILE_NAME;    sprintf(pszBuf, "rtsp://192.168.5.1:554/abc.3gp");    md.pData = (void *)pszBuf;

I am trying to use rtsp video streaming  and i study it from mediaplayer example demo, i changed some code line to work with rtsp as follows but it shows only duration of video on screen but not play it, Can any one heple me? my email is : ssmali1505@gmail.comI am using 1.0.4 emulator    md.clsData = MMD_FILE_NAME;    sprintf(pszBuf, "rtsp://192.168.5.1:554/abc.3gp");    md.pData = (void *)pszBuf;