画中画时,关闭摄像头时隐藏画面

This commit is contained in:
杍超
2025-02-07 17:17:19 +08:00
parent 54e5004b18
commit 32068a9351
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -378,7 +378,7 @@
style:width={videoShowType=== 'picture-in-picture'?localVideoPosition.width+'px': ''}
style:height={videoShowType === 'picture-in-picture' ? localVideoPosition.height + 'px': ''}
>
<video class="local-video" on:playing={computeLocalPosition} bind:this={localVideoRef} autoplay muted playsinline />
<video class="local-video" on:playing={computeLocalPosition} bind:this={localVideoRef} autoplay muted playsinline style:visibility={videoShowType === 'picture-in-picture' && cameraOff? 'hidden': 'visible'}/>
</div>
<div class=remote-video-container bind:this={remoteVideoContainerRef}
style:left={remoteVideoPosition.width < 10 ? '50%' :remoteVideoPosition.left + 'px'}