×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    Post MMF controller framework hangs

    Hi All,

    I have written a MMF controller plugin and I am trying to load it by some application. When I invoke RMMFController open function with uid of controller plugin, My controller plugin "NewL" function is invoked, but control is not returned to application.

    Here is my code
    ++++++++++++++++++++
    Application:

    {
    ...
    RMMFController AudContrl;
    TMMFPrioritySettings pri;
    pri.iPriority = 100;
    pri.iPref = EMdaPriorityPreferenceTimeAndQuality ;
    pri.iState=EMMFStateIdle;

    TUid id = TUid::Uid(0x101F1235);

    TInt ret = AudContrl.Open(id,pri); << Hangs here
    ....
    }

    ++++++++++++++++++

    Controller Plugin code

    const TImplementationProxy ImplementationTable[] =
    {
    {{0x101F1235}, CcontrollerPlugin::NewL}
    };



    // Standard ECOM factory code
    EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    {
    aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
    return ImplementationTable;
    }

    // Member Functions

    CcontrollerPlugin* CcontrollerPlugin::NewLC()
    {
    CcontrollerPlugin* self = new (ELeave) CcontrollerPlugin;
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }


    CcontrollerPlugin* CcontrollerPlugin::NewL()
    {
    CcontrollerPlugin* self = CcontrollerPlugin::NewLC();
    CleanupStack::Pop(self);
    return self;
    }


    CcontrollerPlugin::CcontrollerPlugin()
    // note, CBase initialises all member variables to zero
    {
    }


    void CcontrollerPlugin::ConstructL()
    {
    // second phase constructor, anything that may leave must be constructed here

    TRAPD(createError, console = Console::NewL(KTextConsoleTitle, TSize(KConsFullScreen,KConsFullScreen)));
    if (createError)
    return;

    console->Write(_L("<-----Controller Plugin started---->\n"));
    return;
    }

    +++++++++++++++++++++++++++++++++

    I am able to see console print command written in controller plugin.
    I am trying this code in SDK.

    Thanks,
    Mahantesh
    Last edited by mahantesh19; 2008-09-22 at 06:06.

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: MMF controller framework hangs

    Have you tried stepping through this code in the debugger to see what happens?

    A controller plug-in isn't supposed to have any kind of UI (not even a console) although I assume you are only trying to use this for debugging. This might be causing the problem. What happens if you remove the console code and write debug output to a file instead?

    Sorcery

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    Re: MMF controller framework hangs

    Hi Sorcery,

    Thanks for your reply. Problem was in RSS file. After making suitable modification in RSS file, now it is working.

    Thanks,
    Mahantesh

Similar Threads

  1. MMF Controller plugin
    By cherem in forum Symbian Media (Closed)
    Replies: 24
    Last Post: 2007-12-06, 00:36
  2. MMF Video Controller
    By shadow-2005 in forum Symbian Media (Closed)
    Replies: 19
    Last Post: 2007-02-14, 05:34
  3. MMF Controller Plugin not supported on target
    By Sorcery-ltd in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-12-12, 14:56
  4. MMF controller plugin and Mpeg-4 codec??
    By mayur_24 in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2006-10-18, 06:31
  5. Question about the S60 MMF framework
    By avoluteman in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-10-12, 03:28

Posting Permissions

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