From 342328d257c7f951b025b25405d7e77e17e66501 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 11 Sep 2023 19:18:45 +0800 Subject: [PATCH] Fix bug. v5.9.26 --- ui/src/components/TutorialsButton.js | 5 +++++ ui/src/pages/ScenarioTutorials.js | 1 + ui/src/pages/ScenarioVLive.js | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/src/components/TutorialsButton.js b/ui/src/components/TutorialsButton.js index 591eb235..18a317c6 100644 --- a/ui/src/components/TutorialsButton.js +++ b/ui/src/components/TutorialsButton.js @@ -31,6 +31,11 @@ function useTutorialsEn(mediumRef) { const ref = React.useRef({tutorials:[]}); const dict = React.useRef({ + 'ba1895828b4f': { + author: 'Winlin Yang', + link: 'https://blog.ossrs.io/virtual-live-events-revolutionizing-the-way-we-experience-entertainment-ba1895828b4f', + title: 'Virtual Live Events: Revolutionizing the Way We Experience Entertainment' + }, '2aa792c35b25': { author: 'Winlin Yang', link: 'https://blog.ossrs.io/how-to-record-live-streaming-to-mp4-file-2aa792c35b25', diff --git a/ui/src/pages/ScenarioTutorials.js b/ui/src/pages/ScenarioTutorials.js index 1c45c62a..43b6b35a 100644 --- a/ui/src/pages/ScenarioTutorials.js +++ b/ui/src/pages/ScenarioTutorials.js @@ -29,6 +29,7 @@ export default function ScenarioTutorials() { {id: 'cb618777639f'}, {id: '38be22beec57'}, {id: '2aa792c35b25'}, + {id: 'ba1895828b4f'}, ]) }); diff --git a/ui/src/pages/ScenarioVLive.js b/ui/src/pages/ScenarioVLive.js index e8e8da61..195e2ec0 100644 --- a/ui/src/pages/ScenarioVLive.js +++ b/ui/src/pages/ScenarioVLive.js @@ -350,13 +350,13 @@ function ScenarioVLiveImplEn({defaultActiveKey, defaultSecrets}) { const [wxLabel, setWxLabel] = React.useState(defaultSecrets?.wx?.label); const [wxFiles, setWxFiles] = React.useState(defaultSecrets?.wx?.files); const [bilibiliEnabled, setBilibiliEnabled] = React.useState(defaultSecrets?.bilibili?.enabled); - const [bilibiliServer, setBilibiliServer] = React.useState(defaultSecrets?.bilibili?.server); + const [bilibiliServer, setBilibiliServer] = React.useState(defaultSecrets?.bilibili?.server || 'rtmp://live.twitch.tv/app'); const [bilibiliSecret, setBilibiliSecret] = React.useState(defaultSecrets?.bilibili?.secret); const [bilibiliCustom, setBilibiliCustom] = React.useState(defaultSecrets?.bilibili?.custom); const [bilibiliLabel, setBilibiliLabel] = React.useState(defaultSecrets?.bilibili?.label); const [bilibiliFiles, setBilibiliFiles] = React.useState(defaultSecrets?.bilibili?.files); const [kuaishouEnabled, setKuaishouEnabled] = React.useState(defaultSecrets?.kuaishou?.enabled); - const [kuaishouServer, setKuaishouServer] = React.useState(defaultSecrets?.kuaishou?.server); + const [kuaishouServer, setKuaishouServer] = React.useState(defaultSecrets?.kuaishou?.server || 'rtmps://live-api-s.facebook.com:443/rtmp'); const [kuaishouSecret, setKuaishouSecret] = React.useState(defaultSecrets?.kuaishou?.secret); const [kuaishouCustom, setKuaishouCustom] = React.useState(defaultSecrets?.kuaishou?.custom); const [kuaishouLabel, setKuaishouLabel] = React.useState(defaultSecrets?.kuaishou?.label);