mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use servo-media-auto and call ServoMedia::init where required
This commit is contained in:
parent
36825b82f3
commit
bc74dc0e85
6 changed files with 493 additions and 0 deletions
|
@ -17,6 +17,7 @@ use crate::dom::promise::Promise;
|
|||
use dom_struct::dom_struct;
|
||||
use servo_media::streams::capture::{Constrain, ConstrainRange, MediaTrackConstraintSet};
|
||||
use servo_media::ServoMedia;
|
||||
use servo_media_auto::Backend;
|
||||
use std::rc::Rc;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -26,6 +27,7 @@ pub struct MediaDevices {
|
|||
|
||||
impl MediaDevices {
|
||||
pub fn new_inherited() -> MediaDevices {
|
||||
ServoMedia::init::<Backend>();
|
||||
MediaDevices {
|
||||
eventtarget: EventTarget::new_inherited(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue