Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
443ccf08
提交
443ccf08
authored
2月 22, 2023
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RtpStreamSend: forgot to rename exported const everywhere
上级
601fb375
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
RtpStreamSend.hpp
worker/include/RTC/RtpStreamSend.hpp
+3
-3
TestRtpStreamSend.cpp
worker/test/src/RTC/TestRtpStreamSend.cpp
+4
-4
没有找到文件。
worker/include/RTC/RtpStreamSend.hpp
浏览文件 @
443ccf08
...
@@ -11,9 +11,9 @@ namespace RTC
...
@@ -11,9 +11,9 @@ namespace RTC
{
{
public
:
public
:
// Minimum retransmission buffer size (ms).
// Minimum retransmission buffer size (ms).
const
static
uint32_t
MinRetransmissionDelay
;
const
static
uint32_t
MinRetransmissionDelay
Ms
;
// Maximum retransmission buffer size (ms).
// Maximum retransmission buffer size (ms).
const
static
uint32_t
MaxRetransmissionDelay
;
const
static
uint32_t
MaxRetransmissionDelay
Ms
;
public
:
public
:
class
Listener
:
public
RTC
::
RtpStream
::
Listener
class
Listener
:
public
RTC
::
RtpStream
::
Listener
...
@@ -46,7 +46,7 @@ namespace RTC
...
@@ -46,7 +46,7 @@ namespace RTC
// Special container that stores `StorageItem*` elements addressable by
// Special container that stores `StorageItem*` elements addressable by
// their `uint16_t` sequence number, while only taking as little memory as
// their `uint16_t` sequence number, while only taking as little memory as
// necessary to store the range covering a maximum of
// necessary to store the range covering a maximum of
//
`MaxRetransmissionDelay`
milliseconds.
//
MaxRetransmissionDelayMs
milliseconds.
class
StorageItemBuffer
class
StorageItemBuffer
{
{
public
:
public
:
...
...
worker/test/src/RTC/TestRtpStreamSend.cpp
浏览文件 @
443ccf08
...
@@ -319,11 +319,11 @@ SCENARIO("NACK and RTP packets retransmission", "[rtp][rtcp][nack]")
...
@@ -319,11 +319,11 @@ SCENARIO("NACK and RTP packets retransmission", "[rtp][rtcp][nack]")
delete
stream2
;
delete
stream2
;
}
}
SECTION
(
"packets get retransmitted as long as they don't exceed MaxRetransmissionDelay"
)
SECTION
(
"packets get retransmitted as long as they don't exceed MaxRetransmissionDelay
Ms
"
)
{
{
uint32_t
clockRate
=
90000
;
uint32_t
clockRate
=
90000
;
uint32_t
firstTs
=
1533790901
;
uint32_t
firstTs
=
1533790901
;
uint32_t
diffTs
=
RtpStreamSend
::
MaxRetransmissionDelay
*
clockRate
/
1000
;
uint32_t
diffTs
=
RtpStreamSend
::
MaxRetransmissionDelay
Ms
*
clockRate
/
1000
;
uint32_t
secondTs
=
firstTs
+
diffTs
;
uint32_t
secondTs
=
firstTs
+
diffTs
;
auto
*
packet1
=
CreateRtpPacket
(
rtpBuffer1
,
21006
,
firstTs
);
auto
*
packet1
=
CreateRtpPacket
(
rtpBuffer1
,
21006
,
firstTs
);
...
@@ -371,11 +371,11 @@ SCENARIO("NACK and RTP packets retransmission", "[rtp][rtcp][nack]")
...
@@ -371,11 +371,11 @@ SCENARIO("NACK and RTP packets retransmission", "[rtp][rtcp][nack]")
delete
stream
;
delete
stream
;
}
}
SECTION
(
"packets don't get retransmitted if MaxRetransmissionDelay is exceeded"
)
SECTION
(
"packets don't get retransmitted if MaxRetransmissionDelay
Ms
is exceeded"
)
{
{
uint32_t
clockRate
=
90000
;
uint32_t
clockRate
=
90000
;
uint32_t
firstTs
=
1533790901
;
uint32_t
firstTs
=
1533790901
;
uint32_t
diffTs
=
RtpStreamSend
::
MaxRetransmissionDelay
*
clockRate
/
1000
;
uint32_t
diffTs
=
RtpStreamSend
::
MaxRetransmissionDelay
Ms
*
clockRate
/
1000
;
uint32_t
secondTs
=
firstTs
+
diffTs
;
uint32_t
secondTs
=
firstTs
+
diffTs
;
auto
*
packet1
=
CreateRtpPacket
(
rtpBuffer1
,
21006
,
firstTs
);
auto
*
packet1
=
CreateRtpPacket
(
rtpBuffer1
,
21006
,
firstTs
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论