Browse Source

wss flv 播放国标视频 静音

dev_trial
巴林闲侠 2 years ago
parent
commit
e98e157854
  1. 8
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

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

@ -375,6 +375,8 @@ const VideoPlay = ({ dispatch, actions,
} }
}, [processDisX]) }, [processDisX])
// videoObj.type = '!yingshi'
const createPlay = async () => { const createPlay = async () => {
if (videoObj.type != 'yingshi') { if (videoObj.type != 'yingshi') {
try { try {
@ -586,7 +588,11 @@ const VideoPlay = ({ dispatch, actions,
{ {
videoObj.type == 'yingshi' ? videoObj.type == 'yingshi' ?
<div id={containerId} style={{ height: '100%', width: '100%', }}></div> : <div id={containerId} style={{ height: '100%', width: '100%', }}></div> :
<video id={containerId} muted style={{ height: '100%', width: '100%', }}></video> <video id={containerId}
autoplay muted
style={{ height: '100%', width: '100%', }}>
</video>
} }
{/* {videoMask ? <div style={{ height: '100%', width: '100%', position: 'absolute', top: '0', left: '0', backgroundColor: 'black', color: "red", }}><div style={{ position: 'absolute', top: 'calc(60%)', left: 0, zIndex: 99, textAlign: 'center', width: '100%' }}>{written}</div></div> : ''} */} {/* {videoMask ? <div style={{ height: '100%', width: '100%', position: 'absolute', top: '0', left: '0', backgroundColor: 'black', color: "red", }}><div style={{ position: 'absolute', top: 'calc(60%)', left: 0, zIndex: 99, textAlign: 'center', width: '100%' }}>{written}</div></div> : ''} */}

Loading…
Cancel
Save