Browse Source

rec地址改为live

master
liujiangyong 1 year ago
parent
commit
e01eb96ee0
  1. 7
      super-screen/client/src/sections/water-prevention/components/right-bottom.js

7
super-screen/client/src/sections/water-prevention/components/right-bottom.js

@ -23,7 +23,7 @@ function DataTop5(props) {
// key={Math.random()}
defaultValue={videoList[0]?.url}
// value={showVideoList}
onChange={(value) => { setShowVideoList(value); }}
onChange={(value) => { setShowVideoList(recUrlToLiveUrl(value)); }}
>
{videoList.map(s => <Option key={s.url} value={s.url}>{s.name}</Option>)}
</Select>
@ -53,4 +53,9 @@ function DataTop5(props) {
export default DataTop5;
function recUrlToLiveUrl(url) {
if (!url) return undefined;
return url.replace('.rec', '.live');
}

Loading…
Cancel
Save