Commit Graph

4106 Commits

Author SHA1 Message Date
xiongguangjie
11a39c68c4
修复海康rtsp点播拉流seek相关bug(#2501 #2511) 2023-05-31 09:59:41 +08:00
Johnny
0232caf068 add MediaTuple 2023-05-30 11:01:27 +08:00
Johnny
f4ee607feb add RtspMediaSource::Clone 2023-05-30 11:01:27 +08:00
a-ucontrol
51e9313275
Make available the media_info variable for the class inherited from WebRtcSession and HttpSession. (#2505 #2461) 2023-05-29 14:48:13 +08:00
dengjfzh
18dbbc8d19
降低TCP RTP 2字节头被误判为EHOME头的风险 (#2502)
当TCP RTP包大小为256字节时,可能触发RtpSplitter::onSearchPacketTail误判为EHOME格式。
这个修改一旦检测到数据不是EHOME格式,则后续不再进行尝试,以减小误判的风险。
2023-05-27 22:27:10 +08:00
dengjfzh
032a2ac91d
修复TCP RTP 2字节头被误判为4字节头的问题 (#2499)
当RFC4571封装的RTP包大小在0x2400到0x24ff之间时,会被误认为是RTSP Interleaved
封装的数据。因为0x24正好是'$'的ASCII码,而RtpSplitter::onSearchPacketTail通过'$'来识别RTSP
Interleaved数据。暂时没有想到什么好的办法能够百分之百的正确区分RFC4571数据和RTSP
Interleaved数据。增加一个状态变量记录之前的状态,一旦检测到数据不是RTSP
Interleaved格式,则后续不再进行尝试,以减小误判的可能性。
2023-05-26 17:34:47 +08:00
PioLing
3f447246c2
使用SDL_OpenAudioDevice接口打开音频设备 (#2489)
修复SDL_OpenAudio()接口可能打开失败问题
2023-05-26 17:02:21 +08:00
xia-chu
936babf459 新增mk_media_source_find2接口 2023-05-25 16:57:03 +08:00
xia-chu
d4f8017117 修复mk_tcp_session_ref相关接口误导性注释 2023-05-24 10:50:49 +08:00
Kiki
7e4010df83
修复startSendRtp接口gop缓存功能可能失效的问题 (#2455)
如果帧序列为SPS PPS SEI IDR,那么GOP缓存会从IDR开始,导致解码器未获取到SPS PPS从而不能秒开
2023-05-18 16:35:54 +08:00
夏楚
15e76293d0
readme新增多语言跳转链接 (#2465) 2023-05-14 10:19:07 +08:00
夏楚
cb362371b9
更新zltoolkit, 修复iOS下编译问题 (#2464)
参考:#2459
2023-05-14 10:10:08 +08:00
夏楚
4f6e32b510
mk_media_input_aac接口可以不指定adts头(#2463)
修复issue: #2432
2023-05-14 09:57:59 +08:00
xia-chu
4fa04d6a37 优化PlayerProxy代码 2023-05-13 00:14:35 +08:00
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
ljx0305
7ef39d1b6f
修复openRtpServer函数声明不一致问题 (#2445) 2023-05-08 15:27:43 +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
1dd0c69aa0
完善英文说明文档 (#2431) 2023-04-29 09:02:19 +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
2708c85d57 修复编译问题 2023-04-28 23:08:59 +08:00
xia-chu
19c5323633 修复startSendRtp发送mp4文件时崩溃问题:#2429 2023-04-28 23:02:48 +08:00
xia-chu
beb99ee5b5 更新作者列表 2023-04-28 22:49:20 +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
xiongguangjie
a64383a26b sync media-server to fix #2409 2023-04-24 19:49:23 +08:00
lijin
38e05ab8cb
添加addStreamProxy对非法url异常捕获处理 (#2412)
确保抛出异常时,原有代理拉流对象被正常移除,后续可以更新正确url
2023-04-24 14:32:34 +08:00
xia-chu
a37b038af6 docker镜像默认开启trace日志
同时暴露webrtc over tcp端口
2023-04-23 14:37:05 +08:00
xia-chu
41451f6a93 修复不保存日志文件的bug 2023-04-23 14:30:41 +08:00
xiongziliang
81d0ba97a1 更新zltoolkit
确保emitErr只触发一次onErr回调
2023-04-23 00:21:35 +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
f1037e3767 降低http api debug日志级别为Trace 2023-04-22 23:29:19 +08:00
xiongziliang
38ab3e0df4 添加cpu亲和性设置参数: #2407
如果需要调用getSnap和addFFmpegSource接口,可以关闭cpu亲和性以发挥ffmpeg多核性能
2023-04-22 22:10:35 +08:00
xiongziliang
967fe035ab 日志默认调整为debug级别 2023-04-22 22:03:30 +08:00
xiongziliang
7a95c87a29 优化代码
空构造和析构函数替换为缺省
去除多余分号
2023-04-22 21:59:26 +08:00
xiongziliang
e8a425945d 更新子模块 2023-04-21 23:14:53 +08:00
xiongziliang
b5a0a2e858 新增动态更新rtp server过滤ssrc接口updateRtpServerSSRC(#2390) 2023-04-21 23:08:48 +08:00
xiongziliang
c2b8f3e80e 更新zltoolkit,修复Session对象析构时获取ip端口失败的问题 2023-04-21 22:27:36 +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