VBAN Button setup for individiual IP

VB-Audio Network Protocol and applications
Post Reply
HoustonGuyNW
Posts: 12
Joined: Sun Aug 30, 2020 2:43 am

VBAN Button setup for individiual IP

Post 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
HoustonGuyNW
Posts: 12
Joined: Sun Aug 30, 2020 2:43 am

Re: VBAN Button setup for individiual IP

Post 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"
Vincent Burel
Site Admin
Posts: 1579
Joined: Sun Jan 17, 2010 12:01 pm

Re: VBAN Button setup for individiual IP

Post 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
HoustonGuyNW
Posts: 12
Joined: Sun Aug 30, 2020 2:43 am

Re: VBAN Button setup for individiual IP

Post by HoustonGuyNW »

Thanks for the info. Its now working the way I wanted.
Post Reply