Skip to content

Commit

Permalink
修复显示地址
Browse files Browse the repository at this point in the history
  • Loading branch information
langmansh committed Nov 28, 2021
1 parent 961440b commit 6dd567f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/view/player/ZLPlayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export default class ZLPlayer extends React.Component {
mainId:stream,
},
dataTotal: 0,
// page: 1,
// pageSize: 10,
iframe: false,
channelData: null,
currentUrl:'',
Expand Down Expand Up @@ -84,10 +82,10 @@ export default class ZLPlayer extends React.Component {
const {mediaServerIp, vhost, app, stream, iframe=false} = this.channelParams;
const urldata = {
play_addrs:{
flv:`http://${mediaServerIp}/`+app+'/'+stream+'.flv',
hls:`http://${mediaServerIp}/`+app+'/'+stream+'/hls.m3u8',
rtmp:`rtmp://${mediaServerIp}/`+app+'/'+stream,
rtsp:`rtsp://${mediaServerIp}/`+app+'/'+stream,
flv:`${apiDomin}/`+app+'/'+stream+'.flv',
hls:`${apiDomin}/`+app+'/'+stream+'/hls.m3u8',
rtmp:`${apiDomin}/`+app+'/'+stream,
rtsp:`${apiDomin}/`+app+'/'+stream,
}
}

Expand Down Expand Up @@ -335,7 +333,7 @@ export default class ZLPlayer extends React.Component {
</div>
<div>
<div>rtsp:</div>
<div><Input value={channelData.play_addrs.rtsp} addonAfter={<Icon type="copy"/>}/></div>
<div><Input value={channelData.play_addrs.rtsp.replace('http','rtsp')} addonAfter={<Icon type="copy"/>}/></div>
</div>
<div>
<div>rtmp:</div>
Expand Down

0 comments on commit 6dd567f

Please sign in to comment.