mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Fix interactive video (#350)
* n * remove template * Add templates * remove print
This commit is contained in:
@@ -45,12 +45,11 @@
|
||||
upload: FileData;
|
||||
start_recording?: never;
|
||||
stop_recording?: never;
|
||||
tick: never;
|
||||
tick: undefined;
|
||||
}>();
|
||||
|
||||
let dragging = false;
|
||||
$: dispatch("drag", dragging);
|
||||
$: webrtc_id = typeof value === "string" ? value : value.webrtc_id;
|
||||
</script>
|
||||
|
||||
<BlockLabel {show_label} Icon={Video} label={label || "Video"} />
|
||||
@@ -75,7 +74,7 @@
|
||||
{i18n}
|
||||
stream_every={0.5}
|
||||
{server}
|
||||
bind:webrtc_id
|
||||
bind:webrtc_id={value}
|
||||
{reject_cb}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user