fix video_ready api for defintion