xpTunes for MediaPortal 1.2.0 and higher (1 Viewer)

Pog

Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    Very nice update.

    I was not expecting so much to have been added. Great stuff.
     

    Pog

    Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    When I use pause/play or next/previous buttons in the sidebar gadget MP will crash.

    The way I use MP for music is to have MP play and control WinAmp as an external player. If I use the internal player then these buttons work as expected. (I need the external player as it handles many more filetypes)

    Here is the error.log after pressing pause and then play through the gadget:

    Code:
    2011-11-23 18:07:34.656328 [ERROR][MPMain(1)]: Exception   :System.NullReferenceException: Object reference not set to an instance of an object.
       at MediaPortal.Player.g_Player.Process()
       at MediaPortalApp.OnProcess()
       at MediaPortal.D3DApp.Application_Idle(Object sender, EventArgs e)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at MediaPortalApp.Main(String[] args)
    2011-11-23 18:07:34.656328 [ERROR][MPMain(1)]: Exception   :Object reference not set to an instance of an object.
    2011-11-23 18:07:34.657328 [ERROR][MPMain(1)]:   site      :Void Process()
    2011-11-23 18:07:34.657328 [ERROR][MPMain(1)]:   source    :Core
    2011-11-23 18:07:34.658328 [ERROR][MPMain(1)]:   stacktrace:   at MediaPortal.Player.g_Player.Process()
       at MediaPortalApp.OnProcess()
       at MediaPortal.D3DApp.Application_Idle(Object sender, EventArgs e)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at MediaPortalApp.Main(String[] args)
    2011-11-23 18:07:34.658328 [ERROR][MPMain(1)]: MediaPortal stopped due to an exception Object reference not set to an instance of an object. Core    at MediaPortal.Player.g_Player.Process()
       at MediaPortalApp.OnProcess()
       at MediaPortal.D3DApp.Application_Idle(Object sender, EventArgs e)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at MediaPortalApp.Main(String[] args)

    This may be a problem with the way MP deals with external players through the api. Perhaps just sending the play/pause/fwd/rew KEYS instead would be a workaround.
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    AW: xpTunes for MediaPortal 1.2.0 and higher

    Hi Messiahs!

    First a big :D for this great plugin! Maybe i am doing something wrong, but unfortunately it isn't working here. Xadget message is "not connectetd"! Connection with browser @ "http://192.168.178.20:8081/start/index.html" is working fine!
    Could you please help me, to solve the issue?

    Best regards
    Helios
     

    Messiahs

    Portal Pro
    December 11, 2008
    222
    106
    Home Country
    Germany Germany
    Helios61
    Thx.
    Please check the ip & port in the xadget settings.
    IP should be something like "192.168.178.20" (without "http://").
    Your are using Win7 or Vista ?

    Pog
    yes, seems like a bug in external players api.
    Not sure, if i can fix this... i will take a look.
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    AW: xpTunes for MediaPortal 1.2.0 and higher

    After a rebbot, gadget was working for a short time and i think it is still working, although it displyays "not connected"! Could the reason for this issue be, that the musicdatabase is very lareg (~100mb) or that the music is stored on network shares?
     

    Messiahs

    Portal Pro
    December 11, 2008
    222
    106
    Home Country
    Germany Germany
    normally not (my files are stored on a NAS too, but 100mb are really much)... please take a look in the error.log.
    Perhaps one database query (genre, artist ?) is too slow.
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    AW: Re: xpTunes for MediaPortal 1.2.0 and higher

    normally not (my files are stored on a NAS too, but 100mb are really much)... please take a look in the error.log.
    Perhaps one database query (genre, artist ?) is too slow.

    No log entries unfortunately! I have attached a screenshot of my gadget settings! With these settings connection is working fine with browser (Chrome), but gatget isn't working ("not connected")
     

    Attachments

    • Bild_004.jpg
      Bild_004.jpg
      13 KB

    Users who are viewing this thread

    Top Bottom