Author
Topic: Event to Turn of Media in Another room (Read 1977 times)

I added a Squeezeslave player to my core/hybrid, and assigned it to a room, the player is really in my bedroom which has an MD, but did not get it to work assigning it to that room, so I created another room.

What I am hoping to achieve, is when I put on any type of media on the MD, it turns off the media(audio) playing on the squeezeslave player in the other room assigned. In attempting to achieve this, I created two events, one for listening to media in the bedroom and the other for watching media in the bedroom, to turn of the media playing in the room of the squeezeslave player, but some how it seems I messed it up; it does not work; this is even with testing the command in the event.

I am wandering if this is because I did not set any values for the #41 StreamID (int) or #42 MediaPosition (string).

What value should StreamID (int), take, tried the value I got from tailing DCE router log when I pause the media playing, but that did not work?

I have in the event criteria, the PK_EventParameter set to the bedroom the MD is and the PK_DeviceCategory set to Media Players and the commands is the SqueezeBox Player[bedroom1_2] Stop Media

I changed the command to Media Plug-in[Closet/Storage Space] - this is where I saw it - and MH Stop Media. After adding I set the PK_Device to the Squeeze Player, the PK_DeviceTemplate to the of the device in A/V Equipment (110) and set the PK_EntertainArea to the room where the player is in; I did not set anything for PK_MediaType, nor Bypass Event.

Unfortunately, testing the command does not work, nor the event. I did a quick reload and even a reboot, but same results.

I set the PK_EntertainArea to the room but am getting the following in the DCErouter.log - the entertainment area is invalid, find that strange, as I am playing audio in it at present and can change to that room and pause, stop and manipulate media.

I got it to work, for the life of me I could not seem to find the correct numeric value for the room (the number I pulled from my sql query did not work), then got a whim, if numeric required, then putting the numeric for this field #2 PK_Device (int), to the device number of the (squeeze player) without filling the other fields should work, and it did .