optimize video player
loop for video player