|
@ -457,7 +457,7 @@ const VideoPlay = ({ dispatch, actions, |
|
|
} else { |
|
|
} else { |
|
|
videoFront = new moment(); //验证前时间 |
|
|
videoFront = new moment(); //验证前时间 |
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
// setTimeout(() => { |
|
|
const player = new EZUIKit.EZUIKitPlayer({ |
|
|
const player = new EZUIKit.EZUIKitPlayer({ |
|
|
id: containerId, // 视频容器ID |
|
|
id: containerId, // 视频容器ID |
|
|
accessToken: videoObj?.yingshiToken, |
|
|
accessToken: videoObj?.yingshiToken, |
|
@ -479,7 +479,7 @@ const VideoPlay = ({ dispatch, actions, |
|
|
}) |
|
|
}) |
|
|
setPlayer(player) |
|
|
setPlayer(player) |
|
|
yingshiPlayer.current = player |
|
|
yingshiPlayer.current = player |
|
|
}, 0) |
|
|
// }, 0) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -551,9 +551,11 @@ const VideoPlay = ({ dispatch, actions, |
|
|
player.reSize(videoWidth, videoHeight) |
|
|
player.reSize(videoWidth, videoHeight) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
setTimeout(() => { |
|
|
if (videoObj.type == 'yingshi' && player?.pluginStatus) { |
|
|
if (videoObj.type == 'yingshi' && player?.pluginStatus) { |
|
|
player.reSize(videoWidth, videoHeight) |
|
|
player.reSize(videoWidth, videoHeight) |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
setSize({ parentWidth: containerWidth, parentHeight: containerHeight, width: videoWidth, height: videoHeight }) |
|
|
setSize({ parentWidth: containerWidth, parentHeight: containerHeight, width: videoWidth, height: videoHeight }) |
|
|
return data == 'width' ? videoWidth : data == 'height' ? videoHeight : '' |
|
|
return data == 'width' ? videoWidth : data == 'height' ? videoHeight : '' |
|
|