2022-02-25 14:37:23 +00:00
|
|
|
import vban_cmd
|
|
|
|
|
2022-02-25 15:17:05 +00:00
|
|
|
def main():
|
2022-02-28 18:14:31 +00:00
|
|
|
with vban_cmd.connect('potato', ip=ip, port=port, streamname=streamname, bps=bps, channel=channel) as vban:
|
|
|
|
for param in ['A1', 'A2', 'A3', 'A4', 'A5', 'B1', 'B2', 'B3', 'mono', 'mute']:
|
|
|
|
setattr(vban.strip[0], param, True)
|
|
|
|
print(getattr(vban.strip[0], param))
|
|
|
|
setattr(vban.strip[0], param, False)
|
|
|
|
print(getattr(vban.strip[0], param))
|
|
|
|
|
2022-02-25 14:37:23 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2022-02-28 18:14:31 +00:00
|
|
|
kind_id = 'potato'
|
|
|
|
ip = 'ws.local'
|
|
|
|
port=6980
|
|
|
|
streamname = 'testing'
|
|
|
|
bps = 57600
|
|
|
|
channel=3
|
|
|
|
|
2022-02-25 15:17:05 +00:00
|
|
|
main()
|