Commit Graph

116 Commits

Author SHA1 Message Date
alex
4152dcd409
AI automatically translates all comments in the code into English (#3917) 2024-09-19 14:53:50 +08:00
xiongziliang
7aaafa18e7 Format code 2024-03-23 23:08:10 +08:00
xia-chu
db4c570d19 WebRTC audio preferred PCMA 2024-03-22 20:50:07 +08:00
夏楚
bbe8f4a018
release 8.0 2023-12-09 16:23:51 +08:00
LeiZhi.Mai
586bb73912
兼容webrtc offer sdp中重复行的情况 (#3038) 2023-12-01 10:44:59 +08:00
Dw9
81966f2c48
修复未开启sctp时,webrtc datachannel sdp交换相关bug (#2791)
主要优化如下:
1、通过设置port为0 声明不支持datachannel(而不是inactive)。
2、设置正确的ice用户名和密码,防止ice建联失败。
3、group attribute移除datachannel的mid。
3、datachannel 相关sdp移除rtcp相关描述。
2023-08-29 11:22:30 +08:00
夏楚
09aa38334e
H264 rtsp sdp生成正确的packetization-mode (#2691) 2023-07-22 17:30:39 +08:00
ahaooahaz
37cb29fa8e
increase sdp rel-addr length limit: #2330 #2302 2023-03-13 17:38:08 +08:00
xiongguangjie
a7c7470d46 compitable for rtc ipv6 candidate and ice-lite sdp global session 2023-03-08 19:33:52 +08:00
Dw9
9d40c82141 修复手机推rtc,其他协议拉流画面旋转 2022-12-08 21:52:55 +08:00
mtdxc
754073918a
Header refactor (#2115)
* 优化MultiMediaSourceMuxer头文件包含

* 将MediaSinkDelegate和Demux移到MediaSink中

* MediaSource头文件重构, 独立出PacketCache.h
精简Frame和Track的头文件

* Rtmp头文件重构

* Rtsp头文件重构

* webrtc头文件重构

* 规范.h头文件包含,并将其移到.cpp中:
- 尽量不包含Common\config.h
- Util\File.h
- Rtsp/RtspPlayer.h
- Rtmp/RtmpPlayer.h

* 删除多余的Stamp.h和Base64包含
2022-11-29 11:07:13 +08:00
ziyue
d910c80a00 优化webrtc iceandidate端口相关代码 2022-11-19 09:46:04 +08:00
xiongguangjie
0d6fa1281a add rtc tcp port config and ignore candidate when port is 0 2022-11-19 01:51:53 +08:00
ziyue
fc433de9ac 适配webrtc AV1编码: #2091 2022-11-18 16:47:02 +08:00
ziyue
0b355759de 整理webrtc相关代码命名空间 2022-09-18 21:03:05 +08:00
Dw9
b7ef766701
支持单独的datachannel通道 (#1894)
* 支持单独的datachannel 通道

* 当仅有datachannel时 ,忽略rtp和rtcp超时

* 单独开启datachannel时,通过dtls包维持心跳

Co-authored-by: xiongziliang <771730766@qq.com>
2022-08-20 10:28:19 +08:00
gongluck
0764e48f6c
兼容安卓平台,to_string模板处理pt值 2022-08-18 19:13:22 +08:00
bin-work
2e1a45895a
修改webrtc码率带宽约束字段 (#1771, #1768) 2022-07-07 16:44:42 +08:00
sha-long-ba-si
3a9408bcec
webrtc answer m-lines次序错误 (#1695)
Co-authored-by: james <mrjamesli@126.com>
2022-06-11 12:26:31 +08:00
xiongziliang
b0f0bdb6ae 调整优化webrtc sdp处理相关代码 2022-05-20 22:14:21 +08:00
cqm
2b29e58f71 sdp代码重构, 增加addItem和addAttr 2022-05-18 18:56:09 +08:00
cqm
9d9315d8c6 支持SDP munging方式simulicast 2022-05-18 09:21:21 +08:00
xiongziliang
b0f15c9647 sctp关闭编译时,关闭datachannel相关功能 2022-05-13 20:45:27 +08:00
xiongziliang
1ed793fe97 初步实现webrtc datachannel sdp握手 2022-04-03 17:12:23 +08:00
xiongziliang
03dfcbad36 优化webrtc sdp处理相关代码 2022-04-03 17:10:39 +08:00
xiongziliang
aef2ae65af 优化代码 2022-03-12 19:29:58 +08:00
xiongziliang
b8277974aa webrtc sdp msid不存在时,不添加 2022-03-12 19:27:32 +08:00
zx
cd4e772985
remove dumplicate line rtc_media.type
remove  dumplicate line 

`rtc_media.type = mline.type;`
2022-03-04 16:18:26 +08:00
夏楚
c72cf4cbcc
整理命名空间 (#1409)
* feat: remove using namespace mediakit in header files.

(cherry picked from commit d44aeb339a8a0e1f0455be82b21fe4b1b536299f)

* feat: remove using namespace mediakit in FFmpegSource.h

* feat: remove using namespace mediakit in RtpExt.h

* feat: remove using namespace mediakit in header files.

* feat: remove using namespace std in header files.

* feat: remove using namespace std in header files when zltoolkit remove std in header

* 补充命名空间

* 整理命名空间

* 整理命名空间2

* 修复macos ci

* 修复编译问题

* 修复编译问题2

* 修复编译问题3

Co-authored-by: Johnny <hellojinqiang@gmail.com>
Co-authored-by: Xiaofeng Wang <wasphin@gmail.com>
2022-02-02 20:34:50 +08:00
xiongguangjie
c1b78629e1
fix rtc play signal stream only audio or video failed (#1239) 2021-11-25 20:42:51 +08:00
ziyue
fb97c2139a Refine: 优化webrtc sdp处理代码 2021-11-18 21:36:10 +08:00
ziyue
daa06ffd4f Refine: 精简webrtc sdp生成ssrc line相关代码 2021-11-18 21:25:14 +08:00
johzzy
f7963a9032
调整 addSSRCItem 函数 (#1224)
* update readme.

* refactor(sdp): update addSSRCItem.

* refactor(sdp): remove addSSRCItem.

* refactor(sdp): 调整逻辑,生成a=ssrc-group:FID字段
2021-11-18 20:55:18 +08:00
ziyue
a7d6e2ba38 RTC: webrtc偏好音视频codec可配置(#1214) 2021-11-15 10:33:16 +08:00
ziyue
9433a0c383 重写webrtc sdp校验逻辑,确保无有效track时抛异常:#1157 2021-10-16 16:46:05 +08:00
ziyue
f0e896a5e2 双向会话时,确保收发ssrc一致 2021-10-16 10:51:48 +08:00
ziyue
8531b5e1cb webrtc codec类型不支持时,设置为inactive类型 2021-10-15 16:15:23 +08:00
ziyue
e4cdc5f213 webrtc extmap方向匹配失败时,不添加进sdp 2021-10-14 16:22:13 +08:00
ziyue
b2bec61932 webrtc rtp扩展(extmap)支持方向设定 2021-10-14 16:18:15 +08:00
ziyue
043c1bab72 回复rtc sdp时,不拷贝ssrc相关信息 2021-10-14 14:59:37 +08:00
ziyue
acbe99cb43 整理优化webrtc ssrc与simulcast相关代码 2021-10-12 21:26:01 +08:00
Johnny
0f4289a584 Refine(webrtc/sdp): 函数 WebRtcTransport::onCheckSdp() 拆分为WebRtcTransport::onCheckAnswer() 和 RtcSession::checkSdp() 2021-10-12 16:15:37 +08:00
ziyue
d62cdd81b8 webrtc不支持的mline设置为inactive 2021-07-07 17:58:29 +08:00
ziyue
6220db77e8 修复webrtc纯音频推流时不能注册流的bug:#963 2021-07-07 14:47:41 +08:00
ziyue
3165a2f81c 修改服务器版本信息声明相关代码 2021-06-29 11:16:05 +08:00
ziyue
7a02d2c8d6 不支持的rtp方向,answer sdp设置为inactive 2021-06-24 13:09:51 +08:00
wxf
f5786fcba3 兼容 glibc < 2.18
* https://stackoverflow.com/a/8132440/5218590
* https://sourceware.org/bugzilla/show_bug.cgi?id=15366
2021-06-23 10:39:08 +08:00
wxf
5fc5a9ef5f webrtc: 修正 sdp 中 candidate 解析问题
https://datatracker.ietf.org/doc/html/rfc5245#section-15.1
> foundation = 1*32ice-char
2021-06-18 13:36:25 +08:00
ziyue
807f9626d5 webrtc新增对av1的支持 2021-06-16 11:14:10 +08:00
xiongziliang
a84bcec4aa 完善rtp ext处理相关逻辑 2021-05-16 20:56:03 +08:00