mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add MediaDevices::GetUserMedia
This commit is contained in:
parent
eee183d7f4
commit
8b0719a6f2
5 changed files with 40 additions and 12 deletions
|
@ -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()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue