create global variable
Posted: 03 Nov 2020 22:09
Hi,
I'm looking for a solution to create a global variable to store the handle : "fd" when I create a socket
I've made an event which fire every input_changed , I need to send the player state.
At first time the socket is created but when I jump in my event at the second time the socket handle is gone.
I don't know how to create a global variable .
Thanks
I'm looking for a solution to create a global variable to store the handle : "fd" when I create a socket
Code: Select all
fd = vlc.net.connect_tcp("localhost",54293)
Code: Select all
PlayerState = vlc.var.get(vlc.object.input(), "state")
I don't know how to create a global variable .
Thanks