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 MediaStreamTrack Content Hints IDL file + test #12502

Merged
merged 2 commits into from Aug 16, 2018
Merged

Conversation

foolip
Copy link
Member

@foolip foolip commented Aug 15, 2018

No description provided.

@foolip
Copy link
Member Author

foolip commented Aug 15, 2018

These tests pass on Chrome Dev with experimental web platform features enabled.

});

const stream = await getNoiseStream({ audio: true, video: true });
self.audioTrack = stream.getAudioTracks()[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Pull stream.getAudioTracks()[0] into a variable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it has to be on the global object for add_objects to work, I presume using eval(). Am I misunderstanding?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DW - Irrelevant given that there should have been 2 different values :)


const stream = await getNoiseStream({ audio: true, video: true });
self.audioTrack = stream.getAudioTracks()[0];
self.videoTrack = stream.getAudioTracks()[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above nit assumes it was intended to re-use the same value. Is it? Or is there a getVideoTracks equivalent?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, copypasta, will fix.

@foolip foolip merged commit 09dfd6a into master Aug 16, 2018
@foolip foolip deleted the idl-mst-content-hint branch August 16, 2018 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants