Page 1 of 1

VBAN Button setup for individiual IP

Posted: Fri Oct 30, 2020 7:42 pm
by HoustonGuyNW
I'm using Audio Banana and am trying to set up a macro buttons to turn on/off individual vban output addresses. I can get "vban1", which I assume is the 1st line on the OUTSTREAM SECTION to work as a 2 position button using the following.

vban.outstream["vban1"].on = "1" ("1" for on and "0" for off.)

When I try to do the same with "vban2" it only turns on and off what I had assumed was "vban1". I also tried the following with the same results.

vban.Enable
vban.outstream["vban2].port = "192.168.1.102"
vban.outstream["vban2"].quality = "0"
vban.outstream["vban2"].on = "1"

Obviously I am missing something. Can anyone help guide me with this?
Thanks

Re: VBAN Button setup for individiual IP

Posted: Sat Oct 31, 2020 2:27 pm
by HoustonGuyNW
After sleeping and realizing my basic assumption was wrong I found the solution.....
vban.Enable
vban.outstream[1].port = "192.168.1.102"
vban.outstream[1].quality = "0"
vban.outstream[1].on = "1"

Re: VBAN Button setup for individiual IP

Posted: Sun Nov 01, 2020 8:56 am
by Vincent Burel
there is different mistake in your script, that should be:

vban.Enable
vban.outstream[1].ip = "192.168.1.102" //ip is not port
vban.outstream[1].quality = 0; // parameters is not string
vban.outstream[1].on = 1; // parameters is not string

Re: VBAN Button setup for individiual IP

Posted: Mon Nov 02, 2020 6:24 pm
by HoustonGuyNW
Thanks for the info. Its now working the way I wanted.