prepare for video playing