CVideoPlayerUtility:: OpenDesL Returns -5 error code
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")));
}[/CODE]
Please help me whats wrong and why I am getting that KErrNotSupported(-5) error code
Thanks,
Digish
Re: CVideoPlayerUtility:: OpenDesL Returns -5 error code
Check this Know Issue: [url]http://wiki.forum.nokia.com/index.php/KIS000590_-_Unsupported_methods_in_CVideoRecorderUtility[/url]
Kiran.
Re: CVideoPlayerUtility:: OpenDesL Returns -5 error code
Thanks kiran,
Thanks for the reply.
But The problem I am receiving is for CVideoPlayerUtility not CVideoRecorderUtility for which you have linked me.
Thanks as I was planning to check Recording now. The link's information is helpful because I am planning to look it next.
There is no workaround for URL/Buffer case in KB. Can you provide some?
Also in KB its written as its for 3rd ED. But i am testing on emulator for s60 3rd Ed FP1 devices.
Thanks,
Digish