xiongziliang
e6c19bfea7
修复全局变量构造顺序紊乱相关的bug ( #4836 )
2026-09-29 11:16:55 +08:00
xiongziliang
205150d72b
fix(webrtc): 修复RTP扩展头部解析中的堆越界读写漏洞
2026-09-20 22:49:09 +08:00
xiongziliang
3f684a653c
config(rtc): 默认关闭某些非必要端口
2026-09-20 21:57:58 +08:00
taotaobujue
6676b8d8fc
fix(webrtc): 修复异常 ICE 会话导致的端口资源泄漏 ( #4782 )
...
公网部署时,ICE 端口可能遭受恶意请求或扫描。异常会话长期不退出,
导致 UDP 会话、TURN relay 端口及关联资源无法及时释放,最终可能耗尽
可用端口。
- 增加 UDP ICE 会话空闲超时配置,自动关闭长期无数据的会话
- 完善 TURN Allocation 的创建、刷新、超时和主动释放流程
- 会话异常退出或销毁时清理 relay 端口、Permission 和 ChannelBind
- 为 relay 会话注册表增加并发保护,避免残留或竞态访问
- 使用弱引用解除会话对象之间的循环引用
- 修正 Allocation Mismatch 错误码为 437
- 补充 iceSessionTimeoutSec 配置及使用说明
Plan-Item: ICEBUGFIX
---------
Co-authored-by: xiongziliang <771730766@qq.com >
2026-09-20 21:49:18 +08:00
jimying
5a3af1b9fc
Fix whep/whip 注销失败问题 ( #4808 )
...
- delete_webrtc时,不应该使用whep/whip开始协商时的HttpRequester,可能已经keepalive过期失效
- 修复_is_negotiate_finished=false赋值一行不生效的bug(重复发delete_webrtc)
---------
Co-authored-by: xia-chu <771730766@qq.com >
2026-09-20 14:21:03 +08:00
xiongziliang
2fa5398073
修复webrtc播放时插入sps pps rtp相关字段不正确的bug
2026-08-27 23:10:50 +08:00
xiongziliang
d554ba1c0c
修复webrtc sdp中不传递aac fmtp的bug
2026-08-27 23:10:37 +08:00
xiongziliang
43be587b74
修复webrtc offer sdp aac payload type冲突的bug
2026-08-27 23:10:02 +08:00
xiongziliang
39eac339d5
修复ice建连成功前关闭WebRtcTransport对象失败的bug
2026-08-26 17:52:35 +08:00
xiongziliang
9fbe034a8a
优化webrtc批量发送性能
2026-08-16 14:31:59 +08:00
xiongziliang
0e9e59bf43
fix(webrtc): 修复webrtc连接迁移后close失败的bug
2026-08-06 21:42:31 +08:00
Miau Lightouch
a9e0e1a81e
fix(webrtc): fix GStreamer WHEP interop ( #4720 )
...
## Summary
This PR fixes GStreamer interoperability issues during WebRTC/WHEP
negotiation with ZLMediaServer.
GStreamer could fail to establish the connection for two separate
reasons:
1. ZLMediaServer generated a non-compliant ICE `ufrag`. The generated
value contained `_`, which is not a valid ICE character, so GStreamer
rejected the SDP.
2. ZLMediaServer did not correctly handle `bundle-only` offers and could
answer an accepted bundled m-line with `port=0`, which caused the later
WHEP negotiation to fail.
## Changes
- Generate ICE `ufrag` values using ICE-compliant characters only.
- Preserve and handle `a=bundle-only` correctly during SDP parsing and
answer generation.
- Return `port=9` instead of `port=0` for accepted bundled m-lines.
- Add regression coverage for `bundle-only` SDP handling.
- URL-encode `delete_webrtc` query parameters in the returned `Location`
header so ICE-safe identifiers remain round-trippable over HTTP.
## Validation
- Built with WebRTC and SCTP enabled.
- Added regression test: `test_webrtc_regression`
- Verified:
- ICE-safe identifier round-trip through `delete_webrtc`
- `bundle-only` SDP answer generation
2026-04-21 11:37:08 +08:00
xia-chu
6c82601fe2
修复状态紊乱导致访问空指针的bug
...
有用户反馈崩溃在此处,尝试修复之
2026-03-01 12:11:47 +08:00
xia-chu
fb491f3e79
新增webrtc配置选项nackAudioRtpSize、preferred_tcp
...
nackAudioRtpSize: 音频nack包中rtp个数,减小此值可以让nack包响应更灵敏
preferred_tcp: 是否优先采用webrtc over tcp模式
2026-01-09 11:39:22 +08:00
xia-chu
ae3d551c8a
解决webrtc丢包重传误判为重放攻击的问题
2026-01-09 11:35:37 +08:00
xia-chu
1e6a8964cc
修复WebRtcSession对象可能泄露的bug ( #4596 )
2025-12-17 21:42:25 +08:00
xia-chu
5165ac4f74
初步支持语音双向对讲webrtc插件
2025-11-25 22:59:58 +08:00
xia-chu
7b2bd221ea
Revert "fix: handle BUNDLE filed compatibility ( #4488 )"
...
This reverts commit 0b57a573c6 .
2025-11-25 10:41:39 +08:00
mtdxc
70a2140f27
修复WebRtcProxyPusher速率为0 bug ( #4558 )
2025-11-22 08:22:42 +08:00
mtdxc
d8a1c70e2d
Revert "sr发送限频" ( #4533 #4521 )
...
This reverts commit 21d1ea9676 .
之前代码改多了,会导致空指针错误,现进行还原
2025-11-04 18:39:52 +08:00
xia-chu
c9d3c5b516
转发rtp时,关闭srtp防重放攻击逻辑
2025-10-24 16:45:41 +08:00
baigao
0b57a573c6
fix: handle BUNDLE filed compatibility ( #4488 )
2025-10-09 11:38:05 +08:00
mtdxc
b9d513f9aa
采用定时器发送rr
2025-09-29 19:06:47 +08:00
mtdxc
21d1ea9676
sr发送限频
2025-09-29 19:06:47 +08:00
mtdxc
13f603328f
rtc拉流代理支持显示sockInfo和码率
2025-09-29 19:06:47 +08:00
mtdxc
016f6e0e59
修复拼写错误,并精简WebRtcClient无用代码
2025-09-29 19:06:47 +08:00
Lidaofu
493714bc7d
c sdk 新增webrtc相关函数 ( #4473 )
...
另外调整函数位置,whip、whep请求设置Content-Type为application/sdp
2025-09-24 17:40:43 +08:00
baigao-X
3fb43c5fef
feat: 增加webrtc代理拉流 ( #4389 )
...
- 增加客户端模式,支持主动拉流、推流:
- addStreamProxy接口新增支持whep主动拉流,拉流地址目前只兼容zlm的whep url。
- addStreamPusherProxy接口新增支持whip主动推流,推流地址目前只兼容zlm的whip url。
- 以上推流url格式为webrtc[s]://server_host:server_port/app/stream_id?key=value, 内部会自动转换为http[s]://server_host:server_port/index/api/[whip/whep]?app=app&stream=stream_id&key=value。
- 增加WebRtc p2p 模式:
- 增加 ICE FULL模式。
- 增加STUN/TURN 服务器。
- 增加websocket 信令。
- 增加P2P代理拉流。
---------
Co-authored-by: xia-chu <771730766@qq.com >
Co-authored-by: mtdxc <mtdxc@126.com >
Co-authored-by: cqm <cqm@97kid.com >
2025-09-20 16:23:30 +08:00
xia-chu
5686027fc2
修复MediaSource::close线程安全问题
...
主动或无人观看关闭流可能会由于线程安全问题导致崩溃
2025-09-09 22:02:20 +08:00
weishao
ceb78bd54c
feat: add H.265 profile parameters support for WebRTC SDP negotiation
2025-08-22 20:38:17 +08:00
xia-chu
57fede9508
修复编译警告
2025-08-09 15:42:28 +08:00
xia-chu
c98137e505
优化线程安全问题
2025-06-29 17:56:10 +08:00
custompal
f0204ea3b3
播放器(reader)setGetInfoCB时统一使用Session对象 ( #4195 )
...
Co-authored-by: custompal <chenrengen@gosuncn.com >
2025-03-21 15:22:48 +08:00
Dw9
479a3fb9bb
Remove B-frames when playing WebRTC streams ( #4176 )
...
1. webrtc 播放移除了 h264 rtp中的b 帧
2. 增加了 rtc.bfilter 配置
ref: ISO_IEC_14496-10-AVC-2012
2025-03-03 14:37:57 +08:00
alex
4152dcd409
AI automatically translates all comments in the code into English ( #3917 )
2024-09-19 14:53:50 +08:00
xia-chu
a14e40f8d2
修复webrtc rtp重发列队可能由于rtp时间戳异常导致内存溢出的bug
2024-07-21 19:16:34 +08:00
xiongziliang
2ead272187
修复webrtc播放时生成config rtp线程安全的bug
...
rtsp直接代理时会从config frame生成rtp,在获取VideoTrack配置帧列表时存在线程安全风险;
同时简化getConfigFrames函数代码,去除缓存逻辑。
2024-06-22 13:04:06 +08:00
xiongziliang
1ef3642ed4
优化webrtc jitter buffer相关参数
2024-06-22 13:04:06 +08:00
Xiaofeng Wang
84dbe4b076
Send config frames once before sending DirectProxy RTP packets ( #3611 )
2024-06-16 09:37:33 +08:00
Luke
fbac3f9ba0
RC4密码套件漏洞 ( #3590 )
...
禁止使用RC4
2024-06-09 10:45:40 +08:00
gongluck
5df2b80757
Nack相关参数可配置化 ( #3510 #3507 )
2024-05-12 18:15:11 +08:00
xia-chu
2d66dd7cb3
Fixing the problem of WebRTC handshake failure caused by unsupported RTP extensions ( #3486 )
2024-04-20 22:49:27 +08:00
Dw9
edca662208
fix webrtc echo error ( #3442 )
...
遵循着pr #3360 的修改方式解决webrtc echo模式失败的问题
2024-04-05 22:11:50 +08:00
xiongziliang
7aaafa18e7
Format code
2024-03-23 23:08:10 +08:00
xiongziliang
d8893877b2
Delete invalid code
2024-03-23 22:56:12 +08:00
johzzy
029813402d
feat: update negotiateSdp and WebRtcArgs ( #3371 )
...
- update negotiateSdp
- update HttpAllArgs and alias
- update onRtcConfigure
- define setWebRtcArgs, handle set_webrtc_cands and setLocalIp
---------
Co-authored-by: xiongziliang <771730766@qq.com >
Co-authored-by: KkemChen <kkemchen@qq.com >
2024-03-23 22:46:30 +08:00
xia-chu
db4c570d19
WebRTC audio preferred PCMA
2024-03-22 20:50:07 +08:00
小强先生
8e16a698b6
降低webrtc握手未结束,数据先到的日志等级 ( #3368 )
2024-03-13 10:57:43 +08:00
johzzy
1e39594335
fix for https://bugs.chromium.org/p/webrtc/issues/detail?id=15845 ( #3360 )
2024-03-10 21:34:03 +08:00
gongluck
5a6364bae2
Add datachannel c apis and callbacks( #3328 )
...
增加datachannel数据收发的回调通知 #3326,和控制datachannel回显的开关
---------
Co-authored-by: xiongziliang <771730766@qq.com >
2024-03-02 16:52:51 +08:00