Skip to content

Commit

Permalink
Fix bug. v5.9.26
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Sep 11, 2023
1 parent cac9927 commit 342328d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ui/src/components/TutorialsButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions ui/src/pages/ScenarioTutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function ScenarioTutorials() {
{id: 'cb618777639f'},
{id: '38be22beec57'},
{id: '2aa792c35b25'},
{id: 'ba1895828b4f'},
])
});

Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/ScenarioVLive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 342328d

Please sign in to comment.