Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
df77ff1d
提交
df77ff1d
authored
9月 01, 2017
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Consumer: don't ask for full frame when the Producer is resumed (the Producer already does that).
上级
e67eea48
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
6 行删除
+9
-6
TODO_V2.md
TODO_V2.md
+2
-0
Consumer.hpp
worker/include/RTC/Consumer.hpp
+5
-4
Producer.cpp
worker/src/RTC/Producer.cpp
+2
-2
没有找到文件。
TODO_V2.md
浏览文件 @
df77ff1d
...
@@ -23,3 +23,5 @@
...
@@ -23,3 +23,5 @@
*
Check H246 parameters.
*
Check H246 parameters.
*
JS: Remove tons of useless debugs (for example in
`Peer._createProducer()`
).
*
JS: Remove tons of useless debugs (for example in
`Peer._createProducer()`
).
*
Producer JS API to request fullframe.
worker/include/RTC/Consumer.hpp
浏览文件 @
df77ff1d
...
@@ -56,7 +56,7 @@ namespace RTC
...
@@ -56,7 +56,7 @@ namespace RTC
void
CreateRtpStream
(
RTC
::
RtpEncodingParameters
&
encoding
);
void
CreateRtpStream
(
RTC
::
RtpEncodingParameters
&
encoding
);
void
RetransmitRtpPacket
(
RTC
::
RtpPacket
*
packet
);
void
RetransmitRtpPacket
(
RTC
::
RtpPacket
*
packet
);
void
Pause
();
void
Pause
();
void
Resume
();
void
Resume
(
bool
sourceWasResumed
=
false
);
public
:
public
:
// Passed by argument.
// Passed by argument.
...
@@ -136,7 +136,7 @@ namespace RTC
...
@@ -136,7 +136,7 @@ namespace RTC
this
->
notifier
->
Emit
(
this
->
consumerId
,
"sourceresumed"
);
this
->
notifier
->
Emit
(
this
->
consumerId
,
"sourceresumed"
);
if
(
wasPaused
)
if
(
wasPaused
)
Resume
();
Resume
(
true
);
}
}
inline
uint32_t
Consumer
::
GetTransmissionRate
(
uint64_t
now
)
inline
uint32_t
Consumer
::
GetTransmissionRate
(
uint64_t
now
)
...
@@ -152,12 +152,13 @@ namespace RTC
...
@@ -152,12 +152,13 @@ namespace RTC
this
->
rtpStream
->
Reset
();
this
->
rtpStream
->
Reset
();
}
}
inline
void
Consumer
::
Resume
()
inline
void
Consumer
::
Resume
(
bool
sourceWasResumed
)
{
{
if
(
!
IsEnabled
())
if
(
!
IsEnabled
())
return
;
return
;
RequestFullFrame
();
if
(
!
sourceWasResumed
)
RequestFullFrame
();
}
}
}
// namespace RTC
}
// namespace RTC
...
...
worker/src/RTC/Producer.cpp
浏览文件 @
df77ff1d
...
@@ -170,12 +170,12 @@ namespace RTC
...
@@ -170,12 +170,12 @@ namespace RTC
if
(
wasPaused
)
if
(
wasPaused
)
{
{
RequestFullFrame
(
true
);
for
(
auto
&
listener
:
this
->
listeners
)
for
(
auto
&
listener
:
this
->
listeners
)
{
{
listener
->
OnProducerResumed
(
this
);
listener
->
OnProducerResumed
(
this
);
}
}
RequestFullFrame
(
true
);
}
}
break
;
break
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论