Updated for iOS video rendering