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
VBAN Button setup for individiual IP
-
- Posts: 15
- Joined: Sun Aug 30, 2020 2:43 am
Re: VBAN Button setup for individiual IP
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"
vban.Enable
vban.outstream[1].port = "192.168.1.102"
vban.outstream[1].quality = "0"
vban.outstream[1].on = "1"
-
- Site Admin
- Posts: 2133
- Joined: Sun Jan 17, 2010 12:01 pm
Re: VBAN Button setup for individiual IP
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
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
-
- Posts: 15
- Joined: Sun Aug 30, 2020 2:43 am
Re: VBAN Button setup for individiual IP
Thanks for the info. Its now working the way I wanted.