Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
05498223
提交
05498223
authored
7月 08, 2021
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v3' of github.com:versatica/mediasoup into v3
上级
edde98d7
66206352
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
32 行增加
和
8 行删除
+32
-8
Cargo.toml
rust/Cargo.toml
+2
-2
data_structures.rs
rust/src/data_structures.rs
+0
-0
router.rs
rust/src/router.rs
+25
-1
rtp_parameters.rs
rust/src/rtp_parameters.rs
+2
-2
scalability_modes.rs
rust/src/scalability_modes.rs
+2
-2
Cargo.toml
worker/Cargo.toml
+1
-1
没有找到文件。
rust/Cargo.toml
浏览文件 @
05498223
[package]
[package]
name
=
"mediasoup"
name
=
"mediasoup"
version
=
"0.8.
1
"
version
=
"0.8.
2
"
description
=
"Cutting Edge WebRTC Video Conferencing in Rust"
description
=
"Cutting Edge WebRTC Video Conferencing in Rust"
categories
=
[
"api-bindings"
,
"multimedia"
,
"network-programming"
]
categories
=
[
"api-bindings"
,
"multimedia"
,
"network-programming"
]
authors
=
[
"Nazar Mokrynskyi <nazar@mokrynskyi.com>"
]
authors
=
[
"Nazar Mokrynskyi <nazar@mokrynskyi.com>"
]
...
@@ -45,7 +45,7 @@ version = "0.6.5"
...
@@ -45,7 +45,7 @@ version = "0.6.5"
[dependencies.mediasoup-sys]
[dependencies.mediasoup-sys]
path
=
"../worker"
path
=
"../worker"
version
=
"0.2.
1
"
version
=
"0.2.
2
"
[dependencies.parking_lot]
[dependencies.parking_lot]
version
=
"0.11.1"
version
=
"0.11.1"
...
...
rust/src/data_structures.rs
浏览文件 @
05498223
差异被折叠。
点击展开。
rust/src/router.rs
浏览文件 @
05498223
...
@@ -41,7 +41,7 @@ use crate::pipe_transport::{
...
@@ -41,7 +41,7 @@ use crate::pipe_transport::{
};
};
use
crate
::
plain_transport
::{
PlainTransport
,
PlainTransportOptions
};
use
crate
::
plain_transport
::{
PlainTransport
,
PlainTransportOptions
};
use
crate
::
producer
::{
PipedProducer
,
Producer
,
ProducerId
,
ProducerOptions
,
WeakProducer
};
use
crate
::
producer
::{
PipedProducer
,
Producer
,
ProducerId
,
ProducerOptions
,
WeakProducer
};
use
crate
::
rtp_observer
::
RtpObserverId
;
use
crate
::
rtp_observer
::
{
RtpObserver
,
RtpObserverId
}
;
use
crate
::
rtp_parameters
::{
RtpCapabilities
,
RtpCapabilitiesFinalized
,
RtpCodecCapability
};
use
crate
::
rtp_parameters
::{
RtpCapabilities
,
RtpCapabilitiesFinalized
,
RtpCodecCapability
};
use
crate
::
sctp_parameters
::
NumSctpStreams
;
use
crate
::
sctp_parameters
::
NumSctpStreams
;
use
crate
::
transport
::{
use
crate
::
transport
::{
...
@@ -60,6 +60,7 @@ use parking_lot::{Mutex, RwLock};
...
@@ -60,6 +60,7 @@ use parking_lot::{Mutex, RwLock};
use
serde
::{
Deserialize
,
Serialize
};
use
serde
::{
Deserialize
,
Serialize
};
use
std
::
collections
::{
HashMap
,
HashSet
};
use
std
::
collections
::{
HashMap
,
HashSet
};
use
std
::
fmt
;
use
std
::
fmt
;
use
std
::
ops
::
Deref
;
use
std
::
sync
::
atomic
::{
AtomicBool
,
Ordering
};
use
std
::
sync
::
atomic
::{
AtomicBool
,
Ordering
};
use
std
::
sync
::{
Arc
,
Weak
};
use
std
::
sync
::{
Arc
,
Weak
};
use
thiserror
::
Error
;
use
thiserror
::
Error
;
...
@@ -287,6 +288,19 @@ pub enum NewTransport<'a> {
...
@@ -287,6 +288,19 @@ pub enum NewTransport<'a> {
WebRtc
(
&
'a
WebRtcTransport
),
WebRtc
(
&
'a
WebRtcTransport
),
}
}
impl
<
'a
>
Deref
for
NewTransport
<
'a
>
{
type
Target
=
dyn
Transport
;
fn
deref
(
&
self
)
->
&
Self
::
Target
{
match
self
{
Self
::
Direct
(
transport
)
=>
*
transport
as
&
Self
::
Target
,
Self
::
Pipe
(
transport
)
=>
*
transport
as
&
Self
::
Target
,
Self
::
Plain
(
transport
)
=>
*
transport
as
&
Self
::
Target
,
Self
::
WebRtc
(
transport
)
=>
*
transport
as
&
Self
::
Target
,
}
}
}
/// New RTP observer that was just created.
/// New RTP observer that was just created.
#[derive(Debug)]
#[derive(Debug)]
pub
enum
NewRtpObserver
<
'a
>
{
pub
enum
NewRtpObserver
<
'a
>
{
...
@@ -294,6 +308,16 @@ pub enum NewRtpObserver<'a> {
...
@@ -294,6 +308,16 @@ pub enum NewRtpObserver<'a> {
AudioLevel
(
&
'a
AudioLevelObserver
),
AudioLevel
(
&
'a
AudioLevelObserver
),
}
}
impl
<
'a
>
Deref
for
NewRtpObserver
<
'a
>
{
type
Target
=
dyn
RtpObserver
;
fn
deref
(
&
self
)
->
&
Self
::
Target
{
match
self
{
Self
::
AudioLevel
(
observer
)
=>
*
observer
as
&
Self
::
Target
,
}
}
}
struct
PipeTransportPair
{
struct
PipeTransportPair
{
local
:
PipeTransport
,
local
:
PipeTransport
,
remote
:
PipeTransport
,
remote
:
PipeTransport
,
...
...
rust/src/rtp_parameters.rs
浏览文件 @
05498223
...
@@ -664,7 +664,7 @@ pub enum RtcpFeedback {
...
@@ -664,7 +664,7 @@ pub enum RtcpFeedback {
}
}
impl
Serialize
for
RtcpFeedback
{
impl
Serialize
for
RtcpFeedback
{
fn
serialize
<
S
>
(
&
self
,
serializer
:
S
)
->
Result
<
<
S
as
Serializer
>
::
Ok
,
<
S
as
Serializer
>
::
Error
>
fn
serialize
<
S
>
(
&
self
,
serializer
:
S
)
->
Result
<
S
::
Ok
,
S
::
Error
>
where
where
S
:
Serializer
,
S
:
Serializer
,
{
{
...
@@ -700,7 +700,7 @@ impl Serialize for RtcpFeedback {
...
@@ -700,7 +700,7 @@ impl Serialize for RtcpFeedback {
}
}
impl
<
'de
>
Deserialize
<
'de
>
for
RtcpFeedback
{
impl
<
'de
>
Deserialize
<
'de
>
for
RtcpFeedback
{
fn
deserialize
<
D
>
(
deserializer
:
D
)
->
Result
<
Self
,
<
D
as
Deserializer
<
'de
>>
::
Error
>
fn
deserialize
<
D
>
(
deserializer
:
D
)
->
Result
<
Self
,
D
::
Error
>
where
where
D
:
Deserializer
<
'de
>
,
D
:
Deserializer
<
'de
>
,
{
{
...
...
rust/src/scalability_modes.rs
浏览文件 @
05498223
...
@@ -355,7 +355,7 @@ impl ScalabilityMode {
...
@@ -355,7 +355,7 @@ impl ScalabilityMode {
}
}
impl
<
'de
>
Deserialize
<
'de
>
for
ScalabilityMode
{
impl
<
'de
>
Deserialize
<
'de
>
for
ScalabilityMode
{
fn
deserialize
<
D
>
(
deserializer
:
D
)
->
Result
<
Self
,
<
D
as
Deserializer
<
'de
>>
::
Error
>
fn
deserialize
<
D
>
(
deserializer
:
D
)
->
Result
<
Self
,
D
::
Error
>
where
where
D
:
Deserializer
<
'de
>
,
D
:
Deserializer
<
'de
>
,
{
{
...
@@ -389,7 +389,7 @@ impl<'de> Deserialize<'de> for ScalabilityMode {
...
@@ -389,7 +389,7 @@ impl<'de> Deserialize<'de> for ScalabilityMode {
}
}
impl
Serialize
for
ScalabilityMode
{
impl
Serialize
for
ScalabilityMode
{
fn
serialize
<
S
>
(
&
self
,
serializer
:
S
)
->
Result
<
<
S
as
Serializer
>
::
Ok
,
<
S
as
Serializer
>
::
Error
>
fn
serialize
<
S
>
(
&
self
,
serializer
:
S
)
->
Result
<
S
::
Ok
,
S
::
Error
>
where
where
S
:
Serializer
,
S
:
Serializer
,
{
{
...
...
worker/Cargo.toml
浏览文件 @
05498223
[package]
[package]
name
=
"mediasoup-sys"
name
=
"mediasoup-sys"
version
=
"0.2.
1
"
version
=
"0.2.
2
"
description
=
"FFI bindings to C++ libmediasoup-worker"
description
=
"FFI bindings to C++ libmediasoup-worker"
authors
=
[
"Nazar Mokrynskyi <nazar@mokrynskyi.com>"
]
authors
=
[
"Nazar Mokrynskyi <nazar@mokrynskyi.com>"
]
edition
=
"2018"
edition
=
"2018"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论