Browse Source

语音,云台

release_1.3.0
wenlele 3 years ago
parent
commit
5d7aaf18bd
  1. 6
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperation.jsx
  2. 7
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx
  3. 4
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/voiceHeader.jsx
  4. 6
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx

6
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperation.jsx

@ -55,7 +55,7 @@ const VideoOperation = ({
if (resolution == 'sd') {
player.play({ url: videoObj?.playUrlHd, options: { hd: true } })
} else {
player.play({ url: videoObj?.playUrlSd, options: { hd: false } } )
player.play({ url: videoObj?.playUrlSd, options: { hd: false } })
}
playState = false
})
@ -145,12 +145,12 @@ const VideoOperation = ({
}
</div>
<div style={{ display: 'flex', alignItems: 'center', userSelect: 'none' }}>
{
{videoObj.highDefinition ?
videoObj.playUrlSd && videoObj.playUrlHd ?
resolution == 'sd' ?
<div style={butStyle} onClick={changeResolution}>标清</div> :
<div style={butStyle} onClick={changeResolution}>高清</div>
: ''
: '' : ""
}
</div>
</> : ''

7
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

@ -67,7 +67,7 @@ const VideoPlay = ({ dispatch, actions,
iotVideoServer,
local, //
}) => {
// console.log(videoObj);
// console.log('1754',videoStyle);
if (videoObj.type == 'yingshi') {
videoObj = {
...videoObj,
@ -194,12 +194,13 @@ const VideoPlay = ({ dispatch, actions,
//
const operation = [{
key: 'control',
hide: !videoObj.cloudControl,
click: () => {
changeSelectState('control')
}
}, {
key: 'talk',
hide: !(videoObj.type == 'yingshi'),
hide: !videoObj.audio,
click: (e) => {
changeSelectState('talk')
}
@ -542,7 +543,7 @@ const VideoPlay = ({ dispatch, actions,
{/* 下方操作栏 */}
{/* 显示操作功能条件(宽高) */}
{size?.parentWidth > 320 ?
{size?.parentWidth > 480 ?
<VideoOperation
operationState={operationState} operation={operation}
voiceDisY={voiceDisY} setVoiceDisY={setVoiceDisY}

4
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/voiceHeader.jsx

@ -86,7 +86,7 @@ const VideoHeader = ({ operationState, changeSelectState, setProcessDisX, name,
color: '#fff'
}}>
<Row>
<Col span={histroyTime.length ? videoStyle == 'true' ? 3 : 9 : 0} style={{
<Col span={videoStyle == 'true' ? histroyTime.length ? 3 : 0 : 9} style={{
backgroundImage: content && content?.length > 0 ? 'url(/assets/images/background/videoPlayBg.png)' : '',
backgroundSize: '100% 100%',
backgroundRepeat: 'no-repeat',
@ -103,7 +103,7 @@ const VideoHeader = ({ operationState, changeSelectState, setProcessDisX, name,
'' : `${showTime_} ${name || ''}`
}
</Col>
<Col span={histroyTime.length ? videoStyle == 'true' ? 21 : 15 : 24} style={{}}>
<Col span={videoStyle == 'true' ? histroyTime.length ? 21 : 24 : vcmp_videopla > 480?15:10} style={{}}>
<div style={{ paddingRight: 12 }}>
{content && content?.length > 0 ? <TextScroll content={content || []} duration={6} videoObj={videoObj} /> : ""}
</div>

6
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx

@ -223,6 +223,9 @@ const CameraHeader = (props) => {
serialNo: row.serialNo,
yingshiToken: row.secretYingshi?.token,
channelNo: row.channelNo || 1,
audio:row.voice,
highDefinition:row.highDefinition,
cloudControl:row.cloudControl,
// playUrlSd: `ezopen://open.ys7.com/${row.serialNo}/${row.channelNo || 1}.live`,
// playUrlHd: `ezopen://open.ys7.com/${row.serialNo}/${row.channelNo || 1}.hd.live`,
// replayUrl: `ezopen://open.ys7.com/${row.serialNo}/${row.channelNo || 1}.hd.local.rec`,
@ -235,6 +238,9 @@ const CameraHeader = (props) => {
serialNo: row.serialNo,
topSerialNo: row.topSerialNo,
playUrlSd: row.gbCamera?.playUrl?.liveUrl?.sd["WS-RAW"],
audio:row.voice,
highDefinition:row.highDefinition,
cloudControl:row.cloudControl,
content: data,
})
}

Loading…
Cancel
Save