added some failsafes to the startVideo command