Sony's Developer World forum

    • Home
    • Forum guidelines

    getStorageList (v1.1 or v1.2)

    Audio Control API
    2
    5
    3034
    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
      tmrobert8 last edited by

      When I execute getStorageList (either version) - it always returns back with nothing mounted even though something is. Note: this occurs on both a STR-DN1080 and an HT-NT5...

      Event (from inserting a USB into the front USB):

      {"id":19,"result":[[{"deviceName":"USB","formattable":"unknown","freeCapacityMB":-1,"isAvailable":"true","mounted":"mounted","permission":"","position":"front","systemAreaCapacityMB":-1,"uri":"storage:usb1","volumeLabel":"","wholeCapacityMB":-1},{"deviceName":"USB","formattable":"unknown","freeCapacityMB":-1,"isAvailable":"false","mounted":"unmounted","permission":"","position":"rear","systemAreaCapacityMB":-1,"uri":"storage:usb2","volumeLabel":"","wholeCapacityMB":-1}]]}
      

      Later Request (USB is still mounted and in fact, playing):

      {"id":100,"method":"getStorageList","version":"1.2","params":[{"uri":"","isRegistered":""}]}
      

      Result (shows it's unmounted even though it is):

      {"id":100,"result":[[{"deviceName":"USB","formattable":"unknown","freeCapacityMB":-1,"isAvailable":"false","mounted":"unmounted","permission":"","position":"front","systemAreaCapacityMB":-1,"uri":"storage:usb1","volumeLabel":"","wholeCapacityMB":-1},{"deviceName":"USB","formattable":"unknown","freeCapacityMB":-1,"isAvailable":"false","mounted":"unmounted","permission":"","position":"rear","systemAreaCapacityMB":-1,"uri":"storage:usb2","volumeLabel":"","wholeCapacityMB":-1}]]}
      
      1 Reply Last reply Reply Quote
      • D
        david DeveloperWorld last edited by

        The info I got is that USB handling via the AudioControl API is on it's way to be phased out, the recommended way to access the USB is via DLNA. From my own testing the storage handling via the API is confusing at best and feels very random at times.

        1 Reply Last reply Reply Quote
        • T
          tmrobert8 last edited by

          Thanks - although could you communicate to the powers to be that DLNA is missing the thing that was important here with the storage event/API: detecting when something is mounted/unmounted.

          What I was looking for was the ability to create a rule that "when storage is mounted, play first content on it". As far as I know, we can't do that with DLNA (correct me if I'm wrong)...

          D 1 Reply Last reply Reply Quote
          • D
            david DeveloperWorld @tmrobert8 last edited by

            @tmrobert8 Good point about the notification about mounted device. Will put that on the list as improvements, it will probably be that to play the media the DLNA will be the recommendation for now.

            1 Reply Last reply Reply Quote
            • T
              tmrobert8 last edited by

              BTW - interestingly the blurays that I have access do handle storage list correctly (getStorageList returns the correct results for a few of the fields). Seems like the soundbars/AVRs do not (although the events are correct for them)..

              Note that none of them seem to set a few of the fields correctly however (like the number [space] fields)...

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