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

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

@ -67,7 +67,7 @@ const VideoPlay = ({ dispatch, actions,
iotVideoServer, iotVideoServer,
local, // local, //
}) => { }) => {
// console.log(videoObj); // console.log('1754',videoStyle);
if (videoObj.type == 'yingshi') { if (videoObj.type == 'yingshi') {
videoObj = { videoObj = {
...videoObj, ...videoObj,
@ -194,12 +194,13 @@ const VideoPlay = ({ dispatch, actions,
// //
const operation = [{ const operation = [{
key: 'control', key: 'control',
hide: !videoObj.cloudControl,
click: () => { click: () => {
changeSelectState('control') changeSelectState('control')
} }
}, { }, {
key: 'talk', key: 'talk',
hide: !(videoObj.type == 'yingshi'), hide: !videoObj.audio,
click: (e) => { click: (e) => {
changeSelectState('talk') changeSelectState('talk')
} }
@ -226,7 +227,7 @@ const VideoPlay = ({ dispatch, actions,
} }
}, { }, {
key: 'histroy', key: 'histroy',
hide: !Boolean(videoObj.replayUrl), hide: !Boolean(videoObj.replayUrl),
click: () => { click: () => {
changeSelectState('histroy') changeSelectState('histroy')
videoFront = new moment(); // videoFront = new moment(); //
@ -542,7 +543,7 @@ const VideoPlay = ({ dispatch, actions,
{/* 下方操作栏 */} {/* 下方操作栏 */}
{/* 显示操作功能条件(宽高) */} {/* 显示操作功能条件(宽高) */}
{size?.parentWidth > 320 ? {size?.parentWidth > 480 ?
<VideoOperation <VideoOperation
operationState={operationState} operation={operation} operationState={operationState} operation={operation}
voiceDisY={voiceDisY} setVoiceDisY={setVoiceDisY} 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' color: '#fff'
}}> }}>
<Row> <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)' : '', backgroundImage: content && content?.length > 0 ? 'url(/assets/images/background/videoPlayBg.png)' : '',
backgroundSize: '100% 100%', backgroundSize: '100% 100%',
backgroundRepeat: 'no-repeat', backgroundRepeat: 'no-repeat',
@ -103,7 +103,7 @@ const VideoHeader = ({ operationState, changeSelectState, setProcessDisX, name,
'' : `${showTime_} ${name || ''}` '' : `${showTime_} ${name || ''}`
} }
</Col> </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 }}> <div style={{ paddingRight: 12 }}>
{content && content?.length > 0 ? <TextScroll content={content || []} duration={6} videoObj={videoObj} /> : ""} {content && content?.length > 0 ? <TextScroll content={content || []} duration={6} videoObj={videoObj} /> : ""}
</div> </div>

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

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

Loading…
Cancel
Save