Annoying CI OSD asking continuously for Rights Check (3 Viewers)

Ambass

Retired Team Member
  • Premium Supporter
  • December 24, 2007
    555
    129
    Home Country
    France France
    Re: AW: Annoying CI OSD asking continuously for Rights Check

    2010-02-05 18:29:14.943512 [Debug][MPMain(1)]: TvPlugin: CiMenuHandler attached to new card 3
    2010-02-05 18:29:17.209137 [Debug][(11)]: Callback from tvserver Module Aston
    2010-02-05 18:29:17.318512 [Debug][MPMain(1)]: WindowManager: route TvPlugin.TvFullScreen:602->MediaPortal.Dialogs.GUIDialogCIMenu:2018
    2010-02-05 18:29:17.318512 [Debug][MPMain(1)]: DialogWindow: MediaPortal.Dialogs.GUIDialogCIMenu init

    .... "OK" from remote

    2010-02-05 18:30:09.834137 [Debug][MPMain(1)]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogCIMenu:2018->TvPlugin.TvFullScreen:602
    2010-02-05 18:30:10.631012 [Debug][(11)]: Callback from tvserver Module Aston .. Wait menu ....
    2010-02-05 18:30:10.646637 [Debug][MPMain(1)]: WindowManager: route TvPlugin.TvFullScreen:602->MediaPortal.Dialogs.GUIDialogCIMenu:2018
    2010-02-05 18:30:10.646637 [Debug][MPMain(1)]: DialogWindow: MediaPortal.Dialogs.GUIDialogCIMenu init
    2010-02-05 18:30:11.224762 [Debug][(11)]: Callback from tvserver Module Aston/Consultation des droits

    I suppose Menu 2 "Module Aston/Consultation des droits " should automatically replace current Menu 1 "Module Aston", but nothing happens..... ( Anyway it should be like that ;))
     

    wouter1971

    MP Donator
  • Premium Supporter
  • November 19, 2008
    911
    143
    Purmerend, Holland
    Home Country
    Netherlands Netherlands
    Re: AW: Annoying CI OSD asking continuously for Rights Check

    I can confirm this behaviour. Have svn+dll running in prod. Nice for WAF this time :) Haven't seen any messages about encoded audo/video lately :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Re: AW: Annoying CI OSD asking continuously for Rights Check

    2010-02-05 18:29:14.943512 [Debug][MPMain(1)]: TvPlugin: CiMenuHandler attached to new card 3
    2010-02-05 18:29:17.209137 [Debug][(11)]: Callback from tvserver Module Aston
    2010-02-05 18:29:17.318512 [Debug][MPMain(1)]: WindowManager: route TvPlugin.TvFullScreen:602->MediaPortal.Dialogs.GUIDialogCIMenu:2018
    2010-02-05 18:29:17.318512 [Debug][MPMain(1)]: DialogWindow: MediaPortal.Dialogs.GUIDialogCIMenu init

    .... "OK" from remote

    2010-02-05 18:30:09.834137 [Debug][MPMain(1)]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogCIMenu:2018->TvPlugin.TvFullScreen:602
    2010-02-05 18:30:10.631012 [Debug][(11)]: Callback from tvserver Module Aston .. Wait menu ....
    2010-02-05 18:30:10.646637 [Debug][MPMain(1)]: WindowManager: route TvPlugin.TvFullScreen:602->MediaPortal.Dialogs.GUIDialogCIMenu:2018
    2010-02-05 18:30:10.646637 [Debug][MPMain(1)]: DialogWindow: MediaPortal.Dialogs.GUIDialogCIMenu init
    2010-02-05 18:30:11.224762 [Debug][(11)]: Callback from tvserver Module Aston/Consultation des droits

    I suppose Menu 2 "Module Aston/Consultation des droits " should automatically replace current Menu 1 "Module Aston", but nothing happens..... ( Anyway it should be like that ;))

    I tested yesterday to find a way to replace an open modal dialog. to make it short, I hadn`t success :(

    problem is, that the code is not executed again until the modal dialog is closed. but at least with the latest (not svn) change the 2nd menu should not be lost and is (should) be displayed...
     

    Ambass

    Retired Team Member
  • Premium Supporter
  • December 24, 2007
    555
    129
    Home Country
    France France
    Re: AW: Re: AW: Annoying CI OSD asking continuously for Rights Check

    morpheus_xx

    I've tried something that works here, but as I'm not really familiar with C#, may be it's not correct.....

    I've assumed, when a new CI menu is coming, the previous one ( if any ) should be trashed and no answer should return to the CAM.

    I attach the TVplugin.dll and TVhome.cs ( for the same SVN 24964 ).

    Let me know .
     

    Attachments

    • TvPlugin.rar
      142.6 KB
    • TVHome.rar
      24.1 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Annoying CI OSD asking continuously for Rights Check

    works great, :D a lot

    commited to svn 24994
     

    Ambass

    Retired Team Member
  • Premium Supporter
  • December 24, 2007
    555
    129
    Home Country
    France France
    Re: AW: Annoying CI OSD asking continuously for Rights Check

    Two small things, we should always use the latest menu arrived to avoid blocking on 1st one, so list is quite useless.

    We also should wait dialog is really active ( when CiMenuActive is true ) before issuing Reset()....

    I think the attached patch could do this. ( I'm just not so sure of dlgCiMenu.IsVisible behaviour.. )
     

    Attachments

    • tvhome.patch
      1.2 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Annoying CI OSD asking continuously for Rights Check

    my try before you posted your modification was to:
    - catch the ci menu object
    - fill the ci dialog / notify dialog
    - set ci menu object = null
    - do modal.

    this way I need only the single variable without list. the thing I missed was the Reset() part.
     

    Users who are viewing this thread

    Top Bottom