make videoSource global. fixes #1