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

Hi again,

Still experimenting with PlugPlayer.
I can run one instance of PlugPlayer as DLNA Controller to control music from my Synology NAS (defined as the DLNA Server) and have it played on another instance of PlugPlayer running on a different device and specified as the DLNA Renderer. When I try to send sounds using your App I have the following problems:
1,After the sound (barking dogs) plays on the renderer it does not go back under the control of the DLNA controller instance of Plugplayer on the other device. Effectively it gets stuck with the barking dog sound as the only thing in its playlist.
2. The DLNA renderer does not persist as a thing in SmartThings. After use the Thing goes to ā€œnot presentā€ and when it is run again it does not become present again. I have to delete it as a thing, delete the MediaRenderer (Connect), recreate the MediaRenderer (Connect), and then rerun it to recreate a new PlugPlayer DLNA renderer thing before I can go again.

Hi , please read about control point in first post, not all control points works to resume, its about how control point its made, most of the Media Renderers do not accept containers, then must to use a in line control point, most of Mediarenderers do not accept pasue , and most of the mediarenderer do not accept suspend , then the music must to stop, play a message and start the song again.

Hi

Can anyone help with this error below? Not sure if it’s normal. Noticed while looking for something else. I updated to the latest version. It can find my Kodis and control them so I think the app is working. I haven’t tried sending audio message yet.

Thanks

java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 273

Hi @Paul_Preston, Could you inform what app or device type are sending that exception ?

Sorry… it’s the Media Render (Connect)

b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:38:13 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 273
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:38:12 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 273
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:38:07 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 273
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:38:07 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 273
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:38:07 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 273
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:38 PM: trace MEDIARENDER RESPONSES
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:35 PM: debug getChildDevices(false), children=3
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:35 PM: trace MEDIARENDER RESPONSES
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:32 PM: debug getChildDevices(false), children=3
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:07 PM: trace MEDIARENDER RESPONSES
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:02 PM: debug getChildDevices(false), children=3
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:06 PM: trace MEDIARENDER RESPONSES
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:37:04 PM: debug getChildDevices(false), children=3
b7b97dd8-6f28-447a-97b5-d6b1f5d21684 7:36:59 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 184 @ line 273

Hi @Paul_Preston, The section is to identify the headers when try to refresh the ip if it has changed, its no necessary but seems the response from your mediarenderer do not have headers. I have update to avoid a error when the header is empty, try it , sorry I have not much time to test it.

Yep… seem better, YOU ROCK. Thanks so much!

Everything I mentioned in RELEASE Generic Media Renderer (DLNA Speakers). Cheap Sonos Alternative (Update V2)

is still not working for me. I have selected all inputs I can find.

Awesome, never would of thought of that, thanks!

Hi Spinny, I have tested the plugPlayer app for ios, the PP is a virtual MediaRenderer and works , but its very inconsistent, just freeze every time out , and need to be launched again to get a different port, MediaRenderer connect find the new port every 3 minutes but its necessary to relaunch PP every time its frizzed, sorry but PP does not work fine with ST, Its necesary to find other app who converts the ios in a media renderer

I’ve confirmed this works on my Denon S910W

I am still unable to configure Media Renderer Events.

"Oops! Looks like you need to double check some inputs."

I have all inputs configured: Play Triggers, stop triggers, Action, Play this Message, Play this Sound, Sonos Speaker, Assign a Name, Specific Modes.

Still get the error.

HI @mdawson, This bug was reported time ago and was fixed, have you the last release?

Looking at the code, I have Media Renderer Service Manager 2.01.

The code for Media Renderer Events doesn’t show a version, but it’s dated 2015-10-09.

Looking at GitHub, I appear to be up to date.

Hi @mdawson, the last code of media Renderer events was updated on Dec 23, 2015, please update the code and try again.

Sorry to have to ask, but when I follow the link I have for your gitHub project, I find only the old code. Could you post a new link?

That was supposed to be a reply to @ule

Hi @mdawson [Updated] Media Renderer Events, play messages, radio stations, tracks, sounds

Looks like either I’m reading it wrong, or the code version (the one IN the code itself) isn’t updated. It matched what I had installed, but when I ā€œupdatedā€ with the code on GitHub, things started allowing me to save them.

I’m not at home so I can’t actually test function, but the SmartApp allowed me to fully configure it.

Thanks!

1 Like

OK so I’ve tried TTS a couple ways and nothing happens.

Maybe it’s a problem with my unconfirmed speaker. no idea if it’s actually compatible, though specs suggest it is. Any ideas on how I could go about figuring out if I’ve got a functioning system with unsupported hardware vs. supported hardware and something wrong in my ST setup?