RELEASE Generic Media Renderer (DLNA Speakers). Cheap Sonos Alternative (Update V2)

HI @Patrick_Callahan, I need you send the logs from mediarenderer connect app, I can see if the connect is finding the media renderer.

Thanks

Since this is my first time doing a smartapp, I donā€™t know how to get the logs. :frowning: How do I do that?

Hi @Patrick_Callahan, Go to https://graph.api.smartthings.com and login with your credentials, you must go to Live Logging page, start the mediarenderer connect in your smartphone

Iā€™ve updated to 1.9.3 of the MediaRenderer, but Iā€™m still getting the formatting error:

org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed. @ line 245

Iā€™m using UPnPlay App on an android phone, like @plantucha. Any other ideas? Or is there another android app that might work better?

hi xcguy, You must verify the bubble version, the last version we verify was v.0.0.92 , the problem with this version was unformated data in xml song information, we have patched the dlna player, but may be your Bubble version has other errors.I have added a log in metadata , please update the dlna player and send me the logs when a error occurs, to see what is needed to patch. Thanks

regular tts is fixed now. @ule. do we have to change players back?

Does anyone have a youtube of this with the practical application of it? Iā€™m struggling to understand all of this, or itā€™s application. I installed the SmartApp and Device type, and can discover my Samsung TV as the DLNA device, but would like to know how this is integrated with examples.

Thanks in advance.

Hi @plantuca, ItĀ“s no necessary but recommended to change to regular DLNA Player, the same with the smartapps, its recommended to switch back to regular apps.

hi @rick_guthier , I dont known if a video tutorial has been published, but its easy to understand , the generic media renderer allows to smartthing plataform to send voice alerts, you can install some smartapps to send events, first try with sonos notify with sound (you can install it from your phone) once installed you can choose some event to monitor and when that event happens, send the message to your tv, example, if your door sensor opens send the message ā€œThe front door has been openedā€ to your tv. thats all, you can control your music and playlist form control point for your speakers or tv, not by smartthings, smartthings just send messages, (technically you can send music, radio stations or any stream to by smartthings, but the smartapps are so limited to be conformable to find and select music sources, its better to use profesional control points like listed in first post for that ), I hope this helps you

That does help. Thanks for the summary. I did the Sonos notify with sound and it sort of worked. The Samsung TV changed to the smarttv type of screen and said something like it couldnā€™t understand the mediat type.

I get it now. Thanks again, I was missing the installing the Sonos notify with sound part.

@ule

Thanks for the apps, just starting to set things upā€¦But running into issues with UpnpPlay as a render:(any idea)

e20fa542-993f-46b5-bb61-89447fc47653 7:19:01 PM: debug
e20fa542-993f-46b5-bb61-89447fc47653 7:19:00 PM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed. @ line 246

Man, now I REALLY want Amazon Echo to be DLNA. Would be so sweet.

@ule, Sorry, still seems to be failing, same error. I verified my MediaRenderer is v1.9.3, as well as the MediaRender (Connect). The UPnpPlay app is version 0.0.93, dated May 2015.
Here are the log messages from the latest failure:

c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:24:33 PM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed. @ line 245
bd14ba4c-88e1-43c3-8e23-731225520075  10:24:22 PM: trace Exiting takeAction()
bd14ba4c-88e1-43c3-8e23-731225520075  10:24:20 PM: trace takeAction()

Any other ideas I could try?

HI @xcguy I think you dont have sent all the log, I need to watch the metadata,

Is somethig like DIDL-Lite xmlns=ā€œurn:schemas-upnp-org:metadata-1-0/DIDL-Lite/ā€ xmlns:dc="http://purl.org/dc/elemen

In the las update I have added a log to watch the metadata, it is just before the error,

@ule, I double checked all my sources this morning against your GitHub, definitely at 1.9.3. I edited DLNA Player and added log statements for almost every function. Here is a new trace when I tap on the Sonos Notify with Sound SmartApp to test the alert message.

c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:10 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:09 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:07 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:07 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:04 AM: debug parse
d04b2426-3525-4192-af50-b2d235162687  9:26:00 AM: debug getChildDevices(false), children=1
d04b2426-3525-4192-af50-b2d235162687  9:26:00 AM: trace refresh all
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:02 AM: debug mediaRendererAction: GetVolume service: RenderingControl path: /control/control1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:02 AM: debug mediaRendererAction: GetTransportInfo service: AVTransport path: /control/transport1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:02 AM: debug subscribeAction: /event/control1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:02 AM: debug subscribeAction: /event/transport1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:01 AM: trace subscribe()
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:01 AM: trace Refresh()
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:01 AM: debug refresh
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:26:01 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:58 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:54 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:53 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:50 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed. @ line 246
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:50 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:48 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed. @ line 246
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:48 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:46 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:44 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:39 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:36 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:34 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:33 AM: debug parse
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:32 AM: debug parse
bd14ba4c-88e1-43c3-8e23-731225520075  9:25:30 AM: trace Exiting takeAction()
bd14ba4c-88e1-43c3-8e23-731225520075  9:25:29 AM: trace takeAction()
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug mediaRendererAction: Stop service: AVTransport path: /control/transport1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug MediaRendererAction: Stop (string)
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug mediaRendererAction: SetAVTransportURI service: AVTransport path: /control/transport1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug setTrack: http://192.168.123.126:9000/disk/DLNA-PNMP3-OP01-FLAGS01700000/music/O0$1$7I65692/Yeah%20Yeah.mp3
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug mediaRendererAction: Play service: AVTransport path: /control/transport1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug MediaRendererAction: Play (string)
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug mediaRendererAction: SetAVTransportURI service: AVTransport path: /control/transport1
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug setTrack: http://s3.amazonaws.com/smartapp-media/tts/the_mail_has_arrived.mp3?ts=1443795930430
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  9:25:30 AM: debug playByMode: https://s3.amazonaws.com/smartapp-media/tts/the_mail_has_arrived.mp3 duration: 1 mode: 1

And the mappings for those ids:

c476680b-5f8f-44d9-a4be-ca8550b0f8a0  DLNA Player
d04b2426-3525-4192-af50-b2d235162687  MediaRender (Connect)
bd14ba4c-88e1-43c3-8e23-731225520075  Sonos Notify With Sound

Let me know what else I can checkā€¦

Hi @xcguy, I can see the problem, I have updated the player, upgrade to MediaRenderer Player v1.9.4, and verify, thanks for your help to fix this problem.

@ule, Wow, those were some big changes. Still not working, but looks like you added more debugging info. Here is the latest log dump:

c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:26 AM: debug <DIDL-Lite></DIDL-Lite><DIDL-Lite></DIDL-Lite>
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:26 AM: debug Help us to fix this error, report this incident
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:26 AM: error Error when parsing XML Metadata: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed.
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:23 AM: debug <DIDL-Lite></DIDL-Lite><DIDL-Lite></DIDL-Lite>
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:23 AM: debug Help us to fix this error, report this incident
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:23 AM: error Error when parsing XML Metadata: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed.
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:08 AM: debug <DIDL-Lite></DIDL-Lite><DIDL-Lite></DIDL-Lite>
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:08 AM: debug Help us to fix this error, report this incident
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:08 AM: error Error when parsing XML Metadata: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed.
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:06 AM: debug <DIDL-Lite></DIDL-Lite><DIDL-Lite></DIDL-Lite>
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:06 AM: debug Help us to fix this error, report this incident
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:06 AM: error Error when parsing XML Metadata: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The markup in the document following the root element must be well-formed.
c476680b-5f8f-44d9-a4be-ca8550b0f8a0  10:38:02 AM: trace https://s3.amazonaws.com/smartapp-media/tts/the_mail_has_arrived.mp3
bd14ba4c-88e1-43c3-8e23-731225520075  10:38:02 AM: trace Exiting takeAction()
bd14ba4c-88e1-43c3-8e23-731225520075  10:38:00 AM: trace takeAction()
bd14ba4c-88e1-43c3-8e23-731225520075  10:38:00 AM: debug state.sound : [uri:https://s3.amazonaws.com/smartapp-media/tts/the_mail_has_arrived.mp3, duration:1]
bd14ba4c-88e1-43c3-8e23-731225520075  10:38:00 AM: debug Updated with settings: [mailbox:db78b87c-b627-4877-b7cd-d0f8999a04a3, resumePlaying:true, sonos:Atrix MediaPlayer Speaker, message:The Mail Has Arrived, actionType:Custom Message, oncePerDay:false]

HI @xcguy, This error its cached, The device must to play the message, this error log is to watch what its sending the device, but skipp all the metadata process, now you donā€™t see a error exception , just a debug , If the message cant be played other kind of error must to happen. Could you to play in your browser the uri file https://s3.amazonaws.com/smartapp-media/tts/the_mail_has_arrived.mp3

Error to publish this post

Hi @xcguy, The current error from UPnPlay who donĀ“t sent correct metadata has been patched, you must not have problems, 1.9.4a, you donĀ“t going to watch the song tittle in smartapp because upnplay do not send that info.