# Build the controller's instance controller = Controller() # Initialise the server connection connection = Connection(ip=ip, port=50000) # Initialise the port iterator port = 50010 # Initialise the video streams streams = [ VideoStream(ip=ip, port=p) for p in range(port, port + CAMERAS_COUNT) ] # Inform that the execution phase has started print("Starting tasks...") # Start the connection and controller tasks controller.init() connection.connect() # Start the video streams for stream in streams: stream.stream() # Inform that the code has fully executed print("Tasks initialised and started successfully") # TODO: Remove this line blocking_test_video_stream(streams)