Video Player..hangs plz help
| Mon, 2007-11-26 06:20 | |
|
Hi, I am developing a video player application in which I am showing two views.First view is list view and second is player view .When I play any file by selecting from listbox it plays When I press STOP it returns back to List View properly this time I am able to play any video file by once again selecting from listbox ...After that when I press Can anyone help me..!! Thanks in Advance..!! |
|






Forum posts: 15
Hi,
I got the line where my application hang...
After pressing STOP after RESUME,as mentioned previously I select any video file from listbox to play once again..at this time conrtol goes to the InitControllerL() function to instantiate the CVideoPlayerUtility class. But 2nd time before instatiating
I do check and delete the Object of CVideoPlayerUtility class And this is the time where my application hangs while deleting object.
void CVideoRingTonePlayer::InitControllerL(
CVideoRingTonePlayerContainer* aContainer,
RWsSession& aWs,
CWsScreenDevice& aScreenDevice,
RWindowBase& aWindow,
TRect& aScreenRect,
TRect& aClipRect)
{
iContainer=aContainer;
if (iPlayer)
{
delete iPlayer; <<== this is the place where application hang.
iPlayer = NULL;
}
iState = EInitializing;
iPlayer = CVideoPlayerUtility::NewL(*this, EMdaPriorityNormal,
EMdaPriorityPreferenceNone, aWs,
aScreenDevice,aWindow,aScreenRect,
aClipRect);
//iPlayer->SetDisplayWindowL(aWs,aScreenDevice,aWindow,aScreenRect,aClipRect );
TRAPD(unsupported, iPlayer->OpenFileL(iMediaFile->Des()));
if(unsupported!=KErrNone)
{
iPlayer->Close();
delete iPlayer;
iPlayer = NULL;
User::Leave(unsupported);
}
}
But it is very must to always check and delete the iPlayer.
Can Anybody plz help me..!!
Thanks..!!
Forum posts: 114
Hi,
Check what is being done on "STOP" method and "RESUME" method.
Could you also send the code of methods where "Stop" and "Resume" events are handled.
This problem could be due to incoherent state of the player or the state player engine...
Chao,
Raghav