Add MediaDevices::GetUserMedia

This commit is contained in:
Manish Goregaokar 2019-01-28 13:23:25 -08:00
parent eee183d7f4
commit 8b0719a6f2
5 changed files with 40 additions and 12 deletions

View file

@ -167,6 +167,7 @@ impl NavigatorMethods for Navigator {
/// https://w3c.github.io/mediacapture-main/#dom-navigator-mediadevices
fn MediaDevices(&self) -> DomRoot<MediaDevices> {
self.mediadevices.or_init(|| MediaDevices::new(&self.global()))
self.mediadevices
.or_init(|| MediaDevices::new(&self.global()))
}
}