import React, { useState, useEffect, useRef } from "react"; import { connect } from "react-redux"; import moment from 'moment' import VideoOperationCloudControl from './videoOperationCloudControl' import VideoOperationTalk from './videoOperationTalk' import VideoOperationSpeed from './videoOperationSpeed' import VideoOperationVoice from './videoOperationVoice' import VideoOperationTime from './videoOperationTime' import { IconPause, IconPlay } from '@douyinfe/semi-icons'; import './videoPlay.less'; const VideoOperation = ({ operationState, operation, voiceDisY, setVoiceDisY, resolution, setResolution }) => { const [showTimeSelect, setShowTimeSelect] = useState(false) const butStyle = { border: '1px solid #fff', display: 'inline-block', color: '#fff', padding: '0 10px', display: 'flex', alignItems: 'center', height: '64%', marginLeft: 12, cursor: 'pointer', position: 'relative' } const changeResolution = () => { setResolution(resolution == 'sd' ? 'hd' : 'sd') } return ( <> { operationState ? operationState.control.select ? : operationState.talk.select ? : '' : '' } { showTimeSelect ? { setShowTimeSelect(false) }} /> : '' } {/* 下方操作 */}
{ operationState ? operationState.histroy.select ? <>
{/* */} {moment().format('YYYY-MM-DD HH:mm:ss')}/{moment().format('YYYY-MM-DD HH:mm:ss')}
{ setShowTimeSelect(!showTimeSelect) }}>时间设置
: <>
{ operationState ? operation.map(p => { return }) : '' }
{ resolution == 'sd' ?
标清
:
高清
}
: '' }
) } function mapStateToProps (state) { const { auth } = state; return { user: auth.user, }; } export default connect(mapStateToProps)(VideoOperation);