mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
f816136a03
* fix autoplay and add trim_region_color setting * add changeset * add changeset * add changeset * remove unused param * add changeset * add volume control functionality * add changeset * corrent change event to stop_recording * controls tweak * add tests * add changeset * hide volume when blurred * change bar height * normalise -> normalize * style tweaks * clean up volume control * add more tests * formatting * fix dispatch event * amend refs to source * add audio e2e * add changeset * fix test * clean up ids + refs * style tweak --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
13 lines
276 B
Svelte
13 lines
276 B
Svelte
<script lang="ts">
|
|
import { VolumeMuted, VolumeHigh, VolumeLow } from "@gradio/icons";
|
|
export let currentVolume: number;
|
|
</script>
|
|
|
|
{#if currentVolume == 0}
|
|
<VolumeMuted />
|
|
{:else if currentVolume < 0.5}
|
|
<VolumeLow />
|
|
{:else if currentVolume >= 0.5}
|
|
<VolumeHigh />
|
|
{/if}
|