-
Notifications
You must be signed in to change notification settings - Fork 22
MediaStreamConstraints for getUserMedia #270
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
Conversation
src/media_devices/mod.rs
Outdated
@@ -89,6 +89,51 @@ impl MediaDeviceInfo { | |||
} | |||
} | |||
|
|||
/// Dictionary used to instruct what sort of tracks to include in the [`MediaStream`] returned by | |||
/// [`get_user_media`] |
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.
I found this to be the most friendly way of modeling the constraints, but let me know if you think otherwise
|
Cool, the API looks ok to me Just tested on my side and, a bit hard to tell, but point 1 doesn't seem to be an issue on my machine. Points 2 and 3 behave the same. One last think I'm just thinking about, maybe we could just rename |
|
Seems to work on my device, however some caveats
RUST_LOG=debug cargo run --release --example microphone
cubeb
audio backend improvements #187cpal
bug Stream dropped but audio callback still being called RustAudio/cpal#7711 and 2 are not related to this PR by the way.
In any case I think we can merge this despite the caveats.
Let me know how it works for you!