mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 09:59:22 +08:00
画中画时,关闭摄像头时隐藏画面
This commit is contained in:
BIN
dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl
vendored
BIN
dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl
vendored
Binary file not shown.
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user