Add feature to flip the video horizontally (#7478)

* Add feature to flip the video horizontally

* Rename to .vjs-vid-flip-h for clarity

* Refactor to use Video.js plugin system

* Add cleanup method for VideoFlipHorizontallyPlugin

* Refactor code

* Add menu to video-filter-menu-button

* Fix submenu being pushed outside of the player

* Remove hotkey for mirror feature

* Rewrite event to be more explicit

* Add working button to flip video

* Remove extra comma

* Unhardcode videoFilter for videoFilter Menu

* Cleanup and add hotkey

---------

Co-authored-by: sunny-codex <265379505+sunny-codex@users.noreply.github.com>
Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
Jeffrey Cheung
2026-04-14 09:35:40 +02:00
committed by GitHub
co-authored by sunny-codex Chocobozzz
parent b586c4d4b6
commit 4474bf1a5e
12 changed files with 178 additions and 7 deletions
+4 -1
View File
@@ -99,7 +99,10 @@ const playerKeys = {
'Download speed:': 'Download speed:',
'Uploader note:': 'Uploader note:',
'Close': 'Close',
'(skipped {1} buffers) ': '(skipped {1} buffers) '
'(skipped {1} buffers) ': '(skipped {1} buffers) ',
'Video Filter': 'Video Filter',
'Mirror Video': 'Mirror Video',
'Mirror': 'Mirror'
}
Object.assign(playerKeys, videojs)