Browse Source

ceshi

dev_trial
wenlele 2 years ago
parent
commit
9e7c52f337
  1. 49
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

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

@ -8,7 +8,7 @@ import { Button, ToastFactory, } from '@douyinfe/semi-ui';
import VideoHeader from './voiceHeader' import VideoHeader from './voiceHeader'
import VideoOperation from './videoOperation' import VideoOperation from './videoOperation'
import './videoPlay.less'; import './videoPlay.less';
import EZUIKit, { log } from 'ezuikit-js' import EZUIKit from 'ezuikit-js'
import flvjs from 'flv.js' import flvjs from 'flv.js'
const timeFormat = 'YYYY-MM-DD HH:mm:ss' const timeFormat = 'YYYY-MM-DD HH:mm:ss'
@ -252,6 +252,7 @@ const VideoPlay = ({ dispatch, actions,
// }, [quanp.current]) // }, [quanp.current])
useEffect(() => { useEffect(() => {
console.log(videoObj)
createPlay() createPlay()
let nextOperationState = {} let nextOperationState = {}
for (let p of operation) { for (let p of operation) {
@ -455,27 +456,31 @@ const VideoPlay = ({ dispatch, actions,
flvPlayer.current = flv flvPlayer.current = flv
} else { } else {
videoFront = new moment(); // videoFront = new moment(); //
// const player = new EZUIKit.EZUIKitPlayer({
// id: containerId, // ID setTimeout(() => {
// accessToken: videoObj?.yingshiToken, const player = new EZUIKit.EZUIKitPlayer({
// url: videoObj.playUrlSd, id: containerId, // ID
// width: -10, accessToken: videoObj?.yingshiToken,
// height: -10, url: videoObj.playUrlSd,
// handleSuccess: (e) => { // width: -10,
// setRoll(true) height: -10,
// setVideoMask(false) handleSuccess: (e) => { //
// playState.current = true setRoll(true)
// videoAfter = new moment(); // setVideoMask(false)
// }, playState.current = true
// handleError: (e) => { // videoAfter = new moment(); //
// console.log(e, ''); },
// setNumbers(e.retcode) handleError: (e) => { //
// videoAfter = new moment(); // console.log(e, '播放失败');
// setDisappear(true) setNumbers(e.retcode)
// }, videoAfter = new moment(); //
// }) setDisappear(true)
// setPlayer(player) },
// yingshiPlayer.current = player })
setPlayer(player)
yingshiPlayer.current = player
}, 3000)
} }
} }

Loading…
Cancel
Save