Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
0b8eb6a7
Commit
0b8eb6a7
authored
May 07, 2021
by
xia-chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善rtp ext解析代码
parent
f263dd5d
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
37 行增加
和
1 行删除
+37
-1
webrtc/RtpExt.cpp
+0
-0
webrtc/RtpExt.h
+34
-0
webrtc/Sdp.cpp
+3
-1
没有找到文件。
webrtc/RtpExt.cpp
查看文件 @
0b8eb6a7
差异被折叠。
点击展开。
webrtc/RtpExt.h
查看文件 @
0b8eb6a7
...
...
@@ -30,11 +30,17 @@ enum class RtpExtType : uint8_t {
sdes_repaired_rtp_stream_id
=
6
,
video_timing
=
7
,
color_space
=
8
,
//for firefox
csrc_audio_level
=
9
,
//svc ?
framemarking
=
10
,
video_content_type
=
11
,
playout_delay
=
12
,
video_orientation
=
13
,
toffset
=
14
,
reserved
=
15
,
// e2e ?
encrypt
};
class
RtcMedia
;
...
...
@@ -51,6 +57,34 @@ public:
string
dumpString
()
const
;
uint8_t
getAudioLevel
(
bool
*
vad
)
const
;
uint32_t
getAbsSendTime
()
const
;
uint16_t
getTransportCCSeq
()
const
;
const
string
&
getSdesMid
()
const
;
string
getRtpStreamId
()
const
;
string
getRepairedRtpStreamId
()
const
;
void
getVideoTiming
(
uint8_t
&
flags
,
uint16_t
&
encode_start
,
uint16_t
&
encode_finish
,
uint16_t
&
packetization_complete
,
uint16_t
&
last_pkt_left_pacer
,
uint16_t
&
reserved_net0
,
uint16_t
&
reserved_net1
)
const
;
uint8_t
getVideoContentType
()
const
;
void
getVideoOrientation
(
bool
&
camera_bit
,
bool
&
flip_bit
,
bool
&
first_rotation
,
bool
&
second_rotation
)
const
;
void
getPlayoutDelay
(
uint16_t
&
min_delay
,
uint16_t
&
max_delay
)
const
;
uint32_t
getTransmissionOffset
()
const
;
uint8_t
getFramemarkingTID
()
const
;
private
:
RtpExtType
_type
;
uint8_t
_id
;
...
...
webrtc/Sdp.cpp
查看文件 @
0b8eb6a7
...
...
@@ -1297,6 +1297,7 @@ void RtcConfigure::RtcTrackConfigure::setDefaultSetting(TrackType type){
rtcp_fb
=
{
SdpConst
::
kTWCCRtcpFb
,
SdpConst
::
kRembRtcpFb
};
extmap
=
{
RtpExtType
::
ssrc_audio_level
,
RtpExtType
::
csrc_audio_level
,
RtpExtType
::
abs_send_time
,
RtpExtType
::
transport_cc
,
RtpExtType
::
sdes_mid
,
...
...
@@ -1320,7 +1321,8 @@ void RtcConfigure::RtcTrackConfigure::setDefaultSetting(TrackType type){
RtpExtType
::
video_content_type
,
RtpExtType
::
playout_delay
,
RtpExtType
::
video_orientation
,
RtpExtType
::
toffset
RtpExtType
::
toffset
,
RtpExtType
::
framemarking
};
break
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论