Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd fullscreen button to video controls #24179
Conversation
highfive
commented
Sep 11, 2019
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @ferjm (or someone else) soon. |
|
Ok, I added the ability to exit fullscreen mode to the |
|
Thanks! Only a couple of minor comments left. |
| @@ -368,6 +387,16 @@ | |||
| this.media.muted = !this.media.muted; | |||
| } | |||
|
|
|||
| toggleFullscreen() { | |||
| const fullscreenEnabled = document.fullscreenEnabled && document.fullscreenElement; | |||
This comment has been minimized.
This comment has been minimized.
| </span> | ||
| <button id="volume-switch"></button> | ||
| <input id="volume-level" type="range" value="100" min="0" max="100" step="1"></input> | ||
| ${isAudioOnly ? "" : '<button id="fullscreen-switch" class="fullscreen"></button>'} |
This comment has been minimized.
This comment has been minimized.
ferjm
Sep 11, 2019
Member
It's really not a big deal, but it would be very nice if we could change the icon depending on whether we are out (icon with arrows pointing out) or in (icon with arrows pointing in) of fullscreen mode. Or use a neutral icon instead.
|
Thank you! @bors-servo r+ |
|
|
…ferjm Add fullscreen button to video controls This PR adds a fullscreen button to the video controls r? @ferjm --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24164 <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24179) <!-- Reviewable:end -->
|
|
elaye commentedSep 11, 2019
•
edited by SimonSapin
This PR adds a fullscreen button to the video controls
r? @ferjm
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is