Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
c0e3a623
Unverified
提交
c0e3a623
authored
4月 09, 2024
作者:
Iñaki Baz Castillo
提交者:
GitHub
4月 09, 2024
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid abseil containers with SeqManager compare functions (#1369)
上级
1a507ecc
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
36 行增加
和
9 行删除
+36
-9
codeql.yaml
.github/workflows/codeql.yaml
+1
-0
mediasoup-node.yaml
.github/workflows/mediasoup-node.yaml
+4
-0
mediasoup-rust.yaml
.github/workflows/mediasoup-rust.yaml
+5
-1
mediasoup-worker-fuzzer.yaml
.github/workflows/mediasoup-worker-fuzzer.yaml
+4
-0
mediasoup-worker-prebuild.yaml
.github/workflows/mediasoup-worker-prebuild.yaml
+1
-0
mediasoup-worker.yaml
.github/workflows/mediasoup-worker.yaml
+4
-0
NackGenerator.hpp
worker/include/RTC/NackGenerator.hpp
+3
-5
SenderBandwidthEstimator.hpp
worker/include/RTC/SenderBandwidthEstimator.hpp
+1
-2
WebRtcServer.hpp
worker/include/RTC/WebRtcServer.hpp
+2
-0
AudioLevelObserver.cpp
worker/src/RTC/AudioLevelObserver.cpp
+1
-0
WebRtcServer.cpp
worker/src/RTC/WebRtcServer.cpp
+10
-1
没有找到文件。
.github/workflows/codeql.yaml
浏览文件 @
c0e3a623
...
@@ -42,6 +42,7 @@ jobs:
...
@@ -42,6 +42,7 @@ jobs:
env
:
env
:
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_BUILDTYPE
:
'
Release'
steps
:
steps
:
-
name
:
Checkout repository
-
name
:
Checkout repository
...
...
.github/workflows/mediasoup-node.yaml
浏览文件 @
c0e3a623
...
@@ -29,12 +29,16 @@ jobs:
...
@@ -29,12 +29,16 @@ jobs:
node
:
20
node
:
20
-
os
:
windows-2022
-
os
:
windows-2022
node
:
20
node
:
20
build-type
:
-
Release
-
Debug
runs-on
:
${{ matrix.ci.os }}
runs-on
:
${{ matrix.ci.os }}
env
:
env
:
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_BUILDTYPE
:
${{ matrix.build-type }}
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
...
.github/workflows/mediasoup-rust.yaml
浏览文件 @
c0e3a623
...
@@ -49,8 +49,12 @@ jobs:
...
@@ -49,8 +49,12 @@ jobs:
-
name
:
cargo clippy
-
name
:
cargo clippy
run
:
cargo clippy --all-targets -- -D warnings
run
:
cargo clippy --all-targets -- -D warnings
# NOTE: In Windows this will build and test libmediasoupworker in release
# mode twice since build.rs doesn't allow debug mode for Windows.
-
name
:
cargo test
-
name
:
cargo test
run
:
cargo test --verbose
run
:
|
cargo test --verbose
cargo test --release --verbose
-
name
:
cargo doc
-
name
:
cargo doc
run
:
cargo doc --locked --all --no-deps --lib
run
:
cargo doc --locked --all --no-deps --lib
...
...
.github/workflows/mediasoup-worker-fuzzer.yaml
浏览文件 @
c0e3a623
...
@@ -20,6 +20,9 @@ jobs:
...
@@ -20,6 +20,9 @@ jobs:
cc
:
clang
cc
:
clang
cxx
:
clang++
cxx
:
clang++
arch
:
arm64
arch
:
arm64
build-type
:
-
Release
-
Debug
runs-on
:
${{ matrix.build.os }}
runs-on
:
${{ matrix.build.os }}
...
@@ -28,6 +31,7 @@ jobs:
...
@@ -28,6 +31,7 @@ jobs:
CXX
:
${{ matrix.build.cxx }}
CXX
:
${{ matrix.build.cxx }}
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_BUILDTYPE
:
${{ matrix.build-type }}
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
...
.github/workflows/mediasoup-worker-prebuild.yaml
浏览文件 @
c0e3a623
...
@@ -51,6 +51,7 @@ jobs:
...
@@ -51,6 +51,7 @@ jobs:
CXX
:
${{ matrix.build.cxx }}
CXX
:
${{ matrix.build.cxx }}
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_BUILDTYPE
:
'
Release'
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
...
.github/workflows/mediasoup-worker.yaml
浏览文件 @
c0e3a623
...
@@ -53,6 +53,9 @@ jobs:
...
@@ -53,6 +53,9 @@ jobs:
# A single Node.js version should be fine for C++.
# A single Node.js version should be fine for C++.
node
:
node
:
-
20
-
20
build-type
:
-
Release
-
Debug
runs-on
:
${{ matrix.build.os }}
runs-on
:
${{ matrix.build.os }}
...
@@ -61,6 +64,7 @@ jobs:
...
@@ -61,6 +64,7 @@ jobs:
CXX
:
${{ matrix.build.cxx }}
CXX
:
${{ matrix.build.cxx }}
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
true'
MEDIASOUP_BUILDTYPE
:
${{ matrix.build-type }}
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
...
...
worker/include/RTC/NackGenerator.hpp
浏览文件 @
c0e3a623
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
#include "RTC/RtpPacket.hpp"
#include "RTC/RtpPacket.hpp"
#include "RTC/SeqManager.hpp"
#include "RTC/SeqManager.hpp"
#include "handles/TimerHandle.hpp"
#include "handles/TimerHandle.hpp"
#include <absl/container/btree_map.h>
#include <absl/container/btree_set.h>
#include <map>
#include <map>
#include <set>
#include <set>
#include <vector>
#include <vector>
...
@@ -80,9 +78,9 @@ namespace RTC
...
@@ -80,9 +78,9 @@ namespace RTC
// Allocated by this.
// Allocated by this.
TimerHandle
*
timer
{
nullptr
};
TimerHandle
*
timer
{
nullptr
};
// Others.
// Others.
absl
::
btree_
map
<
uint16_t
,
NackInfo
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
nackList
;
std
::
map
<
uint16_t
,
NackInfo
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
nackList
;
absl
::
btree_
set
<
uint16_t
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
keyFrameList
;
std
::
set
<
uint16_t
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
keyFrameList
;
absl
::
btree_
set
<
uint16_t
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
recoveredList
;
std
::
set
<
uint16_t
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
recoveredList
;
bool
started
{
false
};
bool
started
{
false
};
uint16_t
lastSeq
{
0u
};
// Seq number of last valid packet.
uint16_t
lastSeq
{
0u
};
// Seq number of last valid packet.
uint32_t
rtt
{
0u
};
// Round trip time (ms).
uint32_t
rtt
{
0u
};
// Round trip time (ms).
...
...
worker/include/RTC/SenderBandwidthEstimator.hpp
浏览文件 @
c0e3a623
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
#include "RTC/RateCalculator.hpp"
#include "RTC/RateCalculator.hpp"
#include "RTC/SeqManager.hpp"
#include "RTC/SeqManager.hpp"
#include "RTC/TrendCalculator.hpp"
#include "RTC/TrendCalculator.hpp"
#include <absl/container/btree_map.h>
#include <map>
#include <map>
namespace
RTC
namespace
RTC
...
@@ -103,7 +102,7 @@ namespace RTC
...
@@ -103,7 +102,7 @@ namespace RTC
uint32_t
initialAvailableBitrate
{
0u
};
uint32_t
initialAvailableBitrate
{
0u
};
uint32_t
availableBitrate
{
0u
};
uint32_t
availableBitrate
{
0u
};
uint64_t
lastAvailableBitrateEventAtMs
{
0u
};
uint64_t
lastAvailableBitrateEventAtMs
{
0u
};
absl
::
btree_
map
<
uint16_t
,
SentInfo
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
sentInfos
;
std
::
map
<
uint16_t
,
SentInfo
,
RTC
::
SeqManager
<
uint16_t
>::
SeqLowerThan
>
sentInfos
;
float
rtt
{
0
};
// Round trip time in ms.
float
rtt
{
0
};
// Round trip time in ms.
CummulativeResult
cummulativeResult
;
CummulativeResult
cummulativeResult
;
CummulativeResult
probationCummulativeResult
;
CummulativeResult
probationCummulativeResult
;
...
...
worker/include/RTC/WebRtcServer.hpp
浏览文件 @
c0e3a623
...
@@ -106,6 +106,8 @@ namespace RTC
...
@@ -106,6 +106,8 @@ namespace RTC
absl
::
flat_hash_map
<
std
::
string
,
RTC
::
WebRtcTransport
*>
mapLocalIceUsernameFragmentWebRtcTransport
;
absl
::
flat_hash_map
<
std
::
string
,
RTC
::
WebRtcTransport
*>
mapLocalIceUsernameFragmentWebRtcTransport
;
// Map of WebRtcTransports indexed by TransportTuple.hash.
// Map of WebRtcTransports indexed by TransportTuple.hash.
absl
::
flat_hash_map
<
uint64_t
,
RTC
::
WebRtcTransport
*>
mapTupleWebRtcTransport
;
absl
::
flat_hash_map
<
uint64_t
,
RTC
::
WebRtcTransport
*>
mapTupleWebRtcTransport
;
// Whether the destructor has been called.
bool
closing
{
false
};
};
};
}
// namespace RTC
}
// namespace RTC
...
...
worker/src/RTC/AudioLevelObserver.cpp
浏览文件 @
c0e3a623
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include "Logger.hpp"
#include "Logger.hpp"
#include "MediaSoupErrors.hpp"
#include "MediaSoupErrors.hpp"
#include "RTC/RtpDictionaries.hpp"
#include "RTC/RtpDictionaries.hpp"
#include <absl/container/btree_map.h>
#include <cmath> // std::lround()
#include <cmath> // std::lround()
namespace
RTC
namespace
RTC
...
...
worker/src/RTC/WebRtcServer.cpp
浏览文件 @
c0e3a623
...
@@ -232,6 +232,8 @@ namespace RTC
...
@@ -232,6 +232,8 @@ namespace RTC
{
{
MS_TRACE
();
MS_TRACE
();
this
->
closing
=
true
;
this
->
shared
->
channelMessageRegistrator
->
UnregisterHandler
(
this
->
id
);
this
->
shared
->
channelMessageRegistrator
->
UnregisterHandler
(
this
->
id
);
for
(
auto
&
item
:
this
->
udpSocketOrTcpServers
)
for
(
auto
&
item
:
this
->
udpSocketOrTcpServers
)
...
@@ -497,7 +499,14 @@ namespace RTC
...
@@ -497,7 +499,14 @@ namespace RTC
this
->
webRtcTransports
.
find
(
webRtcTransport
)
!=
this
->
webRtcTransports
.
end
(),
this
->
webRtcTransports
.
find
(
webRtcTransport
)
!=
this
->
webRtcTransports
.
end
(),
"WebRtcTransport not handled"
);
"WebRtcTransport not handled"
);
this
->
webRtcTransports
.
erase
(
webRtcTransport
);
// NOTE: If WebRtcServer is closing then do not remove the transport from
// the set since it would modify the set while the WebRtcServer destructor
// is iterating it.
// See: https://github.com/versatica/mediasoup/pull/1369#issuecomment-2044672247
if
(
!
this
->
closing
)
{
this
->
webRtcTransports
.
erase
(
webRtcTransport
);
}
}
}
inline
void
WebRtcServer
::
OnWebRtcTransportLocalIceUsernameFragmentAdded
(
inline
void
WebRtcServer
::
OnWebRtcTransportLocalIceUsernameFragmentAdded
(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论