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

Add API for disabling video track #257

Merged
merged 1 commit into from May 10, 2019
Merged

Conversation

@ceyusa
Copy link
Contributor

ceyusa commented May 9, 2019

This is the media player side for servo/servo#23336

This is the media player side for
servo/servo#23336
@ceyusa
Copy link
Contributor Author

ceyusa commented May 9, 2019

@ferjm r?

@ceyusa ceyusa mentioned this pull request May 9, 2019
3 of 5 tasks complete
@@ -284,15 +284,18 @@ fn main() {
#[cfg(not(target_os = "android"))]
fn main() {
let args: Vec<_> = env::args().collect();
let (use_gl, filename) = if args.len() == 2 {
let (no_video, use_gl, filename) = if args.len() == 2 {

This comment has been minimized.

@philn

philn May 9, 2019

Collaborator

May I suggest the clap (or similar crate) for CLI args parsing?

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

ferjm left a comment

Good enough.

It may be cleaner to add a constructor flag to the Player (i.e. MediaType or such) as a follow-up.

Could you file an issue for this and to address @philn's suggestion, please?

Thanks!

@ferjm
Copy link
Member

ferjm commented May 10, 2019

@bors-servo
Copy link
Contributor

bors-servo commented May 10, 2019

📌 Commit e0b7067 has been approved by ferjm

@bors-servo
Copy link
Contributor

bors-servo commented May 10, 2019

Testing commit e0b7067 with merge e9c2a67...

bors-servo added a commit that referenced this pull request May 10, 2019
Add API for disabling video track

This is the media player side for servo/servo#23336
@ferjm
Copy link
Member

ferjm commented May 10, 2019

@bors-servo
Copy link
Contributor

bors-servo commented May 10, 2019

☀️ Test successful - checks-travis
Approved by: ferjm
Pushing e9c2a67 to master...

@bors-servo bors-servo merged commit e0b7067 into servo:master May 10, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
@ceyusa ceyusa deleted the ceyusa:disable-video branch May 10, 2019
bors-servo added a commit to servo/servo 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 -->
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.

None yet

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