New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing HTMLMediaElement.volume attribute #22324
Implementing HTMLMediaElement.volume attribute #22324
Conversation
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon. |
Heads up! This PR modifies the following files:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this! I only have minor comments, once you address them, please squash your commits and we can land this!
Before we merge this, we'll want to pass the volume to the actual player. |
Sorry, I didn't get it. |
5d574be
to
e00b016
Compare
Right now all we do is store and retrieve a value from a local member. The volume of the media stream is not affected; we need to add |
Sure, it makes sense, so, I've created this P.R. handling it. As @ferjm said I don't think get_volume at player trait should be necessary. |
e00b016
to
207f95e
Compare
Yeah, I don't think we need a getter in this case as we have the value already available on the DOM side. |
Hi Sirs, |
|
@bors-servo try=wpt |
…lume_attribute, r=<try> Implementing HTMLMediaElement.volume attribute <!-- Please describe your changes on the following line: --> Work In Progress. Do not Accept. This P.R. is going to implement the volume attribute to the HTMLMediaElement --- <!-- 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 #22292. <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/22324) <!-- Reviewable:end -->
💔 Test failed - linux-rel-wpt |
That failure is #22062. |
We are missing the
Did you try the |
…lume_attribute, r=<try> Implementing HTMLMediaElement.volume attribute <!-- Please describe your changes on the following line: --> Work In Progress. Do not Accept. This P.R. is going to implement the volume attribute to the HTMLMediaElement --- <!-- 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 #22292. <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/22324) <!-- Reviewable:end -->
💔 Test failed - linux-rel-css |
It seems that this patch makes an extra test pass :). Update the test expectations for /html/semantics/embedded-content/media-elements/playing-the-media-resource/pause-remove-from-document.html and squash the commits please. |
☔ The latest upstream changes (presumably #22392) made this pull request unmergeable. Please resolve the merge conflicts. |
46c4fc7
to
211f358
Compare
d43265e
to
a2020fc
Compare
Done sir, And how about this conflict, I don't know what's going on. |
The merge conflict means that your patch does not apply cleanly on the current master. You need to rebase your patch on top of the current master. |
a2020fc
to
e7be09d
Compare
e7be09d
to
ad3ec61
Compare
@bors-servo r+ |
📌 Commit ad3ec61 has been approved by |
…lume_attribute, r=ferjm Implementing HTMLMediaElement.volume attribute <!-- Please describe your changes on the following line: --> This P.R. is going to implement the volume attribute to the HTMLMediaElement --- <!-- 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 #22292. <!-- Either: --> - [x] There are tests for these changes <!-- 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/22324) <!-- Reviewable:end -->
@bors-servo retry |
…lume_attribute, r=ferjm Implementing HTMLMediaElement.volume attribute <!-- Please describe your changes on the following line: --> This P.R. is going to implement the volume attribute to the HTMLMediaElement --- <!-- 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 #22292. <!-- Either: --> - [x] There are tests for these changes <!-- 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/22324) <!-- Reviewable:end -->
☀️ Test successful - android-mac, arm32, arm64, linux-rel-css, linux-rel-wpt, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, magicleap, status-taskcluster |
This P.R. is going to implement the volume attribute to the HTMLMediaElement
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is