Added code that drives the video stream according to the received from barcode scanner
Small code fix