Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
15e77ee9
提交
15e77ee9
authored
9月 20, 2017
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
worker: rename TransportOptions to Options.
Node: delete consumer/transport if room.createRtpStreamer() fails.
上级
73cb56a4
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
16 行增加
和
8 行删除
+16
-8
Room.js
lib/Room.js
+8
-0
PlainRtpTransport.hpp
worker/include/RTC/PlainRtpTransport.hpp
+2
-2
WebRtcTransport.hpp
worker/include/RTC/WebRtcTransport.hpp
+2
-2
PlainRtpTransport.cpp
worker/src/RTC/PlainRtpTransport.cpp
+1
-1
Router.cpp
worker/src/RTC/Router.cpp
+2
-2
WebRtcTransport.cpp
worker/src/RTC/WebRtcTransport.cpp
+1
-1
没有找到文件。
lib/Room.js
浏览文件 @
15e77ee9
...
@@ -296,6 +296,14 @@ class Room extends EnhancedEventEmitter
...
@@ -296,6 +296,14 @@ class Room extends EnhancedEventEmitter
const
rtpStreamer
=
new
plugins
.
RtpStreamer
(
consumer
,
plainRtpTransport
);
const
rtpStreamer
=
new
plugins
.
RtpStreamer
(
consumer
,
plainRtpTransport
);
return
rtpStreamer
;
return
rtpStreamer
;
})
.
catch
(()
=>
{
if
(
plainRtpTransport
)
plainRtpTransport
.
close
();
if
(
consumer
)
consumer
.
close
();
});
});
}
}
...
...
worker/include/RTC/PlainRtpTransport.hpp
浏览文件 @
15e77ee9
...
@@ -14,7 +14,7 @@ namespace RTC
...
@@ -14,7 +14,7 @@ namespace RTC
class
PlainRtpTransport
:
public
RTC
::
Transport
,
public
RTC
::
UdpSocket
::
Listener
class
PlainRtpTransport
:
public
RTC
::
Transport
,
public
RTC
::
UdpSocket
::
Listener
{
{
public
:
public
:
struct
Transport
Options
struct
Options
{
{
std
::
string
remoteIP
;
std
::
string
remoteIP
;
uint16_t
remotePort
;
uint16_t
remotePort
;
...
@@ -25,7 +25,7 @@ namespace RTC
...
@@ -25,7 +25,7 @@ namespace RTC
RTC
::
Transport
::
Listener
*
listener
,
RTC
::
Transport
::
Listener
*
listener
,
Channel
::
Notifier
*
notifier
,
Channel
::
Notifier
*
notifier
,
uint32_t
transportId
,
uint32_t
transportId
,
Transport
Options
&
options
);
Options
&
options
);
private
:
private
:
~
PlainRtpTransport
();
~
PlainRtpTransport
();
...
...
worker/include/RTC/WebRtcTransport.hpp
浏览文件 @
15e77ee9
...
@@ -29,7 +29,7 @@ namespace RTC
...
@@ -29,7 +29,7 @@ namespace RTC
public
RTC
::
RemoteBitrateEstimator
::
Listener
public
RTC
::
RemoteBitrateEstimator
::
Listener
{
{
public
:
public
:
struct
Transport
Options
struct
Options
{
{
bool
udp
{
true
};
bool
udp
{
true
};
bool
tcp
{
true
};
bool
tcp
{
true
};
...
@@ -44,7 +44,7 @@ namespace RTC
...
@@ -44,7 +44,7 @@ namespace RTC
RTC
::
Transport
::
Listener
*
listener
,
RTC
::
Transport
::
Listener
*
listener
,
Channel
::
Notifier
*
notifier
,
Channel
::
Notifier
*
notifier
,
uint32_t
transportId
,
uint32_t
transportId
,
Transport
Options
&
options
);
Options
&
options
);
private
:
private
:
~
WebRtcTransport
();
~
WebRtcTransport
();
...
...
worker/src/RTC/PlainRtpTransport.cpp
浏览文件 @
15e77ee9
...
@@ -18,7 +18,7 @@ namespace RTC
...
@@ -18,7 +18,7 @@ namespace RTC
RTC
::
Transport
::
Listener
*
listener
,
RTC
::
Transport
::
Listener
*
listener
,
Channel
::
Notifier
*
notifier
,
Channel
::
Notifier
*
notifier
,
uint32_t
transportId
,
uint32_t
transportId
,
Transport
Options
&
options
)
Options
&
options
)
:
RTC
::
Transport
::
Transport
(
listener
,
notifier
,
transportId
)
:
RTC
::
Transport
::
Transport
(
listener
,
notifier
,
transportId
)
{
{
MS_TRACE
();
MS_TRACE
();
...
...
worker/src/RTC/Router.cpp
浏览文件 @
15e77ee9
...
@@ -195,7 +195,7 @@ namespace RTC
...
@@ -195,7 +195,7 @@ namespace RTC
return
;
return
;
}
}
RTC
::
WebRtcTransport
::
Transport
Options
options
;
RTC
::
WebRtcTransport
::
Options
options
;
if
(
request
->
data
[
JsonStringUdp
].
isBool
())
if
(
request
->
data
[
JsonStringUdp
].
isBool
())
options
.
udp
=
request
->
data
[
JsonStringUdp
].
asBool
();
options
.
udp
=
request
->
data
[
JsonStringUdp
].
asBool
();
...
@@ -254,7 +254,7 @@ namespace RTC
...
@@ -254,7 +254,7 @@ namespace RTC
return
;
return
;
}
}
RTC
::
PlainRtpTransport
::
Transport
Options
options
;
RTC
::
PlainRtpTransport
::
Options
options
;
if
(
!
request
->
data
[
JsonStringRemoteIP
].
isString
())
if
(
!
request
->
data
[
JsonStringRemoteIP
].
isString
())
MS_THROW_ERROR
(
"missing remoteIP"
);
MS_THROW_ERROR
(
"missing remoteIP"
);
...
...
worker/src/RTC/WebRtcTransport.cpp
浏览文件 @
15e77ee9
...
@@ -43,7 +43,7 @@ namespace RTC
...
@@ -43,7 +43,7 @@ namespace RTC
RTC
::
Transport
::
Listener
*
listener
,
RTC
::
Transport
::
Listener
*
listener
,
Channel
::
Notifier
*
notifier
,
Channel
::
Notifier
*
notifier
,
uint32_t
transportId
,
uint32_t
transportId
,
Transport
Options
&
options
)
Options
&
options
)
:
RTC
::
Transport
::
Transport
(
listener
,
notifier
,
transportId
)
:
RTC
::
Transport
::
Transport
(
listener
,
notifier
,
transportId
)
{
{
MS_TRACE
();
MS_TRACE
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论