Commit Graph

2033 Commits

Author SHA1 Message Date
xia-chu
0afe75229e 修复拉流代理获取流信息可能访问空指针的bug
此bug由 #2448 引入,触发条件:
- 1.配置文件rtsp.directProxy设置为0
- 2.调用addStreamProxy代理rtsp流

在非直接代理情况下,PlayerProxy::_media_src为空,导致访问空指针。
2023-05-13 00:02:06 +08:00
老衲不出家
f6ac39ade5
新增允许所有跨域请求配置项 (#2449)
配置项为http.allow_cross_domains
2023-05-12 11:47:22 +08:00
codeRATny
1136b0a3c0
Adding new features for proxy player (#2448)
Add some functions for the proxy player, such as:
getting stream information (basic video/audio information)
callbacks for any connection and disconnection from the server
And now you can set delay between reconnections. See proxy player
constructor
2023-05-12 11:20:31 +08:00
Per-Arne Andersen
350e262433
Added support for GCC 13 (#2452)
GCC Does not explicitly include stdint. This update includes them where needed.
A very minor change that would allow GCC13 and above to compile
correctly. In newer versions, cstdint is not implicitly included, hence
it errors out during compilation for some files.
2023-05-11 09:58:48 +08:00
BackT0TheFuture
e97e0d86bd
修复rtmp多层级url解析异常问题 (#2435)
解析多层级rtmp url会丢失某些层级信息:  #2433
2023-05-05 17:34:32 +08:00
xiongguangjie
ffed4b3bb2 format code style for pusher and player 2023-05-03 21:46:25 +08:00
xiongguangjie
7c89c1655f add getProxyPusherInfo and getProxyInfo restful api 2023-05-03 18:52:11 +08:00
Johnny
bfec1b1e0e fix typo 2023-05-02 20:41:13 +08:00
alexliyu7352
9a9040ecda
Merge pull request #2428 from alexliyu7352/patch-56
避免服务器端返回content-length=0时,TsPlayer不能正确释放的问题
2023-04-28 23:46:22 +08:00
xia-chu
19c5323633 修复startSendRtp发送mp4文件时崩溃问题:#2429 2023-04-28 23:02:48 +08:00
xia-chu
ac46f5499e 修复编译错误: #2416 2023-04-28 22:44:57 +08:00
xia-chu
8c049d4e28 实现whip/whep delete相关功能
通过whip/whep 回复http头中的Location url进行删除资源
新增delete token随机数实现删除鉴权
2023-04-28 22:36:58 +08:00
xia-chu
d2349f01bd 使用static_pointer_cast优化性能 2023-04-28 22:04:38 +08:00
xia-chu
cdf97e7605 更新zltoolkit,适配最新代码 2023-04-28 22:04:09 +08:00
Alex
b3d4188fde 避免服务器端返回content-length=0时,TsPlayer不能正确释放的问题 2023-04-28 01:33:17 +08:00
xiongguangjie
64553797bd h265 rtp pack avoid 1387 size nal fu-a only one end packet and first satrt end not exist try fix #2425 2023-04-27 19:54:47 +08:00
lijin
38e05ab8cb
添加addStreamProxy对非法url异常捕获处理 (#2412)
确保抛出异常时,原有代理拉流对象被正常移除,后续可以更新正确url
2023-04-24 14:32:34 +08:00
xiongziliang
c8a20f85f6 直接打印SockException类 2023-04-23 00:10:18 +08:00
xiongziliang
de8249592e Session类构造析构跟踪日志统一在底层网络框架打印 2023-04-22 23:58:17 +08:00
xiongziliang
7a95c87a29 优化代码
空构造和析构函数替换为缺省
去除多余分号
2023-04-22 21:59:26 +08:00
xiongziliang
b5a0a2e858 新增动态更新rtp server过滤ssrc接口updateRtpServerSSRC(#2390) 2023-04-21 23:08:48 +08:00
xiongziliang
bb26fead1e rtmp协议metadata设置title字段 2023-04-21 22:25:06 +08:00
Johnny
ce16a0a9b6 Fix compile warnings 2023-04-21 21:12:42 +08:00
xiongguangjie
30182701f5 fix vlc can't play mp4 of jpeg #2388 2023-04-19 19:40:58 +08:00
xia-chu
f1438986ad 修复stopSendRtp后无法触发无人观看事件的问题 2023-04-18 10:54:49 +08:00
Dw9
978143c86d
rtp级联(ps/ts/es)新增支持gop缓存功能 (#2395)
该修改主要解决rtp级联(调用startSendRtp接口)未做gop缓存导致上级无法秒开的问题。
同时通过RingBuffer对象线程隔离的特性,实现了在断连续推场景下归属线程切换导致的线程安全问题。
用户如未使用rtp级联功能,请修改配置文件关闭GOP缓存(rtp_proxy.gop_cache=0)以便节省内存。

---------

Co-authored-by: 夏楚 <771730766@qq.com>
2023-04-17 12:19:24 +08:00
王成
3a6f660619
新增Assert异常类型,解决国标重复推流不注销问题 (#2393)
Co-authored-by: wangcheng <wangcheng@xwmail.com>
Co-authored-by: xia-chu <771730766@qq.com>
2023-04-14 15:10:48 +08:00
xiongguangjie
67d8837442 rtp h265 packet like h264 2023-04-06 19:54:59 +08:00
夏楚
599208dd6a
修复全局变量构造先后顺序导致启动崩溃的问题 2023-04-06 16:16:28 +08:00
alexliyu7352
7fcd88d02a
避免hls拉流时m3u8文件出现问题或直播结束后,无限重试 (#2357)
Co-authored-by: xiongziliang <771730766@qq.com>
2023-04-05 20:36:44 +08:00
xiongziliang
384c8677ea startSendRtp接口在发送ps时支持只发送音频: #2217 2023-04-01 23:48:57 +08:00
ljx0305
ca7efd5941
修正ssrc轮回为0时,ssrc重复分配为1的bug(#2327) 2023-03-24 16:19:22 +08:00
mtdxc
98ec6b68d9
HttpRequester支持失败重试功能(#2323) 2023-03-23 14:46:45 +08:00
xiongziliang
dfd37ff350 时间戳处理新增接口支持获取相对时间戳 2023-03-22 21:19:16 +08:00
baiyfcu
950f33bd3f 新增windows中_M_ARM64 _M_ARM _M_X64 CPU指定集识别 2023-03-17 02:04:00 +08:00
baiyfcu
a754a22680 修复在WINDOWS上cpu类型无法判断BUG 2023-03-17 01:31:56 +08:00
ljx0305
1dec350dcd
修正on_rtp_server_timeout hook时获取的端口非真实端口 (#2297)
在调用openRtpServer接口时,如果传入的端口为0(随机端口), 那么在触发on_rtp_server_timeout hook时的端口为0
2023-03-15 14:54:18 +08:00
TempoTian
5ae34d666e
提高 rtmp tcUrl 解析兼容性 (#2303 #2298) 2023-03-13 20:42:31 +08:00
xia-chu
b9fa5f9b5e 实例汇报时间改成60分钟一次
同时新增程序启动日期、是否开启编译ffmpeg选项
2023-03-13 20:29:18 +08:00
xia-chu
96e1cf8146 优化cpu类型判断宏 2023-03-12 18:45:37 +08:00
xia-chu
843e3423cf 新增实例上报功能: #2294 2023-03-12 00:14:22 +08:00
mtdxc
15dc854e94
修复http multi form上传文件名相关bug(#2293) 2023-03-11 21:08:39 +08:00
xia-chu
1bab0b8e31 修复WebSocket线程安全问题,同时新增内置客户端、服务端心跳机制。 2023-03-11 11:08:14 +08:00
xia-chu
c2a8d46a64 提高c sdk mk_media对象线程安全 2023-03-11 11:02:20 +08:00
xia-chu
ba4296e180 修复断连续推情况下线程迁移导致崩溃的bug:#2283
如果一个MultiMediaSourceMuxer对象上挂载了很多个RtpSender对象,
这些对象会绑定MultiMediaSourceMuxer的OwnerPoller(归属线程),
在断连续推发生时,对应的MultiMediaSourceMuxer对象OwnerPoller线程
将发生变更,导致与RtpSender对象的线程不一致。
2023-03-11 10:34:58 +08:00
xia-chu
4cc2982a2c 重写jitter buffer算法,修复seq回环时可能丢包的bug 2023-03-11 10:17:31 +08:00
ljx0305
1cc0f51c07
replace ffmpeg deprecated api avpicture_fill to av_image_fill_arrays (#2279) 2023-03-09 15:24:32 +08:00
ziyue
23296ae5fa 加大参数冗余,提高webrtc抗丢包能力 2023-03-07 10:37:44 +08:00
ziyue
d05c9d5f51 重写jitter buffer长度控制算法,提高webrtc/rtp抗丢包能力 2023-03-06 21:04:50 +08:00
xiongguangjie
d6e9a4fb90 remove PSParser mistake comment 2023-03-06 19:33:34 +08:00