|
@ -55,6 +55,7 @@ const VideoPlay = ({ |
|
|
const [isAdjustProcess, setIsAdjustProcess] = useState(false) |
|
|
const [isAdjustProcess, setIsAdjustProcess] = useState(false) |
|
|
const [histroyTime, setHistroyTime] = useState([]) |
|
|
const [histroyTime, setHistroyTime] = useState([]) |
|
|
const [histroyBegain, setHistroyBegain] = useState() |
|
|
const [histroyBegain, setHistroyBegain] = useState() |
|
|
|
|
|
const [roll, setRoll] = useState()//滚动备注 |
|
|
const [resolution, setResolution] = useState('sd') // 标清 sd 高清 hd |
|
|
const [resolution, setResolution] = useState('sd') // 标清 sd 高清 hd |
|
|
|
|
|
|
|
|
// 标记萤石操作中,等待ifream返回信息后清空 |
|
|
// 标记萤石操作中,等待ifream返回信息后清空 |
|
@ -65,6 +66,10 @@ const VideoPlay = ({ |
|
|
// 标记萤石操作中,等待ifream返回信息后清空 |
|
|
// 标记萤石操作中,等待ifream返回信息后清空 |
|
|
const yingshiPrepareRef = useRef(null) |
|
|
const yingshiPrepareRef = useRef(null) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
setRoll(false) |
|
|
|
|
|
}, [resolution]); |
|
|
|
|
|
|
|
|
const changeSelectState = (key) => { |
|
|
const changeSelectState = (key) => { |
|
|
if (videoObj.type == 'yingshi' && yingshiPrepareRef.current) { |
|
|
if (videoObj.type == 'yingshi' && yingshiPrepareRef.current) { |
|
|
return |
|
|
return |
|
@ -157,6 +162,7 @@ const VideoPlay = ({ |
|
|
console.log(e); |
|
|
console.log(e); |
|
|
if (origin !== 'https://open.ys7.com') return |
|
|
if (origin !== 'https://open.ys7.com') return |
|
|
if (data.type == "handleSuccess") { |
|
|
if (data.type == "handleSuccess") { |
|
|
|
|
|
setRoll(true) |
|
|
if (yingshiPrepareRef.current == 'play') { |
|
|
if (yingshiPrepareRef.current == 'play') { |
|
|
setIsPlaying(true) |
|
|
setIsPlaying(true) |
|
|
} |
|
|
} |
|
@ -311,6 +317,7 @@ const VideoPlay = ({ |
|
|
operationState={operationState} changeSelectState={changeSelectState} |
|
|
operationState={operationState} changeSelectState={changeSelectState} |
|
|
histroyTime={histroyTime} |
|
|
histroyTime={histroyTime} |
|
|
setoperationState={setoperationState} name={name} |
|
|
setoperationState={setoperationState} name={name} |
|
|
|
|
|
roll={roll} |
|
|
showTime={ |
|
|
showTime={ |
|
|
videoObj.type == 'yingshi' && yingshiPrepare == 'play' ? |
|
|
videoObj.type == 'yingshi' && yingshiPrepare == 'play' ? |
|
|
null : (histroyBegain || moment()) |
|
|
null : (histroyBegain || moment()) |
|
@ -368,7 +375,7 @@ const VideoPlay = ({ |
|
|
|
|
|
|
|
|
function mapStateToProps (state) { |
|
|
function mapStateToProps (state) { |
|
|
const { auth, global } = state; |
|
|
const { auth, global } = state; |
|
|
console.log(global); |
|
|
console.log('global',global); |
|
|
return { |
|
|
return { |
|
|
user: auth.user, |
|
|
user: auth.user, |
|
|
iotVideoServer: global.iotVideoServer, |
|
|
iotVideoServer: global.iotVideoServer, |
|
|