Hello,
When I try to play the video using buffer, i am getting -5 error code in MvpuoPrepareComplete.
I am able to open the same file using OpenFileL() method and able to play that 3gp file. In that scenario I am not getting any such error.
Here is the code snippet for OpenDesL() method which is not working:
Code:RFile lFile; RFs lFileSession; TBuf<128> lFilename(KFileName); lErrCode = lFileSession.Connect(); LOG(_L("Filesession open err = %d"),lErrCode); lErrCode = lFile.Open(lFileSession,lFilename,EFileRead); LOG(_L("File open err = %d"),lErrCode); TInt lFileSize(0); lFile.Size(lFileSize); LOG(_L("File Size = %d"),lFileSize); if(lFileSize < 20000) { TBuf8<20000> iVideoBuffer; lFile.Read(iVideoBuffer); iPlayer->OpenDesL(iVideoBuffer); TRAPD(unsupported, iPlayer->OpenDesL(iVideoBuffer)); LOG(_L("Opening buffer err = %d: %S"),unsupported, &(iMediaFile->Des())); lErrCode = unsupported; } else { LOG(_L("File too large to open"))); }
Please help me whats wrong and why I am getting that KErrNotSupported(-5) error code
Thanks,
Digish




