working on new MP Upnp Renderer process plugin (1 Viewer)

F

fred3650

Guest
Since I've updated to mediaportal 1.9 pre-release, the upnp plugin isn't working any more. Does everybody has the problem?
 

petrov

MP Donator
  • Premium Supporter
  • October 22, 2010
    20
    0
    Brisbane
    Home Country
    Just used the plugin (MP_UPnP_Renderer_for_1.7_pre_release.zip) for the first time on MP v1.9 final.
    I chucked the dll(s) in the plugins folder and the plugin simply appeared under "Process Plugins" in MP - Configuration.
    I only played with audio by pushing music from Synology DS Audio app that instantly recognized the MP as a DLNA target.
    Unfortunately, the playback stops after the first song in the playlist and the time indicator doesn't move with time even though it reacts on sliding.
    These issues do not occur with other DLNA targets such as XBMC or TV so it does indicate issues with the plugin.

    The concept of this plugin is ok (just) however it does need polishing like many other things that surround MP.
    Without support for gapless and cross fading it will unfortunately never be an "elegant" solution.

    If only aMPdroid project wasn't abandoned :-( ... in my view that's everything what MP needs...
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Anyone managed to fix the bugs @petrov mentioned?
    Just started using this with the Sony Throw feature and when it works its great with scraping and complete song info, however the crash after 1 song is obviously making it useless at the moment.


    /edit: testing it some more and when you skip songs it loses "sync" with the sending device (play position / current song) and reports an BASS error but that is because the stream it expects is no longer there, after the buffer is exhausted it notices it that and simply stops working altogether.

    Funny enough it will show the cover art / song info on screen sometimes but remain playing the previous song.
     
    Last edited:

    Marcus Venturi

    MP Donator
  • Premium Supporter
  • March 23, 2012
    614
    745
    56
    Home Country
    Germany Germany
    You can give it a try, but save your replaced files to be able to restore them. Works only with MP 1.11!!!

    Copy the files to the correct directories:

    C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows
    GUIMusic.dll
    Common.GUIPlugins.dll

    C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\process
    MP_UupnpRenderer.dll
    UPnP.dll

    The ZIP contains also fixes for MPDisplay. If you are using MPDisplay, copy the following files in the process directory where the renderer goes:
    MPDisplay.Plugin.dll
    MPDisplay.MessageFramework.dll
    MPDisplay.Common.dll
    The files are only for MPDisplay 0.9.7! They fix display issues with album art and info in the MPDisplay now playing dialog.
     

    Attachments

    • MP_UPnP_DLLs_1.11.zip
      1.6 MB

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Just tried it with Sony Throw (generic UPNP) but when playing MePo doesn't seem to respond or process the music, the debug log output shows it reporting a STOPPED state.
    Using the new dll's with MePo 1.11 but will try your Android app next and see what that reports in the logs :)


    Code:
    Startup
    
    [2015-04-24 18:47:05,543] [Log  ] [MPMain  ] [DEBUG] - PluginManager: Begin starting 'UPNP_RendererPlugin.MP_UpnpRenderer'
    [2015-04-24 18:47:05,544] [Log  ] [MPMain  ] [INFO ] - [MP UPnP Renderer:] Started Plugin with Assembly-Version: 2.2.0.6
    [2015-04-24 18:47:05,546] [Log  ] [MPMain  ] [INFO ] - [MP UPnP Renderer:] settings read from config: Mediaportal
    www.team-mediaportal.com
    MP UPnP Renderer V2
    Mediaportal Upnp Renderer process plugin
    [2015-04-24 18:47:05,546] [Log  ] [MPMain  ] [DEBUG] - [MP UPnP Renderer:] Settings read from configfile!
    [2015-04-24 18:47:05,546] [Log  ] [StartupWorker] [INFO ] - SQLiteClient: Closing database: PictureDatabase.db3
    [2015-04-24 18:47:05,579] [Log  ] [MPMain  ] [DEBUG] - [MP UPnP Renderer:] startServer, ERROR loading Icon2 Bitmap = UPNP_RendererPlugin.Resources.upnp_play_small.png
    [2015-04-24 18:47:05,580] [Log  ] [MPMain  ] [DEBUG] - [MP UPnP Renderer:] startServer, loading Icon Bitmap = UPNP_RendererPlugin.Resources.upnp_play_small.png
    [2015-04-24 18:47:05,580] [Log  ] [MPMain  ] [DEBUG] - [MP UPnP Renderer:] startServer, ERROR loading Icon Bitmap Small Ico= UPNP_RendererPlugin.Resources.MP_Upnp_Renderer.ico
    [2015-04-24 18:47:05,650] [Log  ] [MPMain  ] [DEBUG] - [MP UPnP Renderer:] startServer, Evented_SinkProtocolInfo = http-get:*:audio/flac:*,http-get:*:audio/mpegurl:*,http-get:*:audio/x-mpegurl:*,http-get:*:audio/mp3:*,http-get:*:audio/mpeg:*,http-get:*:audio/x-ms-wma:*,http-get:*:audio/wma:*,http-get:*:audio/mpeg3:*,http-get:*:video/x-ms-wmv:*,http-get:*:video/x-ms-asf:*,http-get:*:video/x-ms-avi:*,http-get:*:video/mpeg:*,http-get:*:video/x-msvideo:*, http-get:*:video/mp4:*,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG_ICO,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM_ICO,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN
    [2015-04-24 18:47:05,652] [Log  ] [MPMain  ] [INFO ] - [MP UPnP Renderer:] Renderer started!
    [2015-04-24 18:47:05,652] [Log  ] [MPMain  ] [DEBUG] - PluginManager: End starting 'UPNP_RendererPlugin.MP_UpnpRenderer' (108,1203 ms running time)
    
    Playback started on phone
    
    [2015-04-24 18:47:05,807] [Log  ] [MPMain  ] [DEBUG] - D3D: OnPaint()
    [2015-04-24 18:47:05,808] [Log  ] [MPMain  ] [INFO ] - D3D: Stopping splash screen thread
    [2015-04-24 18:47:05,841] [Log  ] [MPMain  ] [DEBUG] - D3D FullRender: MP focus
    [2015-04-24 18:47:06,385] [Log  ] [MPMain  ] [INFO ] - [WIFI_REMOTE]  Published Service via Bonjour!
    [2015-04-24 18:47:15,540] [Log  ] [MPMain  ] [DEBUG] - D3D: OnPaint()
    [2015-04-24 18:47:15,586] [Log  ] [MPMain  ] [DEBUG] - D3D: OnPaint()
    [2015-04-24 18:47:15,651] [Log  ] [MPMain  ] [DEBUG] - D3D: OnPaint()
    [2015-04-24 18:48:02,938] [Log  ] [46  ] [DEBUG] - [MP UPnP Renderer:] AVTransport_GetTransportInfo : CurrentTransportState STOPPED / CurrentTransportStatus OK
    [2015-04-24 18:48:08,935] [Log  ] [MPMain  ] [DEBUG] - D3D: Showing mouse cursor
    [2015-04-24 18:48:08,936] [Log  ] [MPMain  ] [DEBUG] - D3D: Cursor ShowMouseCursor state 1
    [2015-04-24 18:48:08,940] [Log  ] [MPMain  ] [DEBUG] - D3D: OnPaint()
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    35
    Groningen
    Home Country
    Netherlands Netherlands
    You can give it a try, but save your replaced files to be able to restore them. Works only with MP 1.11!!!

    Copy the files to the correct directories:

    C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows
    GUIMusic.dll
    Common.GUIPlugins.dll

    C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\process
    MP_UupnpRenderer.dll
    UPnP.dll

    The ZIP contains also fixes for MPDisplay. If you are using MPDisplay, copy the following files in the process directory where the renderer goes:
    MPDisplay.Plugin.dll
    MPDisplay.MessageFramework.dll
    MPDisplay.Common.dll
    The files are only for MPDisplay 0.9.7! They fix display issues with album art and info in the MPDisplay now playing dialog.
    Is this a response to my question in the other thread?? [emoji4]

    Any way, if I wait for MP 1.12, will all necessary changed be included in MP 1.12, and can this plugin be installed as a regular plugin?

    Cheers,
    Marcel
     

    Marcus Venturi

    MP Donator
  • Premium Supporter
  • March 23, 2012
    614
    745
    56
    Home Country
    Germany Germany
    @Rick164 : Sorry postet the version to the wrong thread.

    Should go here:

    https://forum.team-mediaportal.com/...r-and-other-improvements.130488/#post-1134179

    This version does not solve the Sony problems, it's just a try to get gapless playback (and maybe more) working.

    Sorry. :oops:

    To find out what is going wrong with Sony Throw, you could install the UPnP developer tools from here:

    http://opentools.homeip.net/dev-tools-for-upnp

    Then you could start the Media Renderer from the tools. In the File menu select Start AV Renderer.
    Then in the new window go to the Help Menu and select Show Debug Information.

    In the Debug window turn Exceptions/Warning/Informations on.

    Go to your Sony, connect to the renderer and select a song and start it and after a few seconds stop it.

    If everything works, you could save the session over the menu File - Save As into file and post the logging here.

    Then I could check it.
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Thanks, will do that this weekend and post the results :)
    Was already poking around in the code today (the previous version) and it might have something to do with the way it handles concurrent requests but not sure yet.

    /Update
    Debugging went easier then I thought with their tools thanks to your help so send PM with debug log as it contained some phone UUID stuff which I didn't want to post publicly just in case :p
    So what works is the initial connection and when my phone says it's connected it doesn't allow me to resume or play music.

    Oddly enough with the previous version from months ago it did play the first song but nothing after that, with a few tries it would sometimes start a new song but with the wrong play position or song info.

    Tested with others like Kodi / Denon and they work so it might be something they send additionally or deviate from the official spec even.
    Sony Throw is basically nothing more than an easy client app that they integrated in Android and their walkman app to make a one click select an play/connect to option, works quite nicely from headsets to avrs.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom