Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User cxl_symbian's Avatar
    Join Date
    Dec 2008
    Posts
    20
    I hava writed a simple programme to play a video ,but when i call the method to play it,the emulator exit. It has trouble for one day. who can help me? the next is my codes:

    the methods in the videoEngine:

    void CVideoEngine::InitControlerL(RWsSession& aWs,CWsScreenDevice& aScreenDevice, RWindowBase &aWindow,
    const TRect &aScreenRect, const TRect &aClipRect, const TDesC& aFileName)

    {
    iVideoPlayer=CVideoPlayerUtility::NewL(*this, EMdaPriorityNormal,
    EMdaPriorityPreferenceNone, aWs, aScreenDevice, aWindow,
    aScreenRect, aClipRect);

    iVideoPlayer->OpenFileL(aFileName);

    }

    The method in the AppUi class to call the above method:

    void CVideoClipAppUi:oInitControllerL(const TDesC& aFileName)
    {
    iEngine->InitControlerL(iAppView->ClientWsSession(),
    iAppView->ScreenDevice(), iAppView->ClientWindow(),
    iAppView->VideoRect(), iAppView->VideoRect(), aFileName);

    }

    The command to play the video in the handlcommandL of appui:

    case EPlayVideo:
    {

    DoInitControllerL(_L("E:\\video\\video.3gp"));

    }
    break;

  2. #2
    Nokia Developer Champion stenlik's Avatar
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037
    Hi,

    I assume that the reason why the emulator exits is that your application crashes.

    1/ Did you tried to debug it? If no, do that to know on which function the code will stop.

    2/ I guess that one of the methods will leave with KErrNotSupported (-5) error, because as I remember playing/recording video is not supported on emulator.

    Regards,
    STeN

  3. #3
    Registered User cxl_symbian's Avatar
    Join Date
    Dec 2008
    Posts
    20
    Quote Originally Posted by stenlik View Post
    Hi,

    I assume that the reason why the emulator exits is that your application crashes.

    1/ Did you tried to debug it? If no, do that to know on which function the code will stop.

    2/ I guess that one of the methods will leave with KErrNotSupported (-5) error, because as I remember playing/recording video is not supported on emulator.

    Regards,
    STeN
    Thanks for your reply!
    i know the the function which to cause the emulator to exit. but i don't know why!
    maybe what you say is right! i should try it on my phone.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    The shutdown may also happen because you execute your application directly. If you start the emulator instead (http://wiki.forum.nokia.com/index.ph...arbide.c%2B%2B), it will not exit, just your application will panic (enable the extended messages: http://wiki.forum.nokia.com/index.ph...ded_panic_code). Then you may get some negative numbers, as Stenlik mentions (http://wiki.forum.nokia.com/index.php/Error_codes).

  5. #5
    Registered User cxl_symbian's Avatar
    Join Date
    Dec 2008
    Posts
    20
    I hava soloved the problem now! All of the problem is caused by one line codes missing.
    i hava not instanced the CvideoEngine class. it's ashamed.

Similar Threads

  1. Play video with a active call in progress
    By mawe in forum Symbian Media (Closed)
    Replies: 14
    Last Post: 2008-11-20, 14:23
  2. Video Call
    By ta0001at in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-09-22, 08:28
  3. Problem to play video on incoming call
    By rdx83 in forum Symbian C++
    Replies: 0
    Last Post: 2006-08-31, 09:38
  4. problems displaying video
    By gorsken in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-06-21, 17:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved