videoplayer: ensure the video will be loaded before setting the state, if possible. closes #1823