Does anyone know what may cause KErrNotFound error in MvpuoPrepareComplete? I get no error in MvpuoOpenComplete.
Does anyone know what may cause KErrNotFound error in MvpuoPrepareComplete? I get no error in MvpuoOpenComplete.
If you didn't get any error then why are you bothering?Originally Posted by drizztdo
By the way the SDK document says:
KErrNotFound: the video sample cannot be found;
Hi,
Hope you are calling the Prepare() once MvpuoOpenComplete() completes with KErrNone.
i guess the clip to be read is not available in the path mentioned..but you get MvpuoOpenComplete() with no error isnt..thats what confuses me..
there is a video example available in forum nokia.could you have a look on that.
Best Regardz
Priju
Thank you guys for your replies
I get no error in open MvpuoOpenComplete
, call prepare() and then get KErrNotFound in MvpuoPrepareComplete.
I have checked the filepath. It seems correct. If there is no file or it is not a valid video file I get an error in MvpuoOpenComplete.
Any other ideas?
hi,
could you please post a snippet of your code..
Bst Regrdz
Priju
I have solved this problem using the example you suggested me to look at. There was somthing wrong the way I had specified the path. Strange thing that it was ok for open and failed for prepare. Thank you for your help.
Best regards
Hi
I downloaded VREX example. I am working on symbian 8.0a now. Using this application i am able to successfully play video from a file but when i load contents of file in a buffer, and use OpenDesL() nothing is played. No error comes in opencomplete but error -12008 (KErrMMInvalidProtocol ) comes in prepareComplete.
I am not able to identify the reason. Please suggest where i am wrong ????? Its very very very URGENT !!!!!!!!
Following is the significant part of my code :-
void CVideoPlayerAdapter::InitControllerL(
MPlayerUIControllerListener* aControllerListener,
RWsSession& aWs,
CWsScreenDevice& aScreenDevice,
RWindowBase& aWindow,
TRect& aScreenRect,
TRect& aClipRect)
{
iPlayer = CVideoPlayerUtility::NewL(*this, EMdaPriorityNormal,
EMdaPriorityPreferenceNone, aWs, aScreenDevice,aWindow,aScreenRect,
aClipRect);
LoadFileIntoBuffer();
TRAPD(unsupported, iPlayer->OpenDesL( iStreamBuffer->Des() ));
}
//*****************************************************
void CVideoPlayerAdapter::LoadFileIntoBuffer()
{
RFileReadStream videofile;
RFs iFs;
TFileName fileName;
fileName.Copy(iMediaFile->Des());
CEikonEnv::InfoWinL (iMediaFile->Des() , _L("")); // ruchi
TInt err1 = iFs.Connect ();
TInt err = videofile.Open(iFs, fileName, EFileRead|EFileStream);
if (err==KErrNone)
{
TUint idx=0;
while (idx < iFrameCount)
{
TRAPD(fstatus, videofile.ReadL(GetFrame(idx), iFrameSize));
if (fstatus!=KErrNone)
break;
idx++;
}
iBufferOK = ETrue;
}
else
{
iBufferOK = EFalse;
}
videofile.Close();
} // end of LoadFileIntoBuffer
//*****************************************************
TPtr8& CVideoPlayerAdapter::GetFrame(TUint aFrameIdx)
{
iFramePtr.Set((TUint8*)(iStreamBuffer->Ptr() + (aFrameIdx * iFrameSize)),
iFrameSize,
iFrameSize);
}
Regards
Ruchi
ruchi.gupta@bhartitelesoft.com