Sony's Developer World forum

    • Home
    • Forum guidelines

    "Collection of items" in AVTransportURI

    Audio Control API
    3
    6
    5699
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TryingToRunDlna last edited by

      Hi,
      the desciption of AVTransportURI states "This URI may refer to a single item (for example, a song) or to a collection of items (for example, a playlist).".

      How to I refer to a "collection of items"? In the results, woch I get via browse only the single files have an URI, which I can use.
      The use case is e.g. to play a complete album.

      Best regards,
      Nils

      1 Reply Last reply Reply Quote
      • D
        David Åberg DeveloperWorld last edited by

        I don't think you can play a folder or something similar. I believe you have to create a playlist file (.m3u) and play/reference that file.
        I have never tested this myself so I can not say exactly how this works or how it should work.

        Best regards,
        David Åberg

        T 1 Reply Last reply Reply Quote
        • T
          TryingToRunDlna @David Åberg last edited by

          @david-åberg Thanks for your reply. I think I found in some DLNA descriptions that folders may or may not have a "res" attribute. In my case they don't so that I need to iterate throught the items in the album.

          But I have an additional new question:
          I did put the URI of the MP3 in AVTransportURI.
          I tried to fill the AVTransportURI.CurrentURIMetaData with the required information (received with BrowseMetadata).
          But actually the track starts playing but in the app of my DLNA player I don't see any meta data (duration of the song etc.).

          There are three cases:
          empty Curren

          • tURIMetaData: track starts playing but without meta data
          • assumed correct metadata: track starts playing but without meta data
          • some wrong meta data: error when sending SetAVTransportURI

          Do you have any idea how I could figure out the reason?

          Thanks!

          D 1 Reply Last reply Reply Quote
          • D
            David Åberg DeveloperWorld @TryingToRunDlna last edited by

            @tryingtorundlna It was a long time since I worked with DLNA but I think I remember being able to get the metadata from the device.
            What I would do, if you have the possibility, is to test that it works with another DLNA player. If it works then sniff the network packages with wireshark or similar. I know from experience that the devices can be very picky at times of what they accept so even the smallest binay error and the device might silently ignore the data.
            It can be frustrating sometimes, but I hope you get it to work.

            T 1 Reply Last reply Reply Quote
            • T
              TryingToRunDlna @David Åberg last edited by

              @david-åberg Wireshark did help. The Metadata, which I got from the server was not accepted by the renderer. It contained quotes ("), which were unescaped (&quot). All other characters were escaped.

              1 Reply Last reply Reply Quote
              • N
                nbonamy last edited by

                Trying to get a m3u playlist to play without any luck so far. Anyone can share an example of a CurrentURIMetaData that works? Thanks!

                1 Reply Last reply Reply Quote
                • First post
                  Last post
                Developer World
                Copyright © 2021 Sony Group Corporation. All rights reserved.
                • Contact us
                • Legal