Video Bugfix + generator (#96)

* Code

* Fix demo

* move to init

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
This commit is contained in:
Freddy Boulton
2025-02-27 12:30:19 -05:00
committed by GitHub
parent 43e42c1b22
commit 9cc0278985
13 changed files with 73 additions and 41 deletions

View File

@@ -148,6 +148,7 @@
{icon}
{icon_button_color}
{pulse_color}
{icon_radius}
{button_labels}
on:clear={() => gradio.dispatch("clear")}
on:play={() => gradio.dispatch("play")}

View File

@@ -30,6 +30,7 @@
export let icon: string | undefined | ComponentType = undefined;
export let icon_button_color: string = "var(--color-accent)";
export let pulse_color: string = "var(--color-accent)";
export let icon_radius: number = 50;
const dispatch = createEventDispatcher<{
change: FileData | null;
@@ -62,8 +63,8 @@
{icon}
{icon_button_color}
{pulse_color}
{button_labels}
{icon_radius}
{button_labels}
on:error
on:start_recording
on:stop_recording

View File

@@ -33,6 +33,7 @@
export let rtp_params: RTCRtpParameters = {} as RTCRtpParameters;
export let icon: string | undefined | ComponentType = undefined;
export let icon_button_color: string = "var(--color-accent)";
export let icon_radius: number = 50;
export let pulse_color: string = "var(--color-accent)";
export let button_labels: { start: string; stop: string; waiting: string };
@@ -242,6 +243,7 @@
icon={icon || Mic}
{icon_button_color}
{pulse_color}
{icon_radius}
/>
</div>
{/if}