Videoplayer: detect when video has ended.