×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    error KErrNotFound in MvpuoPrepareComplete

    Does anyone know what may cause KErrNotFound error in MvpuoPrepareComplete? I get no error in MvpuoOpenComplete.

  2. #2
    Registered User
    Join Date
    Jul 2005
    Location
    Bengaluru, India
    Posts
    747

    Re: error KErrNotFound in MvpuoPrepareComplete

    Quote Originally Posted by drizztdo
    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?

    By the way the SDK document says:

    KErrNotFound: the video sample cannot be found;

  3. #3
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: error KErrNotFound in MvpuoPrepareComplete

    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

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Re: error KErrNotFound in MvpuoPrepareComplete

    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?

  5. #5
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: error KErrNotFound in MvpuoPrepareComplete

    hi,
    could you please post a snippet of your code..
    Bst Regrdz
    Priju

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Re: error KErrNotFound in MvpuoPrepareComplete

    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

  7. #7
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    51

    Re: error KErrNotFound in MvpuoPrepareComplete

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×