Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
4b06142a
提交
4b06142a
authored
9月 15, 2017
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean and remove old/useless/dangerous RtpStream stuff
上级
9f2897d2
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
10 行增加
和
26 行删除
+10
-26
RtpStream.hpp
worker/include/RTC/RtpStream.hpp
+3
-4
RtpStreamRecv.hpp
worker/include/RTC/RtpStreamRecv.hpp
+2
-1
RtpStreamSend.hpp
worker/include/RTC/RtpStreamSend.hpp
+0
-1
Consumer.cpp
worker/src/RTC/Consumer.cpp
+5
-1
RtpStream.cpp
worker/src/RTC/RtpStream.cpp
+0
-6
RtpStreamRecv.cpp
worker/src/RTC/RtpStreamRecv.cpp
+0
-5
RtpStreamSend.cpp
worker/src/RTC/RtpStreamSend.cpp
+0
-8
没有找到文件。
worker/include/RTC/RtpStream.hpp
浏览文件 @
4b06142a
...
@@ -45,12 +45,13 @@ namespace RTC
...
@@ -45,12 +45,13 @@ namespace RTC
bool
IsHealthy
();
bool
IsHealthy
();
protected
:
protected
:
void
InitSeq
(
uint16_t
seq
);
bool
UpdateSeq
(
RTC
::
RtpPacket
*
packet
);
bool
UpdateSeq
(
RTC
::
RtpPacket
*
packet
);
private
:
void
InitSeq
(
uint16_t
seq
);
/* Pure virtual methods that must be implemented by the subclass. */
/* Pure virtual methods that must be implemented by the subclass. */
protected
:
protected
:
virtual
void
OnInitSeq
()
=
0
;
virtual
void
CheckHealth
()
=
0
;
virtual
void
CheckHealth
()
=
0
;
/* Pure virtual methods inherited from Timer::Listener. */
/* Pure virtual methods inherited from Timer::Listener. */
...
@@ -68,8 +69,6 @@ namespace RTC
...
@@ -68,8 +69,6 @@ namespace RTC
uint32_t
cycles
{
0
};
// Shifted count of seq. number cycles.
uint32_t
cycles
{
0
};
// Shifted count of seq. number cycles.
uint32_t
baseSeq
{
0
};
// Base seq number.
uint32_t
baseSeq
{
0
};
// Base seq number.
uint32_t
badSeq
{
0
};
// Last 'bad' seq number + 1.
uint32_t
badSeq
{
0
};
// Last 'bad' seq number + 1.
uint32_t
expectedPrior
{
0
};
// Packet expected at last interval.
uint32_t
receivedPrior
{
0
};
// Packet received at last interval.
// Others.
// Others.
uint32_t
maxTimestamp
{
0
};
// Highest timestamp seen.
uint32_t
maxTimestamp
{
0
};
// Highest timestamp seen.
Timer
*
healthCheckTimer
{
nullptr
};
Timer
*
healthCheckTimer
{
nullptr
};
...
...
worker/include/RTC/RtpStreamRecv.hpp
浏览文件 @
4b06142a
...
@@ -35,7 +35,6 @@ namespace RTC
...
@@ -35,7 +35,6 @@ namespace RTC
/* Pure virtual methods inherited from RtpStream. */
/* Pure virtual methods inherited from RtpStream. */
protected
:
protected
:
void
OnInitSeq
()
override
;
virtual
void
CheckHealth
()
override
;
virtual
void
CheckHealth
()
override
;
/* Pure virtual methods inherited from RTC::NackGenerator. */
/* Pure virtual methods inherited from RTC::NackGenerator. */
...
@@ -47,6 +46,8 @@ namespace RTC
...
@@ -47,6 +46,8 @@ namespace RTC
// Passed by argument.
// Passed by argument.
Listener
*
listener
{
nullptr
};
Listener
*
listener
{
nullptr
};
// Others.
// Others.
uint32_t
expectedPrior
{
0
};
// Packet expected at last interval.
uint32_t
receivedPrior
{
0
};
// Packet received at last interval.
uint32_t
lastSrTimestamp
{
0
};
// The middle 32 bits out of 64 in the NTP timestamp received in
uint32_t
lastSrTimestamp
{
0
};
// The middle 32 bits out of 64 in the NTP timestamp received in
// the most recent sender report.
// the most recent sender report.
uint64_t
lastSrReceived
{
0
};
// Wallclock time representing the most recent sender report
uint64_t
lastSrReceived
{
0
};
// Wallclock time representing the most recent sender report
...
...
worker/include/RTC/RtpStreamSend.hpp
浏览文件 @
4b06142a
...
@@ -44,7 +44,6 @@ namespace RTC
...
@@ -44,7 +44,6 @@ namespace RTC
/* Pure virtual methods inherited from RtpStream. */
/* Pure virtual methods inherited from RtpStream. */
protected
:
protected
:
void
OnInitSeq
()
override
;
void
CheckHealth
()
override
;
void
CheckHealth
()
override
;
private
:
private
:
...
...
worker/src/RTC/Consumer.cpp
浏览文件 @
4b06142a
...
@@ -223,7 +223,6 @@ namespace RTC
...
@@ -223,7 +223,6 @@ namespace RTC
return
;
return
;
this
->
syncRequired
=
true
;
this
->
syncRequired
=
true
;
this
->
rtpStream
->
ClearRetransmissionBuffer
();
}
}
void
Consumer
::
AddProfile
(
const
RTC
::
RtpEncodingParameters
::
Profile
profile
)
void
Consumer
::
AddProfile
(
const
RTC
::
RtpEncodingParameters
::
Profile
profile
)
...
@@ -361,6 +360,11 @@ namespace RTC
...
@@ -361,6 +360,11 @@ namespace RTC
// Resynchronize the stream.
// Resynchronize the stream.
this
->
syncRequired
=
true
;
this
->
syncRequired
=
true
;
// Clear RTP retransmission buffer to avoid congesting the receiver by
// sending useless retransmissions (now that we are sending a newer key
// frame).
this
->
rtpStream
->
ClearRetransmissionBuffer
();
}
}
}
}
...
...
worker/src/RTC/RtpStream.cpp
浏览文件 @
4b06142a
...
@@ -122,13 +122,7 @@ namespace RTC
...
@@ -122,13 +122,7 @@ namespace RTC
this
->
baseSeq
=
seq
;
this
->
baseSeq
=
seq
;
this
->
maxSeq
=
seq
;
this
->
maxSeq
=
seq
;
this
->
badSeq
=
RtpSeqMod
+
1
;
// So seq == badSeq is false.
this
->
badSeq
=
RtpSeqMod
+
1
;
// So seq == badSeq is false.
this
->
cycles
=
0
;
this
->
receivedPrior
=
0
;
this
->
expectedPrior
=
0
;
this
->
maxTimestamp
=
0
;
// Also reset the highest seen RTP timestamp.
this
->
maxTimestamp
=
0
;
// Also reset the highest seen RTP timestamp.
// Call the OnInitSeq method of the child.
OnInitSeq
();
}
}
bool
RtpStream
::
UpdateSeq
(
RTC
::
RtpPacket
*
packet
)
bool
RtpStream
::
UpdateSeq
(
RTC
::
RtpPacket
*
packet
)
...
...
worker/src/RTC/RtpStreamRecv.cpp
浏览文件 @
4b06142a
...
@@ -207,11 +207,6 @@ namespace RTC
...
@@ -207,11 +207,6 @@ namespace RTC
this
->
jitter
+=
(
1.
/
16.
)
*
(
static_cast
<
double
>
(
d
)
-
this
->
jitter
);
this
->
jitter
+=
(
1.
/
16.
)
*
(
static_cast
<
double
>
(
d
)
-
this
->
jitter
);
}
}
void
RtpStreamRecv
::
OnInitSeq
()
{
// Do nothing.
}
void
RtpStreamRecv
::
CheckHealth
()
void
RtpStreamRecv
::
CheckHealth
()
{
{
auto
now
=
DepLibUV
::
GetTime
();
auto
now
=
DepLibUV
::
GetTime
();
...
...
worker/src/RTC/RtpStreamSend.cpp
浏览文件 @
4b06142a
...
@@ -410,14 +410,6 @@ namespace RTC
...
@@ -410,14 +410,6 @@ namespace RTC
(
*
newBufferIt
).
packet
=
packet
->
Clone
(
store
);
(
*
newBufferIt
).
packet
=
packet
->
Clone
(
store
);
}
}
void
RtpStreamSend
::
OnInitSeq
()
{
MS_TRACE
();
// Clear the RTP buffer.
ClearRetransmissionBuffer
();
}
void
RtpStreamSend
::
CheckHealth
()
void
RtpStreamSend
::
CheckHealth
()
{
{
MS_TRACE
();
MS_TRACE
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论