Skip to content
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

Disable video if audio element #23350

Merged
merged 1 commit into from May 30, 2019
Merged

Disable video if audio element #23350

merged 1 commit into from May 30, 2019

Conversation

@ceyusa
Copy link
Collaborator

ceyusa commented May 9, 2019

And register frame renderer only if video element

Requires the merge of servo/media#257


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #23336 (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because ___

This change is Reviewable

@highfive
Copy link

highfive commented May 9, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlmediaelement.rs
  • @KiChjang: components/script/dom/htmlmediaelement.rs
@ceyusa ceyusa requested a review from ferjm May 9, 2019
@highfive
Copy link

highfive commented May 9, 2019

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@Manishearth
Copy link
Member

Manishearth commented May 9, 2019

@bors-servo
Copy link
Contributor

bors-servo commented May 9, 2019

📌 Commit c7b5038 has been approved by Manishearth

@Manishearth
Copy link
Member

Manishearth commented May 9, 2019

@bors r- whoops wrong order

@Manishearth
Copy link
Member

Manishearth commented May 9, 2019

@ferjm
ferjm approved these changes May 10, 2019
Copy link
Member

ferjm left a comment

LGTM.

I filed a follow-up to improve the design a little bit servo/media#258

Thanks!

@ceyusa ceyusa force-pushed the ceyusa:audio-element branch from c7b5038 to 24a6f00 May 10, 2019
@ceyusa ceyusa force-pushed the ceyusa:audio-element branch from 24a6f00 to e988e31 May 13, 2019
@Manishearth
Copy link
Member

Manishearth commented May 21, 2019

Needs a rebase

@ceyusa
Copy link
Collaborator Author

ceyusa commented May 27, 2019

The API to do this was reworked in servo/media: servo/media#266
After its merge we could rebase it :)

@ceyusa ceyusa force-pushed the ceyusa:audio-element branch from e988e31 to c749d17 May 29, 2019
@ceyusa
Copy link
Collaborator Author

ceyusa commented May 29, 2019

@ferjm r?

it's above #23476 😉

@jdm
Copy link
Member

jdm commented May 29, 2019

Needs a ./mach fmt.

@jdm jdm added the S-fails-tidy label May 29, 2019
@ceyusa ceyusa force-pushed the ceyusa:audio-element branch from c749d17 to a471faa May 29, 2019
@ceyusa
Copy link
Collaborator Author

ceyusa commented May 29, 2019

@jdm Oops! sorry... fixed!

@ferjm ferjm removed the S-fails-tidy label May 30, 2019
Otherwise it will only render audio but no video frames.
@ceyusa ceyusa force-pushed the ceyusa:audio-element branch from a471faa to 02dfee7 May 30, 2019
@ceyusa
Copy link
Collaborator Author

ceyusa commented May 30, 2019

rebased to master

@ferjm r?

@ferjm
Copy link
Member

ferjm commented May 30, 2019

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2019

📌 Commit 02dfee7 has been approved by ferjm

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2019

Testing commit 02dfee7 with merge f413125...

bors-servo added a commit that referenced this pull request May 30, 2019
Disable video if audio element

And register frame renderer only if video element

Requires the merge of servo/media#257

<!-- Please describe your changes on the following line: -->

---
<!-- 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 #23336 (GitHub issue number if applicable)

<!-- 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/23350)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2019

☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: ferjm
Pushing f413125 to master...

@bors-servo bors-servo merged commit 02dfee7 into servo:master May 30, 2019
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@ceyusa ceyusa deleted the ceyusa:audio-element branch May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants
You can’t perform that action at this time.