Skip to content

Commit d4d1d5d

Browse files
winlinvipossrs-ai
andauthored
AI: Move some app files to kernel. v7.0.86 (ossrs#4486)
Co-authored-by: OSSRS-AI <winlinam@gmail.com>
1 parent 2384f3f commit d4d1d5d

127 files changed

Lines changed: 2500 additions & 2255 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ or [Chinese](https://ossrs.net/lts/zh-cn/docs/v5/doc/getting-started). We highly
2929

3030
```bash
3131
docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 \
32-
-p 8000:8000/udp -p 10080:10080/udp ossrs/srs:5
32+
-p 8000:8000/udp -p 10080:10080/udp ossrs/srs:6
3333
```
3434

35-
> Tips: If you're in China, use this image `registry.cn-hangzhou.aliyuncs.com/ossrs/srs:5` for faster speed.
35+
> Tips: If you're in China, use this image `registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6` for faster speed.
3636
3737
Open [http://localhost:8080/](http://localhost:8080/) to verify, and then stream using the following
3838
[FFmpeg](https://ffmpeg.org/download.html) command:

‎trunk/configure‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ MODULE_FILES=("srs_kernel_error" "srs_kernel_log" "srs_kernel_buffer"
250250
"srs_kernel_utility" "srs_kernel_flv" "srs_kernel_codec" "srs_kernel_io"
251251
"srs_kernel_consts" "srs_kernel_aac" "srs_kernel_mp3" "srs_kernel_ts" "srs_kernel_ps"
252252
"srs_kernel_stream" "srs_kernel_balance" "srs_kernel_mp4" "srs_kernel_file"
253-
"srs_kernel_kbps" "srs_kernel_rtc_rtp" "srs_kernel_rtc_rtcp" "srs_kernel_packet")
253+
"srs_kernel_kbps" "srs_kernel_rtc_rtp" "srs_kernel_rtc_rtcp" "srs_kernel_packet"
254+
"srs_kernel_uuid" "srs_kernel_st" "srs_kernel_factory" "srs_kernel_hourglass"
255+
"srs_kernel_pithy_print" "srs_kernel_rtc_queue" "srs_kernel_resource")
254256
KERNEL_INCS="src/kernel"; MODULE_DIR=${KERNEL_INCS} . $SRS_WORKDIR/auto/modules.sh
255257
KERNEL_OBJS="${MODULE_OBJS[@]}"
256258
#
@@ -260,15 +262,15 @@ MODULE_DEPENDS=("CORE" "KERNEL")
260262
ModuleLibIncs=(${SRS_OBJS} ${LibSTRoot} ${LibSSLRoot})
261263
MODULE_FILES=("srs_protocol_amf0" "srs_protocol_io" "srs_protocol_conn" "srs_protocol_rtmp_handshake"
262264
"srs_protocol_rtmp_stack" "srs_protocol_utility" "srs_protocol_rtmp_msg_array" "srs_protocol_stream"
263-
"srs_protocol_raw_avc" "srs_protocol_http_stack" "srs_protocol_kbps" "srs_protocol_json"
265+
"srs_protocol_raw_avc" "srs_protocol_http_stack" "srs_protocol_json"
264266
"srs_protocol_format" "srs_protocol_log" "srs_protocol_st" "srs_protocol_http_client"
265267
"srs_protocol_http_conn" "srs_protocol_rtmp_conn" "srs_protocol_protobuf"
266268
"srs_protocol_http_stack_llhttp" "srs_protocol_http_stack_llhttpapi"
267269
"srs_protocol_http_stack_llhttpadapter" "srs_protocol_http_stack_llhttphttp")
268270
# Always include SRT protocol
269271
MODULE_FILES+=("srs_protocol_srt")
270272
ModuleLibIncs+=(${LibSRTRoot})
271-
MODULE_FILES+=("srs_protocol_rtc_stun" "srs_protocol_rtp")
273+
MODULE_FILES+=("srs_protocol_rtc_stun" "srs_protocol_rtp" "srs_protocol_sdp")
272274
if [[ $SRS_RTSP == YES ]]; then
273275
MODULE_FILES+=("srs_protocol_rtsp_stack")
274276
fi
@@ -286,22 +288,22 @@ fi
286288
if [[ $SRS_FFMPEG_FIT == YES ]]; then
287289
ModuleLibIncs+=("${LibFfmpegRoot[*]}")
288290
fi
289-
MODULE_FILES=("srs_app_server" "srs_app_conn" "srs_app_rtmp_conn" "srs_app_source"
291+
MODULE_FILES=("srs_app_server" "srs_app_rtmp_conn" "srs_app_rtmp_source"
290292
"srs_app_refer" "srs_app_hls" "srs_app_forward" "srs_app_encoder" "srs_app_http_stream"
291293
"srs_app_st" "srs_app_log" "srs_app_config" "srs_app_stream_bridge"
292-
"srs_app_pithy_print" "srs_app_reload" "srs_app_http_api" "srs_app_http_conn" "srs_app_http_hooks"
294+
"srs_app_reload" "srs_app_http_api" "srs_app_http_conn" "srs_app_http_hooks"
293295
"srs_app_ingest" "srs_app_ffmpeg" "srs_app_utility" "srs_app_edge"
294-
"srs_app_heartbeat" "srs_app_empty" "srs_app_http_client" "srs_app_http_static"
296+
"srs_app_heartbeat" "srs_app_http_client" "srs_app_http_static"
295297
"srs_app_recv_thread" "srs_app_security" "srs_app_statistic" "srs_app_hds"
296298
"srs_app_mpegts_udp" "srs_app_listener" "srs_app_async_call"
297-
"srs_app_caster_flv" "srs_app_latest_version" "srs_app_uuid" "srs_app_process" "srs_app_ng_exec"
298-
"srs_app_hourglass" "srs_app_dash" "srs_app_fragment" "srs_app_dvr"
299-
"srs_app_coworkers" "srs_app_circuit_breaker"
299+
"srs_app_caster_flv" "srs_app_latest_version" "srs_app_process" "srs_app_ng_exec"
300+
"srs_app_dash" "srs_app_fragment" "srs_app_dvr"
301+
"srs_app_coworkers" "srs_app_circuit_breaker" "srs_app_factory"
300302
"srs_app_stream_token")
301303
# Always include SRT app modules
302-
MODULE_FILES+=("srs_app_srt_server" "srs_app_srt_listener" "srs_app_srt_conn" "srs_app_srt_utility" "srs_app_srt_source")
303-
MODULE_FILES+=("srs_app_rtc_conn" "srs_app_rtc_dtls" "srs_app_rtc_sdp" "srs_app_rtc_network"
304-
"srs_app_rtc_queue" "srs_app_rtc_server" "srs_app_rtc_source" "srs_app_rtc_api")
304+
MODULE_FILES+=("srs_app_srt_server" "srs_app_srt_listener" "srs_app_srt_conn" "srs_app_srt_source")
305+
MODULE_FILES+=("srs_app_rtc_conn" "srs_app_rtc_dtls" "srs_app_rtc_network"
306+
"srs_app_rtc_server" "srs_app_rtc_source" "srs_app_rtc_api")
305307
if [[ $SRS_RTSP == YES ]]; then
306308
MODULE_FILES+=("srs_app_rtsp_source" "srs_app_rtsp_conn")
307309
fi

‎trunk/doc/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The changelog for SRS.
77
<a name="v7-changes"></a>
88

99
## SRS 7.0 Changelog
10+
* v7.0, 2025-09-13, Merge [#4486](https://github.com/ossrs/srs/pull/4486): Move some app files to kernel. v7.0.86 (#4486)
1011
* v7.0, 2025-09-12, Merge [#4485](https://github.com/ossrs/srs/pull/4485): AI: Fix naming problem for app module. v7.0.85 (#4485)
1112
* v7.0, 2025-09-09, Merge [#4446](https://github.com/ossrs/srs/pull/4446): SRT2RTMP: fix srt bridge hevc to rtmp error. v7.0.84 (#4446)
1213
* v7.0, 2025-09-09, Merge [#4482](https://github.com/ossrs/srs/pull/4482): AI: Fix naming issue for protocol module. v7.0.83 (#4482)

‎trunk/src/app/srs_app_async_call.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ISrsAsyncCallTask
4141
class SrsAsyncCallWorker : public ISrsCoroutineHandler
4242
{
4343
private:
44-
SrsCoroutine *trd_;
44+
ISrsCoroutine *trd_;
4545

4646
protected:
4747
std::vector<ISrsAsyncCallTask *> tasks_;

‎trunk/src/app/srs_app_caster_flv.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ using namespace std;
1111

1212
#include <srs_app_config.hpp>
1313
#include <srs_app_http_conn.hpp>
14-
#include <srs_app_pithy_print.hpp>
1514
#include <srs_app_rtmp_conn.hpp>
1615
#include <srs_app_st.hpp>
1716
#include <srs_app_utility.hpp>
1817
#include <srs_core_autofree.hpp>
1918
#include <srs_kernel_error.hpp>
2019
#include <srs_kernel_flv.hpp>
2120
#include <srs_kernel_log.hpp>
21+
#include <srs_kernel_pithy_print.hpp>
2222
#include <srs_kernel_utility.hpp>
2323
#include <srs_protocol_amf0.hpp>
2424
#include <srs_protocol_rtmp_stack.hpp>

‎trunk/src/app/srs_app_caster_flv.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ class SrsTcpClient;
2424
class SrsSimpleRtmpClient;
2525
class SrsAppCasterFlv;
2626

27-
#include <srs_app_conn.hpp>
2827
#include <srs_app_http_conn.hpp>
2928
#include <srs_app_listener.hpp>
3029
#include <srs_app_st.hpp>
3130
#include <srs_kernel_file.hpp>
31+
#include <srs_protocol_conn.hpp>
3232

3333
// A TCP listener, for flv stream server.
3434
class SrsHttpFlvListener : public ISrsTcpHandler, public ISrsListener

‎trunk/src/app/srs_app_circuit_breaker.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
#include <srs_app_circuit_breaker.hpp>
88

99
#include <srs_app_config.hpp>
10-
#include <srs_app_hourglass.hpp>
1110
#include <srs_app_server.hpp>
1211
#include <srs_app_utility.hpp>
12+
#include <srs_kernel_hourglass.hpp>
1313
#include <srs_kernel_kbps.hpp>
1414
#include <srs_kernel_utility.hpp>
1515

‎trunk/src/app/srs_app_circuit_breaker.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <srs_core.hpp>
1111

12-
#include <srs_app_hourglass.hpp>
12+
#include <srs_kernel_hourglass.hpp>
1313

1414
// Interface for circuit breaker functionality to protect server in high load conditions.
1515
// The circuit breaker monitors CPU usage and enables different levels of protection:

‎trunk/src/app/srs_app_config.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
using namespace std;
2727

2828
#include <srs_app_http_hooks.hpp>
29-
#include <srs_app_source.hpp>
29+
#include <srs_app_rtmp_source.hpp>
3030
#include <srs_app_statistic.hpp>
3131
#include <srs_app_utility.hpp>
3232
#include <srs_core_autofree.hpp>

‎trunk/src/app/srs_app_config.hpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <srs_app_async_call.hpp>
1919
#include <srs_app_reload.hpp>
2020
#include <srs_app_st.hpp>
21+
#include <srs_kernel_factory.hpp>
2122

2223
class ISrsRequest;
2324
class SrsFileWriter;
@@ -278,7 +279,7 @@ enum SrsReloadState {
278279
// that is, never save the SrsConfDirective* get by any api of config,
279280
// For it maybe free in the reload st-thread cycle.
280281
// You could keep it before st-thread switch, or simply never keep it.
281-
class SrsConfig
282+
class SrsConfig : public ISrsConfig
282283
{
283284
friend class SrsConfDirective;
284285
// user command

0 commit comments

Comments
 (0)