UPnP / DLNA Media Server for MediaPortal 2 (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Okay, the CONTENT_DIRECTORY_SERVICE_ID & CONNECTION_MANAGER_SERVICE_ID are definitely wrong!
    If I try it with my two UPnP apps on my mobile it doesn't find the server (tried it several times).
    If I change it to: ConnectionManager && ConnectionManager it works!
    The FritzBox uses: "urn:upnp-org:serviceId:ConnectionManager" && "urn:..." and this leads to the fact that it also works with MP2. So I would go with the second way because the FritzBox developer knows it probably the best and it is working :)

    I already pushed the changes, hope this is fine for you ;) at least my mobile and VLC now detect the UPnP server :)

    I will try it more deeply this evening, as you see I couldn't wait until evening :D
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    another note: the shares don't get listed yet, but hadn't a look on it why yet.
    I have pictures and series imported, maybe I will also import some music file later on :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    another note: the shares don't get listed yet, but hadn't a look on it why yet.
    I have pictures and series imported, maybe I will also import some music file later on :)
    Thanks, this was caused by my change yesterday. I moved the DlnaAspect back to optional MIAs.

    I also fixed ffmpeg parsing during import and some NREs. I can now playback MP3 audio inside WMP. VLC doesn't find MP2-Server. BubbleUPnP finds MP2, but cannot browse audio yet.

    I'll rework the ffmpeg execution as next (using the newer version from VideoThumbnailer)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    VLC doesn't find MP2-Server. BubbleUPnP finds MP2, but cannot browse audio yet.
    The problem with VLC is that it requests the whole folder structure and not only the structure which is needed to view the root dir. So if your media lib is big this will take a lot of time :D

    Also it looks like our upnp lib doesn't probably handle the client broadcast which initiates the "hi I'm here" message from the server". All other UPnP devices are found much much faster which leads to the fact that the server isn't found by our Tv.

    Shares view works here, pictures are getting listed but don't show up :)
    I have to get a log viewer to check the log while doing the requests :D
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    yeah makes sense that the shares stuff doesn't work, there is no <res [...]>[..]</res> :D
    XML:
    <item id="S:7d8e652e-fda6-4895-81da-952c0dcd14f6" parentID="S:b1130e84-7d5f-4fe8-94c2-277e1d2d83b6" restricted="false">
        <dc:title>Chrysanthemum</dc:title>
        <upnp:class>object.item.imageItem</upnp:class>
    </item>
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    @morpheus_xx
    Do you also get this exception in the logs?

    [2014-07-22 20:01:01,600] [40049 ] [28 ] [ERROR] -
    System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[System.Object]' to type 'System.Collections.Generic.IEnumerable`1[System.String]'.
    at MediaPortal.Common.MediaManagement.MediaItemAspect.GetCollectionAttribute[T](AttributeSpecification attributeSpecification) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Source\Core\MediaPortal.Common\MediaManagement\MediaItemAspect.cs:line 174
    at MediaPortal.Extensions.MediaServer.Objects.MediaLibrary.MediaLibraryVideoItem..ctor(String baseKey, MediaItem item) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryVideoItem.cs:line 43
    at MediaPortal.Extensions.MediaServer.Objects.MediaLibrary.MediaLibraryHelper.InstansiateMediaLibraryObject(MediaItem item, String baseKey, BasicContainer parent, String title) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryHelper.cs:line 94
    at MediaPortal.Extensions.MediaServer.Objects.MediaLibrary.MediaLibraryHelper.InstansiateMediaLibraryObject(MediaItem item, String baseKey, BasicContainer parent) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryHelper.cs:line 73
    at MediaPortal.Extensions.MediaServer.Objects.MediaLibrary.MediaLibraryContainer.Search(String filter, String sortCriteria) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MediaServer\Objects\MediaLibrary\MediaLibraryContainer.cs:line 83
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    MP3 including covers work already very well inside WMP! @McGoober did a good job there!

    Also it looks like our upnp lib doesn't probably handle the client broadcast which initiates the "hi I'm here" message from the server". All other UPnP devices are found much much faster which leads to the fact that the server isn't found by our Tv.
    Yes, there is probably room for improvements inside the UPnP library. Not sure what the cause is...
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    MP3 including covers work already very well inside WMP! @McGoober did a good job there!
    yep covers are working well :)
    But the actual resource not:
    <res bitrate="0" bitsPerSample="0" colorDepth="0" nrAudioChannels="0" protocolInfo="null" sampleFrequency="0" size="0">null</res>
    :D This is because of
    Code:
    var dlnaProtocolInfo = DlnaProtocolInfoFactory.GetProfileInfo(Item);
          if (dlnaProtocolInfo == null)
            return;
          ProtocolInfo = dlnaProtocolInfo.ToString();
    returning null. I don't know the dlna spec and therefore not what it should do inside the ProtocolInfo factory^^ But if you comment this you get an uri :D
     

    Users who are viewing this thread

    Top Bottom