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
Conversation
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]; |
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.
Nit: Pull stream.getAudioTracks()[0]
into a variable.
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.
But it has to be on the global object for add_objects
to work, I presume using eval()
. Am I misunderstanding?
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.
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]; |
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.
The above nit assumes it was intended to re-use the same value. Is it? Or is there a getVideoTracks equivalent?
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.
Oops, copypasta, will fix.
No description provided.