Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
0b322bf5
提交
0b322bf5
authored
4月 15, 2019
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Just set "abs-send-time" RTP extension if simulcast or SVC.
上级
dd28d401
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
6 行删除
+24
-6
Producer.cpp
worker/src/RTC/Producer.cpp
+2
-0
Transport.cpp
worker/src/RTC/Transport.cpp
+1
-1
WebRtcTransport.cpp
worker/src/RTC/WebRtcTransport.cpp
+21
-5
没有找到文件。
worker/src/RTC/Producer.cpp
浏览文件 @
0b322bf5
...
...
@@ -885,6 +885,8 @@ namespace RTC
}
// Add http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time.
// NOTE: Just if this is simulcast or SVC.
if
(
this
->
type
==
RTC
::
RtpParameters
::
Type
::
SIMULCAST
||
this
->
type
==
RTC
::
RtpParameters
::
Type
::
SVC
)
{
extenLen
=
3u
;
...
...
worker/src/RTC/Transport.cpp
浏览文件 @
0b322bf5
...
...
@@ -871,7 +871,7 @@ namespace RTC
{
MS_TRACE
();
// Update http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time.
// Update http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
if present
.
{
uint8_t
extenLen
;
uint8_t
*
extenValue
=
packet
->
GetExtension
(
...
...
worker/src/RTC/WebRtcTransport.cpp
浏览文件 @
0b322bf5
...
...
@@ -8,6 +8,7 @@
#include "Utils.hpp"
#include "Channel/Notifier.hpp"
#include "RTC/RTCP/FeedbackPsRemb.hpp"
#include "RTC/RtpDictionaries.hpp"
#include <cmath> // std::pow()
#include <iterator> // std::ostream_iterator
#include <sstream> // std::ostringstream
...
...
@@ -747,7 +748,7 @@ namespace RTC
}
}
void
WebRtcTransport
::
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
,
RTC
::
Consumer
*
/*consumer*/
)
void
WebRtcTransport
::
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
,
RTC
::
Consumer
*
consumer
)
{
MS_TRACE
();
...
...
@@ -770,12 +771,22 @@ namespace RTC
this
->
iceSelectedTuple
->
Send
(
data
,
len
);
// Feed the REMB client.
if
(
this
->
rembClient
)
// Feed the REMB client if this is a simulcast or SVC Consumer.
// clang-format off
if
(
this
->
rembClient
&&
(
consumer
->
GetType
()
==
RTC
::
RtpParameters
::
Type
::
SIMULCAST
||
consumer
->
GetType
()
==
RTC
::
RtpParameters
::
Type
::
SVC
)
)
// clang-format on
{
static
uint32_t
absSendTime
;
uint8_t
extenLen
;
uint8_t
*
extenValue
=
packet
->
GetExtension
(
static_cast
<
uint8_t
>
(
RTC
::
RtpHeaderExtensionUri
::
Type
::
ABS_SEND_TIME
),
extenLen
);
if
(
packet
->
ReadAbsSendTime
(
absSendTime
)
)
if
(
extenValue
&&
extenLen
==
3
)
this
->
rembClient
->
ReceiveRtpPacket
(
packet
);
}
}
...
...
@@ -1116,12 +1127,17 @@ namespace RTC
// Set REMB client bitrate estimator:
// - if not already set, and
// - Consumer is simulcast or SVC, and
// - there is abs-send-time RTP header extension, and
// - there is "remb" in codecs RTCP feedback.
//
// clang-format off
if
(
!
this
->
rembClient
&&
(
consumer
->
GetType
()
==
RTC
::
RtpParameters
::
Type
::
SIMULCAST
||
consumer
->
GetType
()
==
RTC
::
RtpParameters
::
Type
::
SVC
)
&&
rtpHeaderExtensionIds
.
absSendTime
!=
0u
&&
std
::
any_of
(
codecs
.
begin
(),
codecs
.
end
(),
[](
const
RTC
::
RtpCodecParameters
&
codec
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论