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

Dragy

Portal Pro
April 27, 2009
778
333
31
Home Country
Netherlands Netherlands
I have a feature request, which will hopefully solve some issues when playing media:

I want to be able to only start media with UPNP when there is nothing already playing in MediaPortal (non UPNP material). I had some issues with this in the past :).
Good idea! I will check, if I can add an option for it in next version.

Can you reproduce the error in debug-mode and send me a logfile, please?
New Version 2.2.0.3 with new Setting in configuration dialog (in common) released:
if a media is already playing within mediaportal, the renderer don't starts playing a track send over upnp
(requirement from Dragy)

Please try new version (see 1. post) and give me feedback...
Great! :D

I actually can't remember what was wrong and I can't reproduce it now.
I will test your new version though!
 

Dragy

Portal Pro
April 27, 2009
778
333
31
Home Country
Netherlands Netherlands
The new feature seems to work fine :) I found another thing that is not quite right.

When at the Now Playing screen and playing music, after pressing stop, you go back to the previous screen.
When at the Now Playing screen and playing UPNP music, after pressing stop, you stay in the Now Playing screen.

I found another thing:
When playing local music and I start BubbleUPNP with MP as render, BubbleUPNP shows the song progress for the local song. Shouldn't it be showing nothing?
And also, when still having BubbleUPNP active, and you go to play another local track, the song info in MP is being changed to the song you have opened in BubbleUPNP. To clarify: I'm NOT playing music with BubbleUPNP at this time.

And somehow I'm also able to start the UPNP music then.. So somehow MP/your plugin thinks that these local mosic was UPNP music.
 
Last edited:

pock

MP Donator
  • Premium Supporter
  • December 7, 2008
    63
    0
    Home Country
    Germany Germany
    Hi, Upnp Renderer is for me only available with deactivatet firewall!? Wich Ports must be opened?

    Greetz pock
     

    hierl_w

    Portal Member
    February 15, 2010
    30
    34
    Home Country
    Germany Germany
    Hi, Upnp Renderer is for me only available with deactivatet firewall!? Wich Ports must be opened?

    Greetz pock
    Hello,

    I allowed the process mediaportal to access all ports. I was ask in win7, as I used 1. time the plugin by win firewall.
    With upnp, I think, you don't really know, which ports you will access for mediaservers and so on.
    I think, that is one point, why upnp is not really save. But I'm no expert in this.

    Have you tried with other upnp renderers like wmp ore media monkey?

    bye.
     

    Varun Reddy

    New Member
    June 19, 2012
    2
    0
    42
    Hyderabad, Andhra Pradesh
    Home Country
    India India
    Hi I have installed the plugin on MP 1.2.3 but I dont see MP as a upnp renderer on my network.

    Initially I ddnt see it as a UPNP server either and I had to play around with settings on Windows till that worked.

    Is there something that I am missing or are there any details that I can send you so that you can see what the problem might be?

    Thanks

    Varun
     

    Wiesel

    Portal Member
    April 23, 2008
    34
    0
    Home Country
    Austria Austria
    Hi, Upnp Renderer is for me only available with deactivatet firewall!? Wich Ports must be opened?

    Greetz pock
    Hello,

    I allowed the process mediaportal to access all ports. I was ask in win7, as I used 1. time the plugin by win firewall.
    With upnp, I think, you don't really know, which ports you will access for mediaservers and so on.
    I think, that is one point, why upnp is not really save. But I'm no expert in this.

    Have you tried with other upnp renderers like wmp ore media monkey?

    bye.

    You're developing a UPNP plugin and don't know the basic ports that it uses? Very strange ;) But don't get me wrong, I'm happy that this plugin exists, thank you very much!

    I've had the same problem like some of you guys as it seems, MediaPortal.exe is given full network access by the Windows firewall but the renderer still can't be found on the network. The solution is to add an incoming firewall rule that allows port 1900 UDP (it's needed for UPNP device discovery on the network).
     

    Kaoh

    Portal Pro
    September 11, 2006
    244
    28
    Home Country
    Netherlands Netherlands
    Hi, I wanted to try this rederer plugin. They idea is great. Finally some good control from a mobile device.
    I am using a Windows Phone Nokia Lumnia with Play to to send the commands.
    I tested with windows media player and it works fine. It can send music and pictures without any trouble.
    This plugin does start music but I am unabe to make it show a picture.
    Also the music ocntrol are only working partially. I have to stop the music using media portal first for it to start a new song.

    The picture thing is the greatest problem I think, here are some entries from the log file:
    2012-06-30 09:44:42.374939 [Debug][(10)]: [MP Upnp Renderer:] Reading XML TrackMetaData : <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"><item id="4049870675" parentID="ROOT" restricted="1"><upnp:class>object.item.imageItem.photo</upnp:class><dc:title>m11-01-Zittend spelen met Barba pappa-05.jpg</dc:title><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675</res><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675,ProfileID=1</res></item></DIDL-Lite>
    2012-06-30 09:44:42.379939 [Info.][(10)]: [MP Upnp Renderer:] Metadata read successful : Title: m11-01-Zittend spelen met Barba pappa-05.jpg, Interpret: -, Album: -, AlbumInterpret: -, Genre: -, Date: -, bitrate: 0, Rating 0
    2012-06-30 09:44:42.903969 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_GetMediaInfo : Mediaduration = 00:00:00
    2012-06-30 09:44:42.905969 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_GetMediaInfo : CurrentURIMetaData = <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"><item id="4049870675" parentID="ROOT" restricted="1"><upnp:class>object.item.imageItem.photo</upnp:class><dc:title>m11-01-Zittend spelen met Barba pappa-05.jpg</dc:title><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675</res><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675,ProfileID=1</res></item></DIDL-Lite>
    2012-06-30 09:44:42.922970 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_GetTransportInfo : CurrentTransportState STOPPED / CurrentTransportStatus OK
    2012-06-30 09:44:42.938971 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_Play, InstanceID: 0, Speed: _1
    2012-06-30 09:44:42.944971 [Debug][MPMain(1)]: [MP Upnp Renderer:] Start playing track: http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675, trackType: Recording
    2012-06-30 09:44:42.948971 [Debug][MPMain(1)]: [MP Upnp Renderer:] StateChanged by ?: send player status changes: TRANSITIONING
    2012-06-30 09:44:42.950971 [Info.][MPMain(1)]: [MP Upnp Renderer:] StateChanged : TRANSITIONING, track: m11-01-Zittend spelen met Barba pappa-05.jpg
    2012-06-30 09:44:43.021976 [Debug][MPMain(1)]: [MP Upnp Renderer:] start DownloadAndCache: http://192.168.2.106:5120/MediaSharing/media.jpeg
    2012-06-30 09:44:43.049977 [Debug][MPMain(1)]: [MP Upnp Renderer:] DownloadAndCache: Download file 'http://192.168.2.106:5120/MediaSharing/media.jpeg' to 'C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Pictures\m11-01-Zittend spelen met Barba pappa-05.jpgL.jpg'
    2012-06-30 09:44:43.120981 [Info.][MPMain(1)]: [MP Upnp Renderer:] DownloadAndCache: The remote server returned an error: (400) Bad Request.
    2012-06-30 09:44:43.123981 [Debug][MPMain(1)]: [MP Upnp Renderer:] StateChanged by ?: send player status changes: STOPPED
    2012-06-30 09:44:43.125981 [Info.][MPMain(1)]: [MP Upnp Renderer:] StateChanged : STOPPED, track: m11-01-Zittend spelen met Barba pappa-05.jpg
    The specified download location does not contain the image either. So the file really just never gets downloaded.
     

    hierl_w

    Portal Member
    February 15, 2010
    30
    34
    Home Country
    Germany Germany
    Hi, I wanted to try this rederer plugin. They idea is great. Finally some good control from a mobile device.
    I am using a Windows Phone Nokia Lumnia with Play to to send the commands.
    I tested with windows media player and it works fine. It can send music and pictures without any trouble.
    This plugin does start music but I am unabe to make it show a picture.
    Also the music ocntrol are only working partially. I have to stop the music using media portal first for it to start a new song.

    The picture thing is the greatest problem I think, here are some entries from the log file:
    2012-06-30 09:44:42.374939 [Debug][(10)]: [MP Upnp Renderer:] Reading XML TrackMetaData : <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"><item id="4049870675" parentID="ROOT" restricted="1"><upnp:class>object.item.imageItem.photo</upnp:class><dc:title>m11-01-Zittend spelen met Barba pappa-05.jpg</dc:title><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675</res><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675,ProfileID=1</res></item></DIDL-Lite>
    2012-06-30 09:44:42.379939 [Info.][(10)]: [MP Upnp Renderer:] Metadata read successful : Title: m11-01-Zittend spelen met Barba pappa-05.jpg, Interpret: -, Album: -, AlbumInterpret: -, Genre: -, Date: -, bitrate: 0, Rating 0
    2012-06-30 09:44:42.903969 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_GetMediaInfo : Mediaduration = 00:00:00
    2012-06-30 09:44:42.905969 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_GetMediaInfo : CurrentURIMetaData = <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"><item id="4049870675" parentID="ROOT" restricted="1"><upnp:class>object.item.imageItem.photo</upnp:class><dc:title>m11-01-Zittend spelen met Barba pappa-05.jpg</dc:title><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675</res><res size="218077" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00900000000000000000000000000000" resolution="1600x1071" >http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675,ProfileID=1</res></item></DIDL-Lite>
    2012-06-30 09:44:42.922970 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_GetTransportInfo : CurrentTransportState STOPPED / CurrentTransportStatus OK
    2012-06-30 09:44:42.938971 [Debug][(10)]: [MP Upnp Renderer:] AVTransport_Play, InstanceID: 0, Speed: _1
    2012-06-30 09:44:42.944971 [Debug][MPMain(1)]: [MP Upnp Renderer:] Start playing track: http://192.168.2.106:5120/MediaSharing/media.jpeg?ID=4049870675, trackType: Recording
    2012-06-30 09:44:42.948971 [Debug][MPMain(1)]: [MP Upnp Renderer:] StateChanged by ?: send player status changes: TRANSITIONING
    2012-06-30 09:44:42.950971 [Info.][MPMain(1)]: [MP Upnp Renderer:] StateChanged : TRANSITIONING, track: m11-01-Zittend spelen met Barba pappa-05.jpg
    2012-06-30 09:44:43.021976 [Debug][MPMain(1)]: [MP Upnp Renderer:] start DownloadAndCache: http://192.168.2.106:5120/MediaSharing/media.jpeg
    2012-06-30 09:44:43.049977 [Debug][MPMain(1)]: [MP Upnp Renderer:] DownloadAndCache: Download file 'http://192.168.2.106:5120/MediaSharing/media.jpeg' to 'C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Pictures\m11-01-Zittend spelen met Barba pappa-05.jpgL.jpg'
    2012-06-30 09:44:43.120981 [Info.][MPMain(1)]: [MP Upnp Renderer:] DownloadAndCache: The remote server returned an error: (400) Bad Request.
    2012-06-30 09:44:43.123981 [Debug][MPMain(1)]: [MP Upnp Renderer:] StateChanged by ?: send player status changes: STOPPED
    2012-06-30 09:44:43.125981 [Info.][MPMain(1)]: [MP Upnp Renderer:] StateChanged : STOPPED, track: m11-01-Zittend spelen met Barba pappa-05.jpg
    The specified download location does not contain the image either. So the file really just never gets downloaded.


    Hello,

    I found the problem. It is because of the "?" in the image url. I have cut the URL at ?, because some controllers send the ?scale url of the small image.
    Now I solved the problem, by only cutting the url at ?, if there is ?scale included.

    I will release new version next days...

    bye.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom