Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1835149 - modify video controls visibility on PiP window after pl…
…ay/pause state change r=pip-reviewers,niklas This patch utilizes `this.revealControls` to modify the visibility of video controls and subtitles on the PiP window, simlarly to how we show/hide them after selecting the play/pause buttons ([[ https://searchfox.org/mozilla-central/rev/76b13c585e575cf273fd05ab3b48a1532c1d1faa/toolkit/components/pictureinpicture/content/player.js#651,654 | searchfox ]]). To be more specific about what `this.revealControls` does: - handles when to add/remove the `showing` attribute, which is responsible for player controls opacity - handles calling `this.showVideoControls` or `this.hideVideoControls`, which then send the async message `PictureInPicture:ShowVideoControls` or `PictureInPicture:HideVideoControls` respectively for subtitles position on the PiP window Another change is simplifying how we send the async message `PictureInPicture:HideVideoControls` to PiPChild via the `this.hideVideoControls` function. Differential Revision: https://phabricator.services.mozilla.com/D193258
- Loading branch information