Skip to content

Commit

Permalink
HLS: Fix LL HLS setting bug. v5.12.21
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jan 8, 2024
1 parent a32a81d commit be51744
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,8 @@ The following are the update records for the SRS Stack server.
* Transcript: Check the base url for OpenAI. [v5.12.17](https://github.com/ossrs/srs-stack/releases/tag/v5.12.17)
* HLS: Support low latency mode about 5s. v5.12.18
* RTSP: Rebuild the URL with escaped user info. v5.12.19
* VLive: Fix rebuild URL bug. [v5.12.20](https://github.com/ossrs/srs-stack/releases/tag/v5.12.20)
* VLive: Fix rebuild URL bug. v5.12.20
* HLS: Fix LL HLS setting bug. [v5.12.21](https://github.com/ossrs/srs-stack/releases/tag/v5.12.21)
* v5.11
* VLive: Decrease the latency for virtual live. v5.11.1
* Live: Refine multiple language. v5.11.2
Expand Down
2 changes: 1 addition & 1 deletion platform/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
package main

// The version for platform.
const version = "v5.12.20"
const version = "v5.12.21"
2 changes: 1 addition & 1 deletion scripts/setup-aapanel/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "SRS Stack",
"name": "srs_stack",
"ps": "SRS Stack is an all-in-one, out-of-the-box, and open-source video solution for creating online video services, including live streaming and WebRTC, on the cloud or through self-hosting. Built with SRS, FFmpeg, and WebRTC, it supports various protocols and offers features like authentication, multi-platform streaming, recording, transcoding, virtual live events, transcription, automatic HTTPS, and HTTP Open API.",
"versions": "5.12.20",
"versions": "5.12.21",
"checks": "/www/server/panel/plugin/srs_stack",
"author": "Winlin",
"home": "https://github.com/ossrs/srs-stack"
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-bt/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "SRS音视频服务器",
"name": "srs_stack",
"ps": "SRS Stack让你一键拥有自己的视频云解决方案,可以在云上或私有化部署,支持丰富的音视频协议,提供鉴权、私人直播间、多平台转播、录制、转码、虚拟直播、AI字幕、自动HTTPS、开放API等丰富功能,基于SRS、FFmpeg和WebRTC构建。",
"versions": "5.12.20",
"versions": "5.12.21",
"checks": "/www/server/panel/plugin/srs_stack",
"author": "Winlin",
"home": "https://github.com/ossrs/srs-stack"
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-droplet/srs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"do_token": "{{env `DIGITALOCEAN_TOKEN`}}",
"image_name": "srs-5-snapshot-{{timestamp}}",
"application_name": "SRS",
"application_version": "5.12.20"
"application_version": "5.12.21"
},
"sensitive-variables": ["do_token"],
"builders": [
Expand Down
9 changes: 4 additions & 5 deletions ui/src/pages/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ function SettingHighPerformanceHLS() {
}, [handleError, noHlsCtx, t]);

React.useEffect(() => {
const token = Token.load();
axios.post('/terraform/v1/mgmt/hlsll/query', {
}, {
headers: Token.loadBearerHeader(),
...token
}).then(res => {
setHlsLL(res.data.data.hlsLowLatency === true);
console.log(`Status: Query ok, hlsLowLatency=${JSON.stringify(res.data.data)}`);
Expand All @@ -128,10 +128,9 @@ function SettingHighPerformanceHLS() {
const updateHlsLL = React.useCallback((e) => {
e.preventDefault();

const token = Token.load();
axios.post('/terraform/v1/mgmt/hlsll/update', {
hlsLowLatency: hlsLL,
}, {
headers: Token.loadBearerHeader(),
...token, hlsLowLatency: hlsLL,
}).then(res => {
alert(t('helper.setOk'));
}).catch(handleError);
Expand Down

0 comments on commit be51744

Please sign in to comment.