Commit Graph

8876 Commits

Author SHA1 Message Date
OSSRS-AI
51ab6403a3 AI: WebRTC: Fix camera/microphone not released after closing publisher. v7.0.106 (#4261) 2025-10-26 08:43:53 -04:00
OSSRS-AI
9eae868e91 AI: Build: Improve dependency checking to report all missing dependencies at once. v7.0.105 (#4293) 2025-10-25 22:21:09 -04:00
OSSRS-AI
6590871ca8 AI: HLS: Support hls_master_m3u8_path_relative for reverse proxy compatibility. v7.0.104 (#4338) 2025-10-25 21:10:21 -04:00
OSSRS-AI
b7828e1fba API: Remove minimum limit of 10 for count parameter in /api/v1/streams and /api/v1/clients. v7.0.103 (#4358) 2025-10-25 19:44:03 -04:00
OSSRS-AI
d9ea25b441 AI: Update conf description for multiple ep for callback. #4421 2025-10-24 22:22:14 -04:00
Haibo Chen(陈海博)
8f1578e0e3 Refactor: Rename ide/ directory to cmake/ for better clarity (#4539)
This PR renames the trunk/ide/ directory to trunk/cmake/ to better
reflect its actual purpose. The directory contains CMake build
configuration files used by multiple IDEs (CLion, VSCode), not
IDE-specific files.

* Directory rename: trunk/ide/ → trunk/cmake/
* Build output location: trunk/ide/vscode-build/ → trunk/cmake/build/
* CMakeLists.txt: Moved from trunk/ide/srs_clion/CMakeLists.txt to
trunk/cmake/CMakeLists.txt
2025-10-23 20:38:48 -04:00
OSSRS-AI
2fb216e86d AI: Refine utest file rules. 2025-10-23 09:44:28 -04:00
winlin
2893f43327 Compress guideline for AI. 2025-10-23 07:30:53 -04:00
OSSRS-AI
2810d32d60 AI: Only support AAC/MP3/Opus audio codec. v7.0.102 (#4516) 2025-10-22 22:08:25 -04:00
OSSRS-AI
0c9868b4a2 AI: Fix AAC audio sample rate reporting in API. v7.0.101 (#4518) 2025-10-22 21:28:45 -04:00
winlin
0e28422d12 Update guideline for AI. 2025-10-22 11:46:11 -04:00
OSSRS-AI
8fd92d1598 AI: Add utest to cover forwarding module. #4531 2025-10-21 23:33:29 -04:00
Winlin
845e0287c0 Forward: Reject RTMPS destinations with clear error message. v7.0.100 (#4537)
SRS forward feature only supports plain RTMP protocol, not RTMPS (RTMP over SSL/TLS). This is by design - SRS SSL is server-side only (accepting connections), not client-side (initiating connections). The forward feature uses SrsSimpleRtmpClient which has no SSL handshake or encryption capabilities for outgoing connections.

Changes:
1. Add RTMPS URL detection in SrsForwarder::initialize()
2. Return ERROR_NOT_SUPPORTED error when RTMPS destination is detected
3. Add unit test to verify RTMPS URLs are properly rejected
4. Add FAQ section to .augment-guidelines explaining the limitation

For users who need to forward to RTMPS destinations (e.g., AWS IVS), the recommended solution is to use FFmpeg with SRS HTTP Hooks:
- on_publish event: Automatically start FFmpeg to relay stream to RTMPS destination
- on_unpublish event: Automatically stop FFmpeg process when stream ends

This provides a fully automated, production-ready RTMPS relay solution without adding complexity to SRS core.

Related: #4536

---------

Co-authored-by: OSSRS-AI <winlinam@gmail.com>
2025-10-20 08:03:07 -04:00
OSSRS-AI
4e35b6cacc AI: Add utest to cover signal manager 2025-10-19 22:46:06 -04:00
OSSRS-AI
341c0c000c AI: Add workflow utest for http stream. 2025-10-19 21:55:45 -04:00
OSSRS-AI
ce7ac11eae AI: Add workflow test for HTTP conn 2025-10-19 19:10:52 -04:00
OSSRS-AI
35d0e3d7c7 AI: Add workflow utest for SRT conn 2025-10-19 13:23:20 -04:00
OSSRS-AI
2913d5b827 AI: Refine utests. 2025-10-18 23:12:59 -04:00
OSSRS-AI
f86c1348b1 AI: Add workflow utest for RTMP conn 2025-10-18 22:13:15 -04:00
OSSRS-AI
054d3a3563 AI: Add workflow utest for rtc conn. 2025-10-17 21:55:29 -04:00
OSSRS-AI
8b76e1f6d2 AI: Add workflow utest for rtc publisher 2025-10-17 09:23:47 -04:00
Haibo Chen(陈海博)
0d43ed5dd6 HLS: Fix a iterator bug in hls_ctx cleanup function. v6.0.182 v7.0.99 (#4534)
Co-authored-by: OSSRS-AI <winlinam@gmail.com>
2025-10-17 07:16:42 -04:00
winlin
3f706f9c37 Refine utest mock. 2025-10-16 10:57:31 -04:00
OSSRS-AI
c9fe296342 AI: Add utest to cover 3 streams play stream. 2025-10-16 10:30:05 -04:00
winlin
5cf615f1d4 Update README for v6.0-b2 2025-10-16 10:21:36 -04:00
OSSRS-AI
ed120ba88b AI: Add utest to manually verify rtc play workflow 2025-10-16 10:16:31 -04:00
Haibo Chen(陈海博)
abaffdd4b9 fix crash issue caused by reload configuration file. v7.0.98 (#4530)
fix crash issue caused by reload configuration file, which occurs when a
vhost is added/removed in the new configuration.

Introduced by https://github.com/ossrs/srs/pull/4458

see https://github.com/ossrs/srs/issues/4529
2025-10-16 07:30:16 -04:00
Jack Lau
6f526284a3 RTC2RTMP: fix illegal memory access. v7.0.97 (#4520)
Regression since 20f6cd595c

The early code might meet bridge is empty when
there is no bridge(e.x. rtc to rtc). Then srs_freep will free the brige.

Remove this code that seems redundant.

---------

Co-authored-by: Jacob Su <suzp1984@gmail.com>
Signed-off-by: Jack Lau <jacklau1222@qq.com>
2025-10-15 10:16:03 -04:00
OSSRS-AI
44c3dab79e AI: Add utest to cover heatbeat. 2025-10-15 09:59:45 -04:00
OSSRS-AI
223202f121 AI: Add utest to cover version query 2025-10-15 09:11:04 -04:00
OSSRS-AI
5d01393307 AI: Add utest to cover process module 2025-10-15 07:52:46 -04:00
OSSRS-AI
315ae2cd3a AI: Add utest to cover encoder module. 2025-10-14 22:31:16 -04:00
winlin
1bc18509a2 Disable sanitizer by default to fix memory leak. #4364 v7.0.96 2025-10-14 20:32:37 -04:00
winlin
bf7e93140b Refine access specifier for utest. 2025-10-13 22:26:38 -04:00
winlin
31e191e9e3 Init ST after daemon started. 2025-10-13 10:00:51 -04:00
winlin
123df8a75a Make RTMP listen optional. 2025-10-13 09:39:11 -04:00
winlin
1606c3d713 Fix utest failed. 2025-10-13 09:23:57 -04:00
OSSRS-AI
6846f8e893 AI: Add utest to cover recv thread module 2025-10-12 23:10:38 -04:00
OSSRS-AI
a3f8d13c0a AI: Fix utest fail bug. 2025-10-11 23:50:48 -04:00
OSSRS-AI
ef2bb34569 AI: Add utest to cover http module 2025-10-11 22:13:00 -04:00
OSSRS-AI
e8ac08dfa2 AI: Add utest to cover caster flv module. 2025-10-11 12:39:22 -04:00
OSSRS-AI
4004ddb5c0 AI: Add test to cover app caster module 2025-10-11 10:18:52 -04:00
OSSRS-AI
b239975458 AI: Add utest to cover encoder module 2025-10-11 08:22:34 -04:00
OSSRS-AI
c6c6f38ed7 AI: Add utest to cover the rtc server. 2025-10-10 23:52:26 -04:00
OSSRS-AI
604f9450fc AI: Add utest to cover srt module. 2025-10-10 22:48:09 -04:00
OSSRS-AI
af655c53c5 AI: Fix blackbox test bug for DVR. 2025-10-10 17:48:48 -04:00
OSSRS-AI
ae2ba44df4 AI: Add utest to cover hooks module. 2025-10-10 11:43:24 -04:00
OSSRS-AI
afeea8aed5 AI: Add utest to cover listener module. 2025-10-10 09:50:19 -04:00
OSSRS-AI
de3d5bd1f5 AI: Add utest to cover dash module. 2025-10-09 22:34:26 -04:00
OSSRS-AI
646b833757 AI: Add utest to cover the rtc network module. 2025-10-09 09:20:00 -04:00