-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stay in fullscreen/fullwindow/PiP + default viewing mode setting (#5903)
* MHave fullscreen persist when videos autoplay * Have fullscreen and PiP be re-requested on autoplay when they are open * Implement Default Viewing Mode setting * Implement external player default viewing mode Current limitations: does not work for the search bar, randomly encountered YT video links (e.g., in descriptions), or the video thumbnail link in the playlist list view. * Disable & hide 'External Player' default viewing mode when no external player is set This will prevent issues with users who accidentally change this setting and report that clicking on videos results in errors. * Fix fullscreen issue with icons by calling requestFullscreen on videoContainer element * Revert Enable Theater Mode by Default removal Theatre mode is not mutually exclusive with the viewing mode and thus should not be included here. This also saves us the work of having to update the default viewing mode to theatre mode on first load for 1-2 releases that we would have otherwise needed. * Update src/renderer/components/player-settings/player-settings.js Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Update to trigger setFullWindow event when starting in fullwindow * Update to use expand icon instead * Clean up External Player Default Viewing Mode link template logic * Remove PiP and fullscreen default viewing mode options in settings when Electron is not available * Improve stay-in-mode handling to save state values on player destroy This allows staying in PiP when clicking on other videos, staying in fullscreen/fullwindow when using Ctrl+Left Arrow / Ctrl+Right Arrow, and staying in PiP when using the watch-video-playlist Play Prev / Play Next buttons. * Fix linting * Update values to check IS_ELECTRON * Add clarifying code comments * Revert "Revert Enable Theater Mode by Default removal" This reverts commit 937935f. * Implement theatre mode setting migration * Add 'Theater' label in lieu of reusing 'Theater Mode' label * Use native Shaka functions for toggling FS and PiP * Implement code review suggestions * Remove entries of removed theatre mode key in all other locales * Apply suggestions from code review Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Implement changes from review * Remove key from additional languages * Remove label from two more languages * Revert changes in other locales to prevent merge conflicts --------- Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
241 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.