update videoplay code