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
-
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 theuri
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!
-
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
AVTransport
service 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 serviceContentDirectory
. 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!!!