Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
13d5c106
提交
13d5c106
authored
9月 03, 2017
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve logs
上级
c540a972
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18 行增加
和
14 行删除
+18
-14
Consumer.cpp
worker/src/RTC/Consumer.cpp
+2
-2
NackGenerator.cpp
worker/src/RTC/NackGenerator.cpp
+3
-3
Producer.cpp
worker/src/RTC/Producer.cpp
+7
-5
RtpStreamSend.cpp
worker/src/RTC/RtpStreamSend.cpp
+1
-1
Transport.cpp
worker/src/RTC/Transport.cpp
+5
-3
没有找到文件。
worker/src/RTC/Consumer.cpp
浏览文件 @
13d5c106
...
@@ -336,13 +336,13 @@ namespace RTC
...
@@ -336,13 +336,13 @@ namespace RTC
{
{
if
(
!
useNack
&&
fb
.
type
==
"nack"
)
if
(
!
useNack
&&
fb
.
type
==
"nack"
)
{
{
MS_DEBUG_
TAG
(
rtcp
,
"enabling NACK reception
"
);
MS_DEBUG_
2TAGS
(
rtcp
,
rtx
,
"NACK supported
"
);
useNack
=
true
;
useNack
=
true
;
}
}
if
(
!
usePli
&&
fb
.
type
==
"nack"
&&
fb
.
parameter
==
"pli"
)
if
(
!
usePli
&&
fb
.
type
==
"nack"
&&
fb
.
parameter
==
"pli"
)
{
{
MS_DEBUG_TAG
(
rtcp
,
"
enabling PLI reception
"
);
MS_DEBUG_TAG
(
rtcp
,
"
PLI supported
"
);
usePli
=
true
;
usePli
=
true
;
}
}
...
...
worker/src/RTC/NackGenerator.cpp
浏览文件 @
13d5c106
...
@@ -69,7 +69,7 @@ namespace RTC
...
@@ -69,7 +69,7 @@ namespace RTC
{
{
MS_DEBUG_TAG
(
MS_DEBUG_TAG
(
rtx
,
rtx
,
"
nack
ed packet received [ssrc:%"
PRIu32
", seq:%"
PRIu16
"]"
,
"
NACK
ed packet received [ssrc:%"
PRIu32
", seq:%"
PRIu16
"]"
,
packet
->
GetSsrc
(),
packet
->
GetSsrc
(),
packet
->
GetSequenceNumber
());
packet
->
GetSequenceNumber
());
...
@@ -80,7 +80,7 @@ namespace RTC
...
@@ -80,7 +80,7 @@ namespace RTC
{
{
MS_DEBUG_TAG
(
MS_DEBUG_TAG
(
rtx
,
rtx
,
"out of order packet received [ssrc:%"
PRIu32
", seq:%"
PRIu16
"]"
,
"out of order
RTX
packet received [ssrc:%"
PRIu32
", seq:%"
PRIu16
"]"
,
packet
->
GetSsrc
(),
packet
->
GetSsrc
(),
packet
->
GetSequenceNumber
());
packet
->
GetSequenceNumber
());
}
}
...
@@ -115,7 +115,7 @@ namespace RTC
...
@@ -115,7 +115,7 @@ namespace RTC
if
(
this
->
nackList
.
size
()
+
numNewNacks
>
MaxNackPackets
)
if
(
this
->
nackList
.
size
()
+
numNewNacks
>
MaxNackPackets
)
{
{
MS_DEBUG_TAG
(
rtx
,
"
nack
list too large, clearing it and requesting a full frame"
);
MS_DEBUG_TAG
(
rtx
,
"
NACK
list too large, clearing it and requesting a full frame"
);
this
->
nackList
.
clear
();
this
->
nackList
.
clear
();
this
->
listener
->
OnNackGeneratorFullFrameRequired
();
this
->
listener
->
OnNackGeneratorFullFrameRequired
();
...
...
worker/src/RTC/Producer.cpp
浏览文件 @
13d5c106
...
@@ -373,7 +373,7 @@ namespace RTC
...
@@ -373,7 +373,7 @@ namespace RTC
}
}
else
if
(
this
->
fullFrameRequestBlockTimer
->
IsActive
())
else
if
(
this
->
fullFrameRequestBlockTimer
->
IsActive
())
{
{
MS_DEBUG_TAG
(
rt
x
,
"blocking full frame request until timer expires"
);
MS_DEBUG_TAG
(
rt
cp
,
"blocking full frame request until timer expires"
);
// Set flag.
// Set flag.
this
->
isFullFrameRequested
=
true
;
this
->
isFullFrameRequested
=
true
;
...
@@ -458,19 +458,19 @@ namespace RTC
...
@@ -458,19 +458,19 @@ namespace RTC
{
{
if
(
!
useNack
&&
fb
.
type
==
"nack"
)
if
(
!
useNack
&&
fb
.
type
==
"nack"
)
{
{
MS_DEBUG_
TAG
(
rtcp
,
"enabling NACK generation
"
);
MS_DEBUG_
2TAGS
(
rtcp
,
rtx
,
"NACK supported
"
);
useNack
=
true
;
useNack
=
true
;
}
}
if
(
!
usePli
&&
fb
.
type
==
"nack"
&&
fb
.
parameter
==
"pli"
)
if
(
!
usePli
&&
fb
.
type
==
"nack"
&&
fb
.
parameter
==
"pli"
)
{
{
MS_DEBUG_TAG
(
rtcp
,
"
enabling PLI generation
"
);
MS_DEBUG_TAG
(
rtcp
,
"
PLI supported
"
);
usePli
=
true
;
usePli
=
true
;
}
}
else
if
(
!
useRemb
&&
fb
.
type
==
"goog-remb"
)
else
if
(
!
useRemb
&&
fb
.
type
==
"goog-remb"
)
{
{
MS_DEBUG_TAG
(
rbe
,
"
enabling REMB
"
);
MS_DEBUG_TAG
(
rbe
,
"
REMB supported
"
);
useRemb
=
true
;
useRemb
=
true
;
}
}
...
@@ -592,6 +592,8 @@ namespace RTC
...
@@ -592,6 +592,8 @@ namespace RTC
{
{
MS_TRACE
();
MS_TRACE
();
MS_DEBUG_TAG
(
rtcp
,
"sending PLI"
);
RTC
::
RTCP
::
FeedbackPsPliPacket
packet
(
0
,
rtpStream
->
GetSsrc
());
RTC
::
RTCP
::
FeedbackPsPliPacket
packet
(
0
,
rtpStream
->
GetSsrc
());
packet
.
Serialize
(
RTC
::
RTCP
::
Buffer
);
packet
.
Serialize
(
RTC
::
RTCP
::
Buffer
);
...
@@ -611,7 +613,7 @@ namespace RTC
...
@@ -611,7 +613,7 @@ namespace RTC
if
(
!
this
->
isFullFrameRequested
)
if
(
!
this
->
isFullFrameRequested
)
return
;
return
;
MS_DEBUG_TAG
(
rt
x
,
"requesting full frame after timer expires"
);
MS_DEBUG_TAG
(
rt
cp
,
"requesting full frame after timer expires"
);
RequestFullFrame
();
RequestFullFrame
();
}
}
...
...
worker/src/RTC/RtpStreamSend.cpp
浏览文件 @
13d5c106
...
@@ -461,7 +461,7 @@ namespace RTC
...
@@ -461,7 +461,7 @@ namespace RTC
{
{
MS_TRACE
();
MS_TRACE
();
MS_ASSERT
(
this
->
hasRtx
,
"
rtx is
not enabled on this stream"
);
MS_ASSERT
(
this
->
hasRtx
,
"
RTX
not enabled on this stream"
);
packet
->
RtxEncode
(
this
->
rtxPayloadType
,
this
->
rtxSsrc
,
++
this
->
rtxSeq
);
packet
->
RtxEncode
(
this
->
rtxPayloadType
,
this
->
rtxSsrc
,
++
this
->
rtxSeq
);
}
}
...
...
worker/src/RTC/Transport.cpp
浏览文件 @
13d5c106
...
@@ -622,7 +622,8 @@ namespace RTC
...
@@ -622,7 +622,8 @@ namespace RTC
if
(
consumer
->
kind
==
RTC
::
Media
::
Kind
::
VIDEO
)
if
(
consumer
->
kind
==
RTC
::
Media
::
Kind
::
VIDEO
)
{
{
MS_DEBUG_TAG
(
MS_DEBUG_TAG
(
rtx
,
"requesting full frame for new Consumer since Transport already connected"
);
rtcp
,
"requesting full frame for new Consumer since Transport already connected"
);
}
}
consumer
->
RequestFullFrame
();
consumer
->
RequestFullFrame
();
...
@@ -721,7 +722,8 @@ namespace RTC
...
@@ -721,7 +722,8 @@ namespace RTC
this
->
iceServer
->
GetState
()
==
RTC
::
IceServer
::
IceState
::
COMPLETED
)
this
->
iceServer
->
GetState
()
==
RTC
::
IceServer
::
IceState
::
COMPLETED
)
{
{
MS_DEBUG_TAG
(
MS_DEBUG_TAG
(
dtls
,
"transition from DTLS local role 'auto' to 'server' and running DTLS transport"
);
dtls
,
"transition from DTLS local role 'auto' to 'server' and running DTLS transport"
);
this
->
dtlsLocalRole
=
RTC
::
DtlsTransport
::
Role
::
SERVER
;
this
->
dtlsLocalRole
=
RTC
::
DtlsTransport
::
Role
::
SERVER
;
this
->
dtlsTransport
->
Run
(
RTC
::
DtlsTransport
::
Role
::
SERVER
);
this
->
dtlsTransport
->
Run
(
RTC
::
DtlsTransport
::
Role
::
SERVER
);
...
@@ -1267,7 +1269,7 @@ namespace RTC
...
@@ -1267,7 +1269,7 @@ namespace RTC
for
(
auto
*
consumer
:
this
->
consumers
)
for
(
auto
*
consumer
:
this
->
consumers
)
{
{
if
(
consumer
->
kind
==
RTC
::
Media
::
Kind
::
VIDEO
)
if
(
consumer
->
kind
==
RTC
::
Media
::
Kind
::
VIDEO
)
MS_DEBUG_TAG
(
rt
x
,
"Transport connected, requesting full frame for Consumers"
);
MS_DEBUG_TAG
(
rt
cp
,
"Transport connected, requesting full frame for Consumers"
);
consumer
->
RequestFullFrame
();
consumer
->
RequestFullFrame
();
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论