Fix bug with looping video on iOS devices.