feat: add show_local_video param

This commit is contained in:
neil.xh
2025-01-21 20:07:40 +08:00
parent d34f1de277
commit 8e0fbe04f9
5 changed files with 12 additions and 4 deletions

View File

@@ -33,6 +33,7 @@
export let time_limit: number | null = null;
export let modality: "video" | "audio" | "audio-video" = "video";
export let mode: "send-receive" | "receive" | "send" = "send-receive";
export let show_local_video = false;
export let rtp_params: RTCRtpParameters = {} as RTCRtpParameters;
export let track_constraints: MediaTrackConstraints = {};
export let icon: string | undefined = undefined;
@@ -107,6 +108,7 @@
{show_label}
active_source={"webcam"}
include_audio={modality === "audio-video"}
show_local_video={mode === "send-receive" && modality === "audio-video" && show_local_video}
{server}
{rtc_configuration}
{time_limit}