Additional logic to ensure that video autoplays properly