PDA

View Full Version : Netremote freezes during wav playback



ph0n33z
October 15th, 2009, 01:29 PM
I have the following Script in Girder set to trigger whenever the doorbell is pressed:

NetRemote.RunLua([[NetRemote.ExecuteAction(-1014, 1, 23, "{buttonbeep}")]])

However, when "buttonbeep" plays (a wav file), the NetRemote client freezes up (cameras stop refreshing and no buttons can be pressed) until after the wav is complete. How can I resolve this issue?

Rob H
October 15th, 2009, 04:07 PM
I think you can probably use NetRemote.PlaySound() with the Async parameter - not sure if this is currently documented in the help, but try searching on here if it isn't for the syntax.

ph0n33z
October 19th, 2009, 01:34 PM
I did some searching and it seems like this action has had errors in the past, so I am not sure which syntax is the most current.

Would you mind posting what I would need to put in the Girder script to replace the execute action script? Thanks.

ph0n33z
October 31st, 2009, 05:59 PM
Just requesting the same thing

Rob H
November 1st, 2009, 06:48 AM
Something like


NetRemote.RunLua([[NetRemote.PlaySound("<buttonbeep>", 1)]])

should do it, although I'm not 100% sure that it will successfully resolve the buttonbeep variable.

Maybe try it with an absolute path instead of <buttonbeep> if it doesn't.

ph0n33z
December 16th, 2009, 12:49 PM
The <buttonbeep> variable does not resolve. I will try it with a direct path.