mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update servo-media
This commit is contained in:
parent
1d8f7574d8
commit
407d88f97d
5 changed files with 21 additions and 11 deletions
21
Cargo.lock
generated
21
Cargo.lock
generated
|
@ -3694,18 +3694,19 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "servo-media"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/media#593fcabd749e693de51d609688d29497c668c667"
|
||||
source = "git+https://github.com/servo/media#4e2602b5154c0272703a88396fd3b286d34213e4"
|
||||
dependencies = [
|
||||
"servo-media-audio 0.1.0 (git+https://github.com/servo/media)",
|
||||
"servo-media-gstreamer 0.1.0 (git+https://github.com/servo/media)",
|
||||
"servo-media-player 0.1.0 (git+https://github.com/servo/media)",
|
||||
"servo-media-streams 0.1.0 (git+https://github.com/servo/media)",
|
||||
"servo-media-webrtc 0.1.0 (git+https://github.com/servo/media)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "servo-media-audio"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/media#593fcabd749e693de51d609688d29497c668c667"
|
||||
source = "git+https://github.com/servo/media#4e2602b5154c0272703a88396fd3b286d34213e4"
|
||||
dependencies = [
|
||||
"boxfnonce 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"byte-slice-cast 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -3722,7 +3723,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "servo-media-gstreamer"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/media#593fcabd749e693de51d609688d29497c668c667"
|
||||
source = "git+https://github.com/servo/media#4e2602b5154c0272703a88396fd3b286d34213e4"
|
||||
dependencies = [
|
||||
"boxfnonce 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"byte-slice-cast 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -3744,6 +3745,7 @@ dependencies = [
|
|||
"regex 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"servo-media-audio 0.1.0 (git+https://github.com/servo/media)",
|
||||
"servo-media-player 0.1.0 (git+https://github.com/servo/media)",
|
||||
"servo-media-streams 0.1.0 (git+https://github.com/servo/media)",
|
||||
"servo-media-webrtc 0.1.0 (git+https://github.com/servo/media)",
|
||||
"url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"zip 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -3752,19 +3754,25 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "servo-media-player"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/media#593fcabd749e693de51d609688d29497c668c667"
|
||||
source = "git+https://github.com/servo/media#4e2602b5154c0272703a88396fd3b286d34213e4"
|
||||
dependencies = [
|
||||
"ipc-channel 0.11.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "servo-media-streams"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/media#4e2602b5154c0272703a88396fd3b286d34213e4"
|
||||
|
||||
[[package]]
|
||||
name = "servo-media-webrtc"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/media#593fcabd749e693de51d609688d29497c668c667"
|
||||
source = "git+https://github.com/servo/media#4e2602b5154c0272703a88396fd3b286d34213e4"
|
||||
dependencies = [
|
||||
"boxfnonce 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"servo-media-streams 0.1.0 (git+https://github.com/servo/media)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -3847,7 +3855,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "servo_media_derive"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/servo/media#593fcabd749e693de51d609688d29497c668c667"
|
||||
source = "git+https://github.com/servo/media#4e2602b5154c0272703a88396fd3b286d34213e4"
|
||||
dependencies = [
|
||||
"proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"quote 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -5350,6 +5358,7 @@ dependencies = [
|
|||
"checksum servo-media-audio 0.1.0 (git+https://github.com/servo/media)" = "<none>"
|
||||
"checksum servo-media-gstreamer 0.1.0 (git+https://github.com/servo/media)" = "<none>"
|
||||
"checksum servo-media-player 0.1.0 (git+https://github.com/servo/media)" = "<none>"
|
||||
"checksum servo-media-streams 0.1.0 (git+https://github.com/servo/media)" = "<none>"
|
||||
"checksum servo-media-webrtc 0.1.0 (git+https://github.com/servo/media)" = "<none>"
|
||||
"checksum servo-skia 0.30000020.1 (registry+https://github.com/rust-lang/crates.io-index)" = "63abd6bed50aaf0e348d9fe8104088d61d5b67fd47cbbdc822278f5bed82b5f5"
|
||||
"checksum servo_media_derive 0.1.0 (git+https://github.com/servo/media)" = "<none>"
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue