Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
88048f63
提交
88048f63
authored
8月 31, 2021
作者:
Nazar Mokrynskyi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Various minor tweaks
上级
f4ee6358
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
12 行增加
和
14 行删除
+12
-14
mediasoup-rust.yaml
.github/workflows/mediasoup-rust.yaml
+3
-8
audio_level_observer.rs
rust/src/router/audio_level_observer.rs
+6
-3
consumer.rs
rust/src/router/consumer.rs
+1
-0
channel.rs
rust/src/worker/channel.rs
+1
-1
common.rs
rust/src/worker/common.rs
+0
-1
payload_channel.rs
rust/src/worker/payload_channel.rs
+1
-1
没有找到文件。
.github/workflows/mediasoup-rust.yaml
浏览文件 @
88048f63
...
...
@@ -22,17 +22,12 @@ jobs:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Node.js
uses
:
actions/setup-node@v2
with
:
node-version
:
'
14'
-
name
:
Rust toolchain
uses
:
actions-rs/toolchain@v1
with
:
toolchain
:
${{ matrix.rust }}
override
:
true
components
:
rustfmt, clippy
toolchain
:
${{ matrix.rust }}
override
:
true
components
:
rustfmt, clippy
-
name
:
Configure cache
uses
:
actions/cache@v2
...
...
rust/src/router/audio_level_observer.rs
浏览文件 @
88048f63
...
...
@@ -319,14 +319,17 @@ impl AudioLevelObserver {
Ok
(
notification
)
=>
match
notification
{
Notification
::
Volumes
(
volumes
)
=>
{
let
volumes
=
volumes
.i
nto_i
ter
()
.iter
()
.filter_map
(|
notification
|
{
let
VolumeNotification
{
producer_id
,
volume
,
}
=
notification
;
router
.get_producer
(
&
producer_id
)
.map
(|
producer
|
{
AudioLevelObserverVolume
{
producer
,
volume
}
router
.get_producer
(
producer_id
)
.map
(|
producer
|
{
AudioLevelObserverVolume
{
producer
,
volume
:
*
volume
,
}
})
})
.collect
::
<
Vec
<
_
>>
();
...
...
rust/src/router/consumer.rs
浏览文件 @
88048f63
...
...
@@ -350,6 +350,7 @@ struct Handlers {
producer_pause
:
Bag
<
Arc
<
dyn
Fn
()
+
Send
+
Sync
>>
,
producer_resume
:
Bag
<
Arc
<
dyn
Fn
()
+
Send
+
Sync
>>
,
score
:
Bag
<
Arc
<
dyn
Fn
(
&
ConsumerScore
)
+
Send
+
Sync
>
,
ConsumerScore
>
,
#[allow(clippy
::
type_complexity)]
layers_change
:
Bag
<
Arc
<
dyn
Fn
(
&
Option
<
ConsumerLayers
>
)
+
Send
+
Sync
>
,
Option
<
ConsumerLayers
>>
,
trace
:
Bag
<
Arc
<
dyn
Fn
(
&
ConsumerTraceEventData
)
+
Send
+
Sync
>
,
ConsumerTraceEventData
>
,
producer_close
:
BagOnce
<
Box
<
dyn
FnOnce
()
+
Send
>>
,
...
...
rust/src/worker/channel.rs
浏览文件 @
88048f63
...
...
@@ -156,7 +156,7 @@ impl Channel {
move
|
handle
|
{
let
mut
outgoing_message_buffer
=
outgoing_message_buffer
.lock
();
if
outgoing_message_buffer
.handle
.is_none
()
{
outgoing_message_buffer
.handle
.
insert
(
handle
);
outgoing_message_buffer
.handle
.
replace
(
handle
);
}
outgoing_message_buffer
.messages
.pop_front
()
...
...
rust/src/worker/common.rs
浏览文件 @
88048f63
...
...
@@ -6,7 +6,6 @@ use uuid::Uuid;
struct
EventHandlersList
<
F
>
{
index
:
usize
,
#[allow(clippy
::
type_complexity)]
callbacks
:
HashMap
<
usize
,
F
>
,
}
...
...
rust/src/worker/payload_channel.rs
浏览文件 @
88048f63
...
...
@@ -120,7 +120,7 @@ impl PayloadChannel {
move
|
handle
|
{
let
mut
outgoing_message_buffer
=
outgoing_message_buffer
.lock
();
if
outgoing_message_buffer
.handle
.is_none
()
{
outgoing_message_buffer
.handle
.
insert
(
handle
);
outgoing_message_buffer
.handle
.
replace
(
handle
);
}
outgoing_message_buffer
.messages
.pop_front
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论