winlin
72f8ed4916
Update license date to 2023. v5.0.123
2023-01-01 08:49:13 +08:00
chundonglinlin
9f4338bd9d
For #2899 : Exporter: Add metrics cpu, memory and uname. ( #3224 )
...
* Exporter: metrics support cpu gauge.
* Exporter: metrics support memory and uname..
* Exporter: Ignore error when uname fail.
Co-authored-by: winlin <winlin@vip.126.com>
2022-10-31 08:53:58 +08:00
chundonglinlin
9525511032
Exporter: Listen at port 9972 for Prometheus exporter. ( #3195 )
2022-10-01 07:35:54 +08:00
chundonglinlin
981cab40d3
API: support metrics for prometheus.( #2899 ) ( #3189 )
...
* API: support metrics for prometheus.
* Metrics: optimize metrics statistics info.
* Refine: remove redundant code.
* Refine: fix metrics srs_streams param.
* Metrics: add major param.
* Metrics: refine params and metric comments.
* For #2899 : API: Support exporter for Prometheus. v5.0.67
Co-authored-by: winlin <winlin@vip.126.com>
2022-09-27 15:39:26 +08:00
winlin
457738f6eb
Fix #2881 : HTTP: Support merging api to server. v5.0.47
2022-08-28 13:11:31 +08:00
winlin
d117145b95
Update date from 2021 to 2022.
2022-06-20 19:22:25 +08:00
winlin
fa78cf3354
Prefix with srs_protocol in protocol directory.
2022-06-09 20:26:58 +08:00
winlin
d5c86dc5fa
Switch LICENSE from MIT to **MIT or MulanPSL-2.0**. v5.0.21
2022-01-13 18:40:22 +08:00
winlin
a81aa2edc5
Squash: Merge SRS 4.0
2021-10-10 12:05:26 +08:00
Haibo Chen
f901831362
Enhance HLS: support http callback on_play/stop, support statistic ( #2578 )
...
* Enhance HLS: support http callback on_play/stop, support statistic
* make code readable
* make code readable
* rename secret
2021-09-23 13:31:45 +08:00
winlin
a830289d97
Squash: Merge SRS4.0
2021-09-07 08:20:43 +08:00
winlin
19c0a9eb4b
Suqash: Merge 4.0
2021-09-05 14:17:41 +08:00
Winlin
c8a1e0f3da
Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8 ( #2464 )
...
* Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8
* Update README.md
* Update README.md
* Refine format for AUTHORS.md
2021-07-08 14:30:47 +08:00
Xiaoniu
f986b5956b
check 'vhost' validity in 'http raw dvr api' ( #2435 )
2021-06-28 07:51:57 +08:00
winlin
efdbf37255
Squash: Move GB28181 to feature/gb28181. 5.0.4
2021-06-16 14:03:55 +08:00
winlin
15901cacee
SquashSRS4: Use SPDX-License-Identifier: MIT. 5.0.3
2021-05-31 13:42:20 +08:00
winlin
6a980683f7
SquashSRS4: Remove object cache and stat api
2021-05-14 18:17:42 +08:00
winlin
8b74c7cb89
SquashSRS4: Happy 2021
2021-04-16 09:29:43 +08:00
winlin
bfa156247c
Merge branch '4.0release' into develop
2021-01-07 17:47:54 +08:00
winlin
1c41f5d796
Merge SRS3, change id of stat to string
2021-01-07 17:04:11 +08:00
winlin
fb7c051833
Change id from int to string for the statistics. 3.0.157
2021-01-07 16:47:49 +08:00
Pieere Pi
ffae1720ec
gb28181模块可用性增强
...
主要改动,
1. 支持作为GB/T 28181上级平台
2. 新的目录接口sip_query_devicelist (/api/v1/gb28181?action=sip_query_devicelist)
3. 各种异常和问题修复
4. 其他一些小改动
以上改动基于feature/rtc分支,因为需要网页用WebRTC来拉GB28181的监控流,gb28181分支代码有点老了。
下面的序号n是指第n个差异块("@@ -"之间的内容)。
srs_gb28181.html
1. 原页面上多加了一个端口号
2-4. 给摄像头加上名称显示
5. 查询目录去掉chid
6. 删除通道参数分解为id和chid
7. API端口固定为1985
srs_app_gb28181.cpp
1-4. 四处因为错误而退出GB28181媒体处理循环,修改为不退出
5. payload为空异常
6. 修正判断startcode越界一个字符导致内存写越界的问题
ps流有可能末尾是全零填充,而且越界的那个字符正好是0x01,这样会多出一个nalu(末尾的三个0x00和一个越界的0x01),后面写video_data内存越界(if (first_pos != pre_pos){块,此处size - pre_pos - 4为-1,uint32_t naluLen得到的值为0,video_data[pre_pos+3] = p[0];写越界)破坏了其他数据,后续video_stream析构出错程序异常退出。
7. 此处srs后来已修复
8. 更新ssrc为被叫返回的值
原代码只支持标准中的《点播域内设备媒体流SSRC处理方式》(设备注册上来),不支持《点播外域设备媒体流SSRC处理方式》(即作为上级平台)。
这是因为如果srs作为上级平台,ssrc不是自己生成的,而是下级平台生成的。
9. 删除通道参数分解为id和chid
10. notify_sip_unregister后delete_stream_channel无效
11. notify_sip_query_catalog清空内存中的设备列表
12. 新函数query_device_list
srs_app_gb28181.hpp
1. update_rtmpmuxer_to_newssrc_by_id声明
2. 新函数get_gb28181_config_ptr和函数delete_stream_channel声明修改
3. 新函数query_device_list
srs_app_gb28181_sip.cpp
1-4. 在调试界面给摄像头加上名称显示;新函数clear_device_list和新函数dumpItemList
5-6. 两处因为错误而退出GB28181信令处理循环,修改为不退出
7. 设备注册上来,不检查服务器ID匹不匹配(支持作为上级平台)
8. 收到一个目录上报消息,更新内存中的数据
9. 更新ssrc为被叫返回的值
10. 新函数query_device_list
srs_app_gb28181_sip.hpp
1. 在调试界面给摄像头加上名称显示
2. 每个设备加上item_list,用于存储目录;新函数clear_device_list和新函数dumpItemList
3. 新函数clear_device_list
srs_app_http_api.cpp
1. 删除通道参数分解为id和chid
2. 新的接口sip_query_devicelist,用于查询所有设备的目录
srs_sip_stack.cpp
1. GB2312转UTF-8类
2. 被叫返回的ssrc初始化
3. parse_xml声明修改
4. 对XML内容进行字符集检测和转换
5-7. parse_xml定义修改
8. SIP BODY里面也有可能有\r\n
9-10. 防止恶意SIP消息 by vicious sip prober
11-12. 新的XML解析目录代码
13. 获取被叫返回的ssrc
srs_sip_stack.hpp
1. 依赖vector
2. 每个设备加上item_list,用于存储目录
3. 被叫返回的ssrc
4. parse_xml声明修改
2020-11-15 23:14:34 +08:00
winlin
32c1832d64
For #1657 , refine code
2020-11-07 07:39:50 +08:00
winlin
30ba5a32ed
For #1657 , Support HTTPS Streaming
2020-11-06 17:22:23 +08:00
winlin
272ca9d0f6
For #1657 , Support HTTPS API
2020-11-06 15:05:01 +08:00
winlin
7916214e27
For #1657 , refine api for http
2020-11-06 09:51:04 +08:00
winlin
c3d290013e
For #1657 , handle on_message_done
2020-11-05 18:34:56 +08:00
winlin
4b082ea96c
For #1657 , refine http api disconnect log
2020-11-05 18:19:43 +08:00
winlin
74799a31e3
For #1657 , refine on_http_message with response writer
2020-11-05 18:08:13 +08:00
winlin
d67b050935
For #1657 , fix the jsonp bug
2020-11-05 17:57:22 +08:00
winlin
fc21b31714
For #1657 , refine the context for disposing
2020-11-05 17:16:59 +08:00
winlin
0a3a38762a
For #1657 : Remove duplicated code, merge http api with conn
2020-11-05 16:46:16 +08:00
winlin
24125b9770
For #1657 : Refine connection arch, remove hierachy
2020-11-05 15:08:36 +08:00
winlin
2a14dc0ebd
For #1657 : Refine TCP connections arch
2020-11-05 12:25:54 +08:00
winlin
4ba66b388b
For #1657 : Refine TCP connections arch
2020-11-05 11:47:24 +08:00
winlin
64705d1cc8
RTC: Refine resouce management
2020-09-19 10:30:05 +08:00
winlin
88826aae8f
Rename SrsConnection to SrsTcpConnection
2020-09-11 16:59:22 +08:00
winlin
66aaad7805
Log: Refine context
2020-07-13 13:52:23 +08:00
winlin
6624b8acca
Log: Use object as context id for complex context
2020-07-05 23:26:55 +08:00
winlin
81a7c252d6
TCP: Log the remote port for client.
2020-07-04 17:19:08 +08:00
winlin
a273298e63
HTTP: Enable infinite_chunked by default
2020-06-30 19:29:23 +08:00
winlin
8a0c2e01f8
Log: Change cid from int to string
2020-06-18 11:45:43 +08:00
winlin
01f05f920f
RTC: Remove sendmmsg
2020-05-21 16:52:25 +08:00
winlin
f03bf601e4
RTC: Directly send without sendmmsg
2020-05-21 16:52:24 +08:00
winlin
4f6b24ea12
RTC: Remove GSO for player, no premature optimization
2020-05-21 16:48:32 +08:00
忘篱
acc53ded89
RTC: Extract RTC api file
2020-05-17 19:40:45 +08:00
winlin
3a58d9859c
RTC: Extract rtc server in app
2020-05-11 11:45:20 +08:00
winlin
db503975fb
Disable simulator API by default.
2020-05-07 16:29:11 +08:00
winlin
8c4b6d3166
Support disable NACK in config
2020-05-04 20:42:30 +08:00
winlin
d125116317
Support simulate NACK for RTC publisher
2020-05-04 17:49:39 +08:00