| | |
| | | } |
| | | |
| | | const handleEnter = () => { |
| | | if(!showPlay.value && !showLoading.value) { |
| | | if(props.item.deviceId && props.item.channelId && !showPlay.value && !showLoading.value) { |
| | | showPause.value = true; |
| | | } |
| | | } |
| | |
| | | audio: true, |
| | | recorder: false, |
| | | }, |
| | | controlAutoHide: true, |
| | | forceNoOffscreen: true, |
| | | controlAutoHide: false, |
| | | forceNoOffscreen: false, |
| | | hasAudio: false, |
| | | heartTimeout: 5, |
| | | heartTimeoutReplay:true, |
| | | heartTimeoutReplayTimes: 3, |
| | | hiddenAutoPause: false, |
| | | isNotMute: false, |
| | | heartTimeoutReplay:false, |
| | | hotKey: true, |
| | | isFlv: false, |
| | | recordType: "mp4", |
| | | }) |
| | | ); |
| | | } |
| | |
| | | if(props.autoPlay && props.item.deviceId && props.item.channelId) { |
| | | handlePlayer() |
| | | } |
| | | if(!props.item.deviceId || !props.item.channelId) { |
| | | showPlay.value = false; |
| | | } |
| | | }; |
| | | |
| | | onMounted(() => { |