Skip to content

Commit e8c0f42

Browse files
chundonglinlinwinlinvip
authored andcommitted
Support build without cache to test if actions fail. v5.0.196 (ossrs#3858)
By default, caching is enabled during compilation, which means that data is cached in Docker. This helps to avoid compiling third-party dependency libraries. However, sometimes when updating third-party libraries, it's necessary to disable caching to temporarily verify if the pipeline can succeed. Therefore, a configure option should be added. When this option is enabled, the compilation cache will not be used, and all third-party libraries will be compiled from scratch. --------- Co-authored-by: winlin <[email protected]>
1 parent 264414b commit e8c0f42

16 files changed

+49
-34
lines changed

trunk/auto/depends.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ fi
177177
#####################################################################################
178178
# Use srs-cache from base image. See https://github.com/ossrs/dev-docker/blob/ubuntu20-cache/Dockerfile
179179
# Note that the cache for cygwin is not under /usr/local, but copy to objs instead.
180-
if [[ -d /usr/local/srs-cache/srs/trunk/objs && $(pwd) != "/usr/local/srs-cache/srs/trunk" ]]; then
180+
if [[ -d /usr/local/srs-cache/srs/trunk/objs && $(pwd) != "/usr/local/srs-cache/srs/trunk" && $SRS_BUILD_CACHE == YES ]]; then
181181
SOURCE_DIR=$(ls -d /usr/local/srs-cache/srs/trunk/objs/Platform-SRS${SRS_MAJOR}-* 2>/dev/null|head -n 1)
182182
if [[ -d $SOURCE_DIR ]]; then
183183
TARGET_DIR=${SRS_OBJS}/${SRS_PLATFORM} &&

trunk/auto/options.sh

+6
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ SRS_CROSS_BUILD_ARCH=
107107
SRS_CROSS_BUILD_HOST=
108108
# For cross build, the cross prefix, for example(FFmpeg), --cross-prefix=aarch64-linux-gnu-
109109
SRS_CROSS_BUILD_PREFIX=
110+
# For cache build
111+
SRS_BUILD_CACHE=YES
110112
#
111113
#####################################################################################
112114
# Toolchain for cross-build on Ubuntu for ARM or MIPS.
@@ -445,6 +447,10 @@ function parse_user_option() {
445447
--ffmpeg) SRS_FFMPEG_TOOL=$(switch2value $value) ;;
446448
--ffmpeg-tool) SRS_FFMPEG_TOOL=$(switch2value $value) ;;
447449

450+
# use cache for build.
451+
--build-cache) SRS_BUILD_CACHE=YES ;;
452+
--without-build-cache) SRS_BUILD_CACHE=NO ;;
453+
448454
*)
449455
echo "$0: error: invalid option \"$option\""
450456
exit 1

trunk/doc/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The changelog for SRS.
77
<a name="v5-changes"></a>
88

99
## SRS 5.0 Changelog
10+
* v5.0, 2023-11-01, Merge [#3858](https://github.com/ossrs/srs/pull/3858): Support build without cache to test if actions fail. v5.0.196 (#3858)
1011
* v5.0, 2023-10-25, Merge [#3845](https://github.com/ossrs/srs/pull/3845): RTC: Fix FFmpeg opus audio noisy issue. v5.0.195 (#3845)
1112
* v5.0, 2023-10-21, Merge [#3847](https://github.com/ossrs/srs/pull/3847): WebRTC: TCP transport should use read_fully instead of read. v5.0.194 (#3847)
1213
* v5.0, 2023-10-20, Merge [#3846](https://github.com/ossrs/srs/pull/3846): Added system library option for ffmpeg, srtp, srt libraries. v5.0.193 (#3846)

trunk/research/players/rtc_player.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<a id="srs_index" class="brand" href="https://github.com/ossrs/srs">SRS</a>
2424
<div class="nav-collapse collapse">
2525
<ul class="nav">
26-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
26+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
2727
<li class="active"><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
2828
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
2929
<li><a id="nav_whip" href="whip.html">WHIP</a></li>

trunk/research/players/rtc_publisher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<a id="srs_index" class="brand" href="https://github.com/ossrs/srs">SRS</a>
2424
<div class="nav-collapse collapse">
2525
<ul class="nav">
26-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
26+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
2727
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
2828
<li class="active"><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
2929
<li><a id="nav_whip" href="whip.html">WHIP</a></li>

trunk/research/players/srs_bwt.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<a id="srs_index" class="brand" href="#">SRS</a>
2323
<div class="nav-collapse collapse">
2424
<ul class="nav">
25-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
25+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
2626
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
2727
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
2828
<li><a id="nav_srs_publisher" href="srs_publisher.html">SRS编码器</a></li>

trunk/research/players/srs_chat.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<a id="srs_index" class="brand" href="#">SRS</a>
2222
<div class="nav-collapse collapse">
2323
<ul class="nav">
24-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
24+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
2525
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
2626
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
2727
<li><a id="nav_srs_publisher" href="srs_publisher.html">SRS编码器</a></li>

trunk/research/players/srs_gb28181.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<a id="srs_index" class="brand" href="#">SRS</a>
3636
<div class="nav-collapse collapse">
3737
<ul class="nav">
38-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
38+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
3939
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
4040
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
4141
<li><a href="http://ossrs.net/srs.release/releases/app.html">iOS/Andriod</a></li>

trunk/research/players/srs_player.html

+17-17
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<a id="srs_index" class="brand" href="#">SRS</a>
1919
<div class="nav-collapse collapse">
2020
<ul class="nav">
21-
<li class="active"><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
22-
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
23-
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
21+
<li class="active"><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
22+
<!--<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>-->
23+
<!--<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>-->
2424
<li><a id="nav_whip" href="whip.html">WHIP</a></li>
2525
<li><a id="nav_whep" href="whip.html">WHEP</a></li>
2626
<li><a href="http://ossrs.net/srs.release/releases/app.html">iOS/Andriod</a></li>
@@ -44,30 +44,30 @@
4444
<div id="main_content">
4545
<div id="main_info" class="alert alert-info fade in">
4646
<button type="button" class="close" data-dismiss="alert">×</button>
47-
<strong><span>Usage:</span></strong> <span>输入HTTP-FLV/HLS地址后点击“播放视频”即可播放视频</span>
47+
<strong><span>Usage:</span></strong> <span>Enter the HTTP-FLV/HLS URL and click "Play" to start playing the video.</span>
4848
</div>
4949
<div class="form-inline">
5050
<div>
5151
URL:
5252
<input type="text" id="txt_url" class="input-xxlarge" value="">
53-
<button class="btn btn-primary" id="btn_play">播放视频</button>
53+
<button class="btn btn-primary" id="btn_play">Play</button>
5454
</div>
5555
<p></p>
5656
<div>
5757
<video id="video_player" width="100%" autoplay controls></video>
5858
</div>
5959
<p>
60-
分享:<a href="#" id="link_url" target="_blank">请右键拷贝此链接</a>
60+
Share: <a href="#" id="link_url" target="_blank">Please right-click and copy this link.</a>
6161
</p>
6262
<div id="main_tips">
6363
<p></p>
6464
<p>
65-
推荐的其他播放器:
65+
Recommended other players:
6666
<ul>
67-
<li><a href="https://github.com/xqq/mpegts.js">flv.js</a>,H5/MSE播放HTTP-FLV</li>
68-
<li><a href="https://github.com/xqq/mpegts.js">mpegts.js</a>,H5/MSE播放HTTP-TS</li>
69-
<li><a href="https://github.com/video-dev/hls.js/">hls.js</a>,H5/MSE播放HLS</li>
70-
<li><a href="https://github.com/Dash-Industry-Forum/dash.js">dash.js</a>,H5/MSE播放MPEG-DASH</li>
67+
<li><a href="https://github.com/xqq/mpegts.js">flv.js</a>, HTML5/MSE for playing HTTP-FLV</li>
68+
<li><a href="https://github.com/xqq/mpegts.js">mpegts.js</a>, HTML5/MSE for playing HTTP-TS</li>
69+
<li><a href="https://github.com/video-dev/hls.js/">hls.js</a>, HTML5/MSE for playing HLS</li>
70+
<li><a href="https://github.com/Dash-Industry-Forum/dash.js">dash.js</a>, HTML5/MSE for playing MPEG-DASH</li>
7171
</ul>
7272
</p>
7373
</div>
@@ -78,14 +78,14 @@
7878
<div id="main_flash_alert" class="alert alert-danger fade in hide">
7979
<button type="button" class="close" data-dismiss="alert">×</button>
8080
<p>
81-
<a href="https://www.adobe.com/products/flashplayer/end-of-life.html" target="_blank">Flash已死</a>
82-
无法播放RTMP流,可用ffplay或VLC播放器播放。
81+
<a href="https://www.adobe.com/products/flashplayer/end-of-life.html" target="_blank">Flash is dead</a>
82+
Unable to play RTMP streams, you can use ffplay or VLC player to play.
8383
</p>
8484
<ul>
85-
<li>若希望做低延迟直播(3-5秒),可用HTTP-FLV,播放器用<a href="https://github.com/xqq/mpegts.js">flv.js</a>H5/MSE播放HTTP-FLV</li>
86-
<li>若希望做低延迟直播(3-5秒),可用HTTP-TS,播放器用<a href="https://github.com/xqq/mpegts.js">mpegts.js</a>H5/MSE播放HTTP-TS</li>
87-
<li>若对延迟不敏感(5-10秒),跨平台比较好,可用HLS,播放器用<a href="https://github.com/video-dev/hls.js/">hls.js</a>H5/MSE播放HLS</li>
88-
<li>若希望超低延迟(1秒内),只需要支持主流的浏览器,可用WebRTC,播放器用<a href="rtc_player.html">RTC播放器</a></li>
85+
<li>If you want low-latency live streaming (3-5 seconds), you can use HTTP-FLV with the <a href="https://github.com/xqq/mpegts.js">flv.js</a> player for H5/MSE playback of HTTP-FLV.</li>
86+
<li>If you want low-latency live streaming (3-5 seconds), you can use HTTP-TS with the <a href="https://github.com/xqq/mpegts.js">mpegts.js</a> player for H5/MSE playback of HTTP-TS.</li>
87+
<li>If you are not sensitive to latency (5-10 seconds) and want better cross-platform compatibility, you can use HLS with the <a href="https://github.com/video-dev/hls.js/">hls.js</a> player for H5/MSE playback of HLS.</li>
88+
<li>If you want ultra-low latency (within 1 second) and only need to support mainstream browsers, you can use WebRTC with the <a href="rtc_player.html">RTC player</a>.</li>
8989
</ul>
9090
<p>
9191
更多信息,参考<a href="https://mp.weixin.qq.com/s/oYn5q4fF9afaged23Ueudg" target="_blank">没有Flash如何做直播?</a>

trunk/research/players/srs_player_deprecated.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<a id="srs_index" class="brand" href="#">SRS</a>
3333
<div class="nav-collapse collapse">
3434
<ul class="nav">
35-
<li class="active"><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
35+
<li class="active"><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
3636
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
3737
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
3838
<li><a href="http://ossrs.net/srs.release/releases/app.html">iOS/Andriod</a></li>

trunk/research/players/srs_publisher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<a id="srs_index" class="brand" href="#">SRS</a>
2222
<div class="nav-collapse collapse">
2323
<ul class="nav">
24-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
24+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
2525
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
2626
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
2727
</ul>

trunk/research/players/srs_publisher_flash.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<a id="srs_index" class="brand" href="#">SRS</a>
1919
<div class="nav-collapse collapse">
2020
<ul class="nav">
21-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
21+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
2222
</ul>
2323
</div>
2424
</div>

trunk/research/players/vlc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<a id="srs_index" class="brand" href="#">SRS</a>
1919
<div class="nav-collapse collapse">
2020
<ul class="nav">
21-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
21+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
2222
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
2323
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
2424
<li><a id="nav_srs_publisher" href="srs_publisher.html">SRS编码器</a></li>

trunk/research/players/whep.html

+7-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<a id="srs_index" class="brand" href="https://github.com/ossrs/srs">SRS</a>
2424
<div class="nav-collapse collapse">
2525
<ul class="nav">
26-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
27-
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
28-
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
26+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
27+
<!--<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>-->
28+
<!--<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>-->
2929
<li><a id="nav_whip" href="whip.html">WHIP</a></li>
3030
<li class="active"><a id="nav_whep" href="whip.html">WHEP</a></li>
3131
<li><a href="http://ossrs.net/srs.release/releases/app.html">iOS/Andriod</a></li>
@@ -45,6 +45,10 @@
4545
</div>
4646
</div>
4747
<div class="container">
48+
<div id="main_info" class="alert alert-info fade in">
49+
<button type="button" class="close" data-dismiss="alert">×</button>
50+
<strong><span>Usage:</span></strong> <span>Enter the WebRTC WHEP URL and click "Play" to start playing.</span>
51+
</div>
4852
<div class="form-inline">
4953
URL:
5054
<input type="text" id="txt_url" class="input-xxlarge" value="">

trunk/research/players/whip.html

+7-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<a id="srs_index" class="brand" href="https://github.com/ossrs/srs">SRS</a>
2424
<div class="nav-collapse collapse">
2525
<ul class="nav">
26-
<li><a id="nav_srs_player" href="srs_player.html">SRS播放器</a></li>
27-
<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>
28-
<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>
26+
<li><a id="nav_srs_player" href="srs_player.html">LivePlayer</a></li>
27+
<!--<li><a id="nav_rtc_player" href="rtc_player.html">RTC播放器</a></li>-->
28+
<!--<li><a id="nav_rtc_publisher" href="rtc_publisher.html">RTC推流</a></li>-->
2929
<li class="active"><a id="nav_whip" href="whip.html">WHIP</a></li>
3030
<li><a id="nav_whep" href="whip.html">WHEP</a></li>
3131
<li><a href="http://ossrs.net/srs.release/releases/app.html">iOS/Andriod</a></li>
@@ -45,6 +45,10 @@
4545
</div>
4646
</div>
4747
<div class="container">
48+
<div id="main_info" class="alert alert-info fade in">
49+
<button type="button" class="close" data-dismiss="alert">×</button>
50+
<strong><span>Usage:</span></strong> <span>Enter the WebRTC WHIP URL and click "Publish" to start publishing.</span>
51+
</div>
4852
<div class="form-inline">
4953
URL:
5054
<input type="text" id="txt_url" class="input-xxlarge" value="">

trunk/src/core/srs_core_version5.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
#define VERSION_MAJOR 5
1111
#define VERSION_MINOR 0
12-
#define VERSION_REVISION 195
12+
#define VERSION_REVISION 196
1313

1414
#endif

0 commit comments

Comments
 (0)