Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to add additional checks to more accurately represent the curr…
…ent state of the instream player. This makes it so that we're more certain that we're in the before play state when we set the instream to playing after the video plays. This fixes an issue with the chrome cast where a video with a postroll l will replay at the end of the video [Fixes #89206786]
- Loading branch information
I might be splitting hairs here. I just think the before and complete cases are exclusive and the latter is only a workaround so if we could remove the workaround we'd take out that check and the _oldpos state var.
if ( _controller.checkBeforePlay() || (_oldpos === 0 && !_model.getVideo().checkComplete())) {
?