added a try/catch around setting the video src attribute