Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
61b34928
提交
61b34928
authored
9月 27, 2017
作者:
José Luis Millán
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Worker:Test update test-nack to the latests changes on RtpStreamSend
上级
1ecb0415
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
+9
-1
test-nack.cpp
worker/test/test-nack.cpp
+9
-1
没有找到文件。
worker/test/test-nack.cpp
浏览文件 @
61b34928
...
@@ -11,6 +11,14 @@ using namespace RTC;
...
@@ -11,6 +11,14 @@ using namespace RTC;
// Can retransmit up to 17 RTP packets.
// Can retransmit up to 17 RTP packets.
static
std
::
vector
<
RtpPacket
*>
rtpRetransmissionContainer
(
18
);
static
std
::
vector
<
RtpPacket
*>
rtpRetransmissionContainer
(
18
);
class
RtpStreamSendListener
:
public
RtpStream
::
Listener
{
public
:
void
OnRtpStreamDied
(
RTC
::
RtpStream
*
/*rtpStream*/
)
{};
void
OnRtpStreamHealthy
(
RTC
::
RtpStream
*
/*rtpStream*/
)
{};
void
OnRtpStreamUnhealthy
(
RTC
::
RtpStream
*
/*rtpStream*/
)
{};
}
rtpStreamSendListener
;
SCENARIO
(
"NACK and RTP packets retransmission"
,
"[rtp][rtcp]"
)
SCENARIO
(
"NACK and RTP packets retransmission"
,
"[rtp][rtcp]"
)
{
{
SECTION
(
"receive NACK and get retransmitted packets"
)
SECTION
(
"receive NACK and get retransmitted packets"
)
...
@@ -76,7 +84,7 @@ SCENARIO("NACK and RTP packets retransmission", "[rtp][rtcp]")
...
@@ -76,7 +84,7 @@ SCENARIO("NACK and RTP packets retransmission", "[rtp][rtcp]")
params
.
useNack
=
true
;
params
.
useNack
=
true
;
// Create a RtpStreamSend.
// Create a RtpStreamSend.
RtpStreamSend
*
stream
=
new
RtpStreamSend
(
params
,
200
);
RtpStreamSend
*
stream
=
new
RtpStreamSend
(
&
rtpStreamSendListener
,
params
,
200
);
// Receive all the packets in order into the stream.
// Receive all the packets in order into the stream.
stream
->
ReceivePacket
(
packet1
);
stream
->
ReceivePacket
(
packet1
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论