Skip to content
Permalink
Browse files

Update servo-media

  • Loading branch information...
Manishearth committed Feb 12, 2019
1 parent 1d8f757 commit 407d88f97dd30f90c14dc3a5b59c7b4e803e8546

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -101,7 +101,8 @@ use servo_media::audio::graph::NodeId;
use servo_media::audio::panner_node::{DistanceModel, PanningModel};
use servo_media::audio::param::ParamType;
use servo_media::player::Player;
use servo_media::webrtc::{MediaStream as BackendMediaStream, WebRtcController};
use servo_media::streams::MediaStream as BackendMediaStream;
use servo_media::webrtc::WebRtcController;
use servo_media::Backend;
use servo_url::{ImmutableOrigin, MutableOrigin, ServoUrl};
use smallvec::SmallVec;
@@ -43,12 +43,12 @@ impl MediaDevicesMethods for MediaDevices {
let media = ServoMedia::get().unwrap();
let mut tracks = vec![];
if constraints.audio {
if let Some(audio) = media.create_audioinput_stream() {
if let Some(audio) = media.create_audioinput_stream(Default::default()) {
tracks.push(audio)
}
}
if constraints.video {
if let Some(video) = media.create_videoinput_stream() {
if let Some(video) = media.create_videoinput_stream(Default::default()) {
tracks.push(video)
}
}
@@ -9,7 +9,7 @@ use crate::dom::bindings::root::DomRoot;
use crate::dom::eventtarget::EventTarget;
use crate::dom::globalscope::GlobalScope;
use dom_struct::dom_struct;
use servo_media::webrtc::MediaStream as BackendMediaStream;
use servo_media::streams::MediaStream as BackendMediaStream;
use std::mem;

#[dom_struct]
@@ -34,7 +34,7 @@ use crate::task_source::networking::NetworkingTaskSource;
use crate::task_source::TaskSource;
use dom_struct::dom_struct;

use servo_media::webrtc::MediaStream as BackendMediaStream;
use servo_media::streams::MediaStream as BackendMediaStream;
use servo_media::webrtc::{
BundlePolicy, IceCandidate, SdpType, SessionDescription, WebRtcController, WebRtcSignaller,
};

0 comments on commit 407d88f

Please sign in to comment.
You can’t perform that action at this time.