mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
[feat] update some feature
sync code of fastrtc, add text support through datachannel, fix safari connect problem support chat without camera or mic
This commit is contained in:
13
frontend/shared/VideoChat/icons/IconFont.svelte
Normal file
13
frontend/shared/VideoChat/icons/IconFont.svelte
Normal file
@@ -0,0 +1,13 @@
|
||||
<script lang="ts">
|
||||
export let color;
|
||||
export let fontSize = "16px";
|
||||
export let icon: any = undefined;
|
||||
</script>
|
||||
|
||||
<span style={`color: ${color}; font-size: ${fontSize}`}>
|
||||
{#if icon}
|
||||
<svelte:component this={icon} />
|
||||
{:else}
|
||||
<slot></slot>
|
||||
{/if}
|
||||
</span>
|
||||
Reference in New Issue
Block a user