greenjim301-ux
a85db32223
fix: add DELETE and PUT to OPTIONS allowed methods for WHIP/WHEP CORS preflight ( #4727 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
DockerPy / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
## 问题
`onHttpRequest_OPTIONS()` 返回的三个 HTTP 响应头均未包含 `DELETE`(及 `PUT`)方法,而
`onRecvHeader()` 中已明确注册了这两个方法(注释说明用于 WHIP/WHEP)。
这导致浏览器发起跨域 `DELETE` 请求(WHIP session teardown)前的 CORS 预检失败,无法完成 WHIP
session 的正常关闭。
关联 issue: #4726
## 修改内容
在 `src/Http/HttpSession.cpp` 的 `onHttpRequest_OPTIONS()` 中:
| 响应头 | 修改前 | 修改后 |
|---|---|---|
| `Allow` | `GET, POST, HEAD, OPTIONS` | `GET, POST, PUT, HEAD, OPTIONS,
DELETE` |
| `Access-Control-Allow-Methods` | `GET, POST, HEAD, OPTIONS` | `GET,
POST, PUT, HEAD, OPTIONS, DELETE` |
| `Access-Control-Request-Methods` | `GET, POST, OPTIONS` | `GET, POST,
PUT, OPTIONS, DELETE` |
## 测试
使用支持 WHIP 协议的浏览器客户端,在 `allow_cross_domains=1` 配置下,跨域 `DELETE` 请求可通过 CORS
预检,WHIP session 正常 teardown。
2026-04-30 15:08:37 +08:00
xia-chu
068844b0da
优化rtp级联时接收限流逻辑,新增支持mp4点播限流
2026-04-18 18:58:09 +08:00
XiaoYan Lin
c3c0fb4448
支持rtsp回放控制 ( #4691 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
目前对接过很多第三方系统(海康ISC、大华ICC、华为IVS、中维等)都支持rtsp回放,觉得有必要支持该功能
2026-04-01 20:42:32 +08:00
YuLi
4daa30e229
avoid reusing non-persistent connections during 302 redirects ( #4690 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
When performing a 302 redirect, if the server explicitly indicates that the connection is not a persistent connection, the current
connection should not be reused; this prevents potential failures caused
by certain servers actively closing the connection.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-23 10:40:55 +08:00
xia-chu
899d9653a4
新增更新流代理的功能,支持修改已有拉流代理的URL和参数
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
2026-03-20 21:59:55 +08:00
xia-chu
3b54168b44
listStreamProxy接口支持返回track、status_str信息
2026-03-17 19:43:50 +08:00
xia-chu
4e170e9281
addStreamProxy新增force,支持强制重试拉流
2026-03-17 19:33:43 +08:00
xia-chu
bb49e4dcdc
播放器新增schema参数支持指定拉流协议
2026-03-11 22:24:21 +08:00
xia-chu
bb903fddcd
新增对mp2音视频编码格式的支持
2026-03-11 22:17:48 +08:00
xia-chu
5d4a266873
修复默认sdp时钟频率的bug
2026-03-11 22:11:30 +08:00
xia-chu
ca47a1f8b2
http access事件新增文件绝对路径参数
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
2026-03-09 18:01:48 +08:00
xia-chu
eef858ffd3
hls直播支持文件根目录设置在http根目录之外
...
解决hls保存根目录必须和http根目录一致才能播放的问题
2026-03-09 17:07:23 +08:00
xia-chu
b8301bd085
修复python on_create_muxer事件隐式拷贝对象的bug
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
2026-03-07 13:06:18 +08:00
xia-chu
3a35144243
新增cookie登录鉴权模式,避免secret硬编码鉴权安全缺陷
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
2026-02-19 23:09:37 +08:00
liangjianhua
8ca4b4d92a
Add optional subnet_prefix parameter to searchOnvifDevice interface
2026-02-13 23:11:37 +08:00
夏楚
6d520ea6a3
新增支持Python混合编程模式 ( #4579 )
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
Linux_Python / build (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS_Python / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows_Python / build (push) Has been cancelled
2026-02-10 13:28:42 +08:00
ShineSea
6e485ad31a
fix(RtpSender): 修复 SSRC 解析溢出问题 ( #4646 )
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2026-01-22 16:31:05 +08:00
xia-chu
a54a0b35c7
优化代码
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2026-01-09 11:41:07 +08:00
xia-chu
c53730f36c
修复推流代理失败无限重试的问题
...
解决媒体注销但还保持无限重试推流的bug
2026-01-09 11:40:42 +08:00
xia-chu
128d2a057c
新增支持HTTP PUT方法
2026-01-09 11:39:41 +08:00
xia-chu
cd8a14d1ca
事件视频录制前溯和后溯时间支持负数
2026-01-09 11:34:18 +08:00
xia-chu
a59809047c
修复编译警告
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows / build (push) Waiting to run
2026-01-08 21:18:00 +08:00
haorui wang
48c37d4f46
[what][bugfix][rtsp] 修复handleResPAUSE 回调未被正常触发 ( #4631 )
...
[what][bugfix][rtsp][https://github.com/ZLMediaKit/ZLMediaKit/issues/4625 ]
修复handleResPAUSE 回调未被正常触发
2026-01-08 20:28:30 +08:00
jeyawn
2cbe4b714b
修复rtmp复杂模式下拉流 C2 不正确导致服务器异常断开的bug ( #4598 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
fix https://github.com/ZLMediaKit/ZLMediaKit/issues/4591
原因分析:
C2不正确导致拉流校验不通过
---------
Co-authored-by: xiongguangjie <xiong_panda@163.com>
2025-12-14 11:19:23 +08:00
Robo
5f0edeed6a
修正libavfilter相关的编译问题和transcode内的错误 ( #4587 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
1. 最近提交的libavfilter相关的代码,没有充分测试cmake编译问题,提交了修正。
2. transcode内存在一个c++11的兼容性问题和运算符优先级问题,提交了修正。
2025-12-09 15:34:15 +08:00
PioLing
1da300cf3e
Add snapshot filter mark ( #4571 )
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2025-12-03 16:38:28 +08:00
xiongguangjie
8c94395710
优化rtsp客户端对点播的支持 ( #4575 #4569 #4576 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Co-authored-by: xia-chu <771730766@qq.com>
2025-12-01 20:35:54 +08:00
xia-chu
1892185b23
更新默认配置文件,支持配置注释和排序
2025-12-01 20:08:23 +08:00
mtdxc
8a4788504e
remove duplicate code ( #4570 )
...
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows / build (push) Waiting to run
getRecvSpeed和getRecvTotalBytes这两函数已在RtspPlayer中实现了,就没必要在RtspPlayerImp中再实现一遍了吧.
2025-11-26 18:51:07 +08:00
JanffuChan
5efe843595
修复rtp无实际负载时判定为丢包的bug ( #4563 )
...
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows / build (push) Waiting to run
RTP无负载时,也记录序号
2025-11-25 19:00:38 +08:00
xia-chu
52b55ded97
修复ws-flv/fmp4/ts播放异常的bug ( #4553 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
修复提交 "8b5f313284ee876f3627ab4a2eb6460072f12fd1" 引入的bug
2025-11-23 19:26:29 +08:00
xia-chu
021f09e62b
优化精简媒体事件相关逻辑代码
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows / build (push) Waiting to run
2025-11-23 19:07:48 +08:00
xia-chu
8b5f313284
解决websocket-flv/fmp4/ts多路播放请求pending问题 ( #4553 )
...
解决等待流注册或播放鉴权hook回复时,zlm未及时回复http头(升级为websocket), 多个http请求并发导致pending的问题
2025-11-23 12:55:23 +08:00
xia-chu
8289aa7e88
优化根据pts生成dts时间戳逻辑 ( #4552 )
2025-11-23 11:46:02 +08:00
xia-chu
adb844032d
初步添加onvif客户端
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2025-11-22 08:40:25 +08:00
xia-chu
c9490ad764
新增兜底机制确保事件录制视频能正常结束
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2025-11-18 20:12:47 +08:00
mtdxc
d8a1c70e2d
Revert "sr发送限频" ( #4533 #4521 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
This reverts commit 21d1ea9676 .
之前代码改多了,会导致空指针错误,现进行还原
2025-11-04 18:39:52 +08:00
mtdxc
f35771a83e
完善ertmp相关代码 ( #4505 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
增加多种Codec支持,并修复一些bug:
- opus 非标准实现,不输出config frame,与旧的实现保持一致
- 添加RTMP_CODEC_MAP宏,精简代码
2025-10-19 11:56:35 +08:00
xia-chu
f7c2803691
修复getSequence拼写错误
2025-10-18 12:45:11 +08:00
xia-chu
07f8f46e8a
默认输出增强型rtmp协议
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2025-10-16 20:16:11 +08:00
xia-chu
8b6aa37b87
优化ertmp对opus的支持
2025-10-16 20:15:34 +08:00
mtdxc
b003eb3eec
各协议全面支持vp8/vp9/av1编码,ertmp新增支持opus编码 ( #4498 )
...
实现功能:
- rtp 增加vp8,vp9和av1编码支持
- 实现MP4录像所需的extra_data接口
- 扩展rtmp增加对opus、vp8、vp9和av1的支持
已知问题:
- 开启enhance rtmp后,ffmpeg暂时不支持播放vp8编码格式,其他格式的支持
- vp9和av1开始播放时容易遇到卡顿情况,过几秒后好了,原因暂时未知
---------
Co-authored-by: xia-chu <771730766@qq.com>
2025-10-16 19:26:46 +08:00
mtdxc
73d348ea96
修复test_player没声音和windows控制台日志不输出bug ( #4484 )
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2025-09-30 11:05:01 +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
韦伟
1bf00cc2a4
新增支持AV1编码 ( #4479 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
rtsp/webrtc协议新增支持AV1编码
2025-09-26 21:28:12 +08:00
mtdxc
a3eb07adfc
move srt src like webrtc ( #4471 )
2025-09-24 16:45:35 +08:00
baigao-X
3fb43c5fef
feat: 增加webrtc代理拉流 ( #4389 )
...
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
- 增加客户端模式,支持主动拉流、推流:
- 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
老衲不出家
3028612a0e
修复rtsp点播相关问题 ( #4445 )
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
2025-09-11 16:52:54 +08:00
xia-chu
a8f5cedd84
rtsp/http类型播放协议支持自定义header
2025-09-10 21:51:26 +08:00