Problem: restorePlayerSnapshot uses autoplay(true) to force a content load in iOS Safari for correct placement of the playhead after an ad break. However if an integration has set normalizeAutoplay: true in the setup of videojs, autoplay() hands off to an async, programatic play request with manualAutoplay('play'). The subsequent seek-back causes a visible restart of the content after ~1 second of playback.
Solution: We can avoid the visual glitch by toggling autoplay directly on the HTML5 tech. The existing followup mechanism to clear out the autoplay status continues to work as expected as autoplay(false) is passed to the tech anyway.
Problem:
restorePlayerSnapshot
usesautoplay(true)
to force a content load in iOS Safari for correct placement of the playhead after an ad break. However if an integration has setnormalizeAutoplay: true
in the setup ofvideojs
,autoplay()
hands off to an async, programatic play request withmanualAutoplay('play')
. The subsequent seek-back causes a visible restart of the content after ~1 second of playback.Solution: We can avoid the visual glitch by toggling autoplay directly on the HTML5 tech. The existing followup mechanism to clear out the autoplay status continues to work as expected as
autoplay(false)
is passed to the tech anyway.