I hava writed a simple programme to play a video ,but when i call the method to play it,the emulator exit. It has trouble for one day. who can help me? the next is my codes:
the methods in the videoEngine:
void CVideoEngine::InitControlerL(RWsSession& aWs,CWsScreenDevice& aScreenDevice, RWindowBase &aWindow,
const TRect &aScreenRect, const TRect &aClipRect, const TDesC& aFileName)
{
iVideoPlayer=CVideoPlayerUtility::NewL(*this, EMdaPriorityNormal,
EMdaPriorityPreferenceNone, aWs, aScreenDevice, aWindow,
aScreenRect, aClipRect);
iVideoPlayer->OpenFileL(aFileName);
}
The method in the AppUi class to call the above method:
void CVideoClipAppUi:oInitControllerL(const TDesC& aFileName)
{
iEngine->InitControlerL(iAppView->ClientWsSession(),
iAppView->ScreenDevice(), iAppView->ClientWindow(),
iAppView->VideoRect(), iAppView->VideoRect(), aFileName);
}
The command to play the video in the handlcommandL of appui:
case EPlayVideo:
{
DoInitControllerL(_L("E:\\video\\video.3gp"));
}
break;

oInitControllerL(const TDesC& aFileName)



