Video Player..hangs plz help

Login to reply to this topic.
Mon, 2007-11-26 06:20
Joined: 2007-07-18
Forum posts: 15

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
properly by activating my video player and two CBA buttons PAUSE and STOP.

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
PAUSE ..with pausing video two CBA button appears MUTE and RESUME ..in this case when I press Resume button it plays the video once again.and previous PAUSE and STOP CBA apperas .Problem comes here now if I press STOP
it goes back to ListView and Here if I select any file from listbox for playing video again My applications hangs
.

Can anyone help me..!!
Sorry for my english..!!

Thanks in Advance..!!


Mon, 2007-11-26 12:58
Joined: 2007-07-18
Forum posts: 15
Re: Video Player..hangs plz help

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..!!

Mon, 2007-11-26 13:08
Joined: 2007-09-20
Forum posts: 114
Re: Video Player..hangs plz help

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

  • Login to reply to this topic.