Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
baea9fad
提交
baea9fad
authored
4月 04, 2019
作者:
José Luis Millán
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use more specific signatures in producer methods
上级
e5e4515e
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
38 行增加
和
37 行删除
+38
-37
Consumer.hpp
worker/include/RTC/Consumer.hpp
+4
-5
PipeConsumer.hpp
worker/include/RTC/PipeConsumer.hpp
+3
-3
Producer.hpp
worker/include/RTC/Producer.hpp
+2
-3
Router.hpp
worker/include/RTC/Router.hpp
+2
-2
SimpleConsumer.hpp
worker/include/RTC/SimpleConsumer.hpp
+3
-3
SimulcastConsumer.hpp
worker/include/RTC/SimulcastConsumer.hpp
+3
-3
Transport.hpp
worker/include/RTC/Transport.hpp
+4
-4
PipeConsumer.cpp
worker/src/RTC/PipeConsumer.cpp
+3
-3
Producer.cpp
worker/src/RTC/Producer.cpp
+1
-1
Router.cpp
worker/src/RTC/Router.cpp
+5
-2
SimpleConsumer.cpp
worker/src/RTC/SimpleConsumer.cpp
+3
-3
SimulcastConsumer.cpp
worker/src/RTC/SimulcastConsumer.cpp
+3
-3
Transport.cpp
worker/src/RTC/Transport.cpp
+2
-2
没有找到文件。
worker/include/RTC/Consumer.hpp
浏览文件 @
baea9fad
...
...
@@ -11,7 +11,7 @@
#include "RTC/RtpDictionaries.hpp"
#include "RTC/RtpHeaderExtensionIds.hpp"
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/RtpStream
Recv
.hpp"
#include <string>
#include <unordered_set>
#include <vector>
...
...
@@ -55,10 +55,9 @@ namespace RTC
virtual
uint32_t
UseBandwidth
(
uint32_t
availableBandwidth
)
=
0
;
void
ProducerPaused
();
void
ProducerResumed
();
// TODO: Update signature to RTC::RtpStreamRecv.
virtual
void
ProducerRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
=
0
;
virtual
void
ProducerNewRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
=
0
;
virtual
void
ProducerRtpStreamScore
(
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
=
0
;
virtual
void
ProducerRtpStream
(
RTC
::
RtpStreamRecv
*
rtpStream
,
uint32_t
mappedSsrc
)
=
0
;
virtual
void
ProducerNewRtpStream
(
RTC
::
RtpStreamRecv
*
rtpStream
,
uint32_t
mappedSsrc
)
=
0
;
virtual
void
ProducerRtpStreamScore
(
RTC
::
RtpStreamRecv
*
rtpStream
,
uint8_t
score
)
=
0
;
void
ProducerClosed
();
virtual
void
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
)
=
0
;
virtual
void
GetRtcp
(
RTC
::
RTCP
::
CompoundPacket
*
packet
,
uint64_t
now
)
=
0
;
...
...
worker/include/RTC/PipeConsumer.hpp
浏览文件 @
baea9fad
...
...
@@ -18,9 +18,9 @@ namespace RTC
void
FillJsonScore
(
json
&
jsonObject
)
const
override
;
void
HandleRequest
(
Channel
::
Request
*
request
)
override
;
uint32_t
UseBandwidth
(
uint32_t
availableBandwidth
)
override
;
void
ProducerRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerNewRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerRtpStreamScore
(
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
override
;
void
ProducerRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerNewRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerRtpStreamScore
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
override
;
void
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
)
override
;
void
GetRtcp
(
RTC
::
RTCP
::
CompoundPacket
*
packet
,
uint64_t
now
)
override
;
void
NeedWorstRemoteFractionLost
(
uint32_t
mappedSsrc
,
uint8_t
&
worstRemoteFractionLost
)
override
;
...
...
worker/include/RTC/Producer.hpp
浏览文件 @
baea9fad
...
...
@@ -11,7 +11,6 @@
#include "RTC/RtpDictionaries.hpp"
#include "RTC/RtpHeaderExtensionIds.hpp"
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpStream.hpp"
#include "RTC/RtpStreamRecv.hpp"
#include <map>
#include <string>
...
...
@@ -28,9 +27,9 @@ namespace RTC
virtual
void
OnProducerPaused
(
RTC
::
Producer
*
producer
)
=
0
;
virtual
void
OnProducerResumed
(
RTC
::
Producer
*
producer
)
=
0
;
virtual
void
OnProducerNewRtpStream
(
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
=
0
;
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
=
0
;
virtual
void
OnProducerRtpStreamScore
(
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
=
0
;
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
=
0
;
virtual
void
OnProducerRtpPacketReceived
(
RTC
::
Producer
*
producer
,
RTC
::
RtpPacket
*
packet
)
=
0
;
virtual
void
OnProducerSendRtcpPacket
(
RTC
::
Producer
*
producer
,
RTC
::
RTCP
::
Packet
*
packet
)
=
0
;
virtual
void
OnProducerNeedWorstRemoteFractionLost
(
...
...
worker/include/RTC/Router.hpp
浏览文件 @
baea9fad
...
...
@@ -44,7 +44,7 @@ namespace RTC
void
OnTransportProducerNewRtpStream
(
RTC
::
Transport
*
transport
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
OnTransportProducerRtpPacketReceived
(
RTC
::
Transport
*
transport
,
RTC
::
Producer
*
producer
,
RTC
::
RtpPacket
*
packet
)
override
;
...
...
@@ -56,7 +56,7 @@ namespace RTC
void
OnTransportProducerRtpStreamScore
(
RTC
::
Transport
*
transport
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
override
;
void
OnTransportNewConsumer
(
RTC
::
Transport
*
transport
,
RTC
::
Consumer
*
consumer
,
std
::
string
&
producerId
)
override
;
...
...
worker/include/RTC/SimpleConsumer.hpp
浏览文件 @
baea9fad
...
...
@@ -19,9 +19,9 @@ namespace RTC
void
FillJsonScore
(
json
&
jsonObject
)
const
override
;
void
HandleRequest
(
Channel
::
Request
*
request
)
override
;
uint32_t
UseBandwidth
(
uint32_t
availableBandwidth
)
override
;
void
ProducerRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerNewRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerRtpStreamScore
(
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
override
;
void
ProducerRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerNewRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerRtpStreamScore
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
override
;
void
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
)
override
;
void
GetRtcp
(
RTC
::
RTCP
::
CompoundPacket
*
packet
,
uint64_t
now
)
override
;
void
NeedWorstRemoteFractionLost
(
uint32_t
mappedSsrc
,
uint8_t
&
worstRemoteFractionLost
)
override
;
...
...
worker/include/RTC/SimulcastConsumer.hpp
浏览文件 @
baea9fad
...
...
@@ -20,9 +20,9 @@ namespace RTC
void
FillJsonScore
(
json
&
jsonObject
)
const
override
;
void
HandleRequest
(
Channel
::
Request
*
request
)
override
;
uint32_t
UseBandwidth
(
uint32_t
availableBandwidth
)
override
;
void
ProducerRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerNewRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerRtpStreamScore
(
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
override
;
void
ProducerRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerNewRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
ProducerRtpStreamScore
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
override
;
void
SendRtpPacket
(
RTC
::
RtpPacket
*
packet
)
override
;
void
GetRtcp
(
RTC
::
RTCP
::
CompoundPacket
*
packet
,
uint64_t
now
)
override
;
void
NeedWorstRemoteFractionLost
(
uint32_t
mappedSsrc
,
uint8_t
&
worstRemoteFractionLost
)
override
;
...
...
worker/include/RTC/Transport.hpp
浏览文件 @
baea9fad
...
...
@@ -35,12 +35,12 @@ namespace RTC
virtual
void
OnTransportProducerNewRtpStream
(
RTC
::
Transport
*
transport
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
=
0
;
virtual
void
OnTransportProducerRtpStreamScore
(
RTC
::
Transport
*
transport
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
=
0
;
virtual
void
OnTransportProducerRtpPacketReceived
(
RTC
::
Transport
*
transport
,
RTC
::
Producer
*
producer
,
RTC
::
RtpPacket
*
packet
)
=
0
;
...
...
@@ -101,9 +101,9 @@ namespace RTC
void
OnProducerPaused
(
RTC
::
Producer
*
producer
)
override
;
void
OnProducerResumed
(
RTC
::
Producer
*
producer
)
override
;
void
OnProducerNewRtpStream
(
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
override
;
void
OnProducerRtpStreamScore
(
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
override
;
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
override
;
void
OnProducerRtpPacketReceived
(
RTC
::
Producer
*
producer
,
RTC
::
RtpPacket
*
packet
)
override
;
void
OnProducerSendRtcpPacket
(
RTC
::
Producer
*
producer
,
RTC
::
RTCP
::
Packet
*
packet
)
override
;
void
OnProducerNeedWorstRemoteFractionLost
(
...
...
worker/src/RTC/PipeConsumer.cpp
浏览文件 @
baea9fad
...
...
@@ -90,21 +90,21 @@ namespace RTC
return
0
;
}
void
PipeConsumer
::
ProducerRtpStream
(
RTC
::
RtpStream
*
/*rtpStream*/
,
uint32_t
/*mappedSsrc*/
)
void
PipeConsumer
::
ProducerRtpStream
(
RTC
::
RtpStream
Recv
*
/*rtpStream*/
,
uint32_t
/*mappedSsrc*/
)
{
MS_TRACE
();
// Do nothing.
}
void
PipeConsumer
::
ProducerNewRtpStream
(
RTC
::
RtpStream
*
/*rtpStream*/
,
uint32_t
/*mappedSsrc*/
)
void
PipeConsumer
::
ProducerNewRtpStream
(
RTC
::
RtpStream
Recv
*
/*rtpStream*/
,
uint32_t
/*mappedSsrc*/
)
{
MS_TRACE
();
// Do nothing.
}
void
PipeConsumer
::
ProducerRtpStreamScore
(
RTC
::
RtpStream
*
/*rtpStream*/
,
uint8_t
/*score*/
)
void
PipeConsumer
::
ProducerRtpStreamScore
(
RTC
::
RtpStream
Recv
*
/*rtpStream*/
,
uint8_t
/*score*/
)
{
MS_TRACE
();
...
...
worker/src/RTC/Producer.cpp
浏览文件 @
baea9fad
...
...
@@ -972,7 +972,7 @@ namespace RTC
MS_TRACE
();
// Notify the listener.
this
->
listener
->
OnProducerRtpStreamScore
(
this
,
rtpStream
,
score
);
this
->
listener
->
OnProducerRtpStreamScore
(
this
,
static_cast
<
RTC
::
RtpStreamRecv
*>
(
rtpStream
)
,
score
);
// Emit the score event.
EmitScore
();
...
...
worker/src/RTC/Router.cpp
浏览文件 @
baea9fad
...
...
@@ -549,7 +549,10 @@ namespace RTC
}
inline
void
Router
::
OnTransportProducerNewRtpStream
(
RTC
::
Transport
*
/*transport*/
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
RTC
::
Transport
*
/*transport*/
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStreamRecv
*
rtpStream
,
uint32_t
mappedSsrc
)
{
MS_TRACE
();
...
...
@@ -562,7 +565,7 @@ namespace RTC
}
inline
void
Router
::
OnTransportProducerRtpStreamScore
(
RTC
::
Transport
*
/*transport*/
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
RTC
::
Transport
*
/*transport*/
,
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
{
MS_TRACE
();
...
...
worker/src/RTC/SimpleConsumer.cpp
浏览文件 @
baea9fad
...
...
@@ -109,7 +109,7 @@ namespace RTC
return
0
;
}
void
SimpleConsumer
::
ProducerRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
/*mappedSsrc*/
)
void
SimpleConsumer
::
ProducerRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
/*mappedSsrc*/
)
{
MS_TRACE
();
...
...
@@ -119,7 +119,7 @@ namespace RTC
EmitScore
();
}
void
SimpleConsumer
::
ProducerNewRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
/*mappedSsrc*/
)
void
SimpleConsumer
::
ProducerNewRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
/*mappedSsrc*/
)
{
MS_TRACE
();
...
...
@@ -136,7 +136,7 @@ namespace RTC
EmitScore
();
}
void
SimpleConsumer
::
ProducerRtpStreamScore
(
RTC
::
RtpStream
*
/*rtpStream*/
,
uint8_t
/*score*/
)
void
SimpleConsumer
::
ProducerRtpStreamScore
(
RTC
::
RtpStream
Recv
*
/*rtpStream*/
,
uint8_t
/*score*/
)
{
MS_TRACE
();
...
...
worker/src/RTC/SimulcastConsumer.cpp
浏览文件 @
baea9fad
...
...
@@ -209,7 +209,7 @@ namespace RTC
return
0
;
}
void
SimulcastConsumer
::
ProducerRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
void
SimulcastConsumer
::
ProducerRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
{
MS_TRACE
();
...
...
@@ -225,7 +225,7 @@ namespace RTC
EmitScore
();
}
void
SimulcastConsumer
::
ProducerNewRtpStream
(
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
void
SimulcastConsumer
::
ProducerNewRtpStream
(
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
{
MS_TRACE
();
...
...
@@ -263,7 +263,7 @@ namespace RTC
EmitScore
();
}
void
SimulcastConsumer
::
ProducerRtpStreamScore
(
RTC
::
RtpStream
*
/*rtpStream*/
,
uint8_t
/*score*/
)
void
SimulcastConsumer
::
ProducerRtpStreamScore
(
RTC
::
RtpStream
Recv
*
/*rtpStream*/
,
uint8_t
/*score*/
)
{
MS_TRACE
();
...
...
worker/src/RTC/Transport.cpp
浏览文件 @
baea9fad
...
...
@@ -826,7 +826,7 @@ namespace RTC
}
inline
void
Transport
::
OnProducerNewRtpStream
(
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint32_t
mappedSsrc
)
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint32_t
mappedSsrc
)
{
MS_TRACE
();
...
...
@@ -834,7 +834,7 @@ namespace RTC
}
inline
void
Transport
::
OnProducerRtpStreamScore
(
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
*
rtpStream
,
uint8_t
score
)
RTC
::
Producer
*
producer
,
RTC
::
RtpStream
Recv
*
rtpStream
,
uint8_t
score
)
{
MS_TRACE
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论