Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Unsolved DLNA uri syntax with SetPlayContent

    Audio Control API
    api audio control
    2
    2
    4278
    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.
    • Kaawin
      Kaawin last edited by

      Hi,

      I am trying to play music from my DLNA server using SetPlayContent.
      My json file:

      {
       "method":"setPlayContent",
       "id":47,
       "params":[
        {
         "output":"extOutput:zone?zone=1",
         "uri":"dlna:music/url_of_file"
        }
       ],
       "version":"1.2"
      }
      

      This request returns the error code 3.

      The url_of_file is good (http://192.168.0.44:8200/MediaItems/58.mp3), I can curl or wget the file. So I think the problem comes from the way I use the uri parameter.

      I've also tried the method described : here, but my DLNA server does not have service named AVTransport:1.

      Can you tell me what I'm doing wrong ?

      Thanks!

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

        Hi @Kaawin,
        Using the setPlayContent to play DLNA content is not recommended I have had mixed results with it and lot of frustration...

        It is not your media server that needs to have the AVTransportservice that is for the sony receiver or speaker you want to play the music on.
        To make it easier for you to get the correct information your media server should hopefully support the service ContentDirectory. Otherwise you have to fill in the info using the provided examples, it is easy to get them wrong and the error messages you get (if you get any) is not that helpful.

        Unfortunately the code examples on developer world have some issues, so it is better to look here https://github.com/sonydevworld/audio_control_api_examples/tree/master/DLNA for examples.

        Hope this helped, and good luck!!!

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