simplify component exports
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
$: __internal_audio_metadata.update((x) => ({ ...x, muted }));
|
$: __internal_audio_metadata.update((x) => ({ ...x, muted }));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if src}
|
{#key src}
|
||||||
<audio
|
<audio
|
||||||
bind:this={element}
|
bind:this={element}
|
||||||
{src}
|
{src}
|
||||||
@@ -73,4 +73,4 @@
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<!-- <AudioA11yProgress {currentTime} {paused} {duration} /> -->
|
<!-- <AudioA11yProgress {currentTime} {paused} {duration} /> -->
|
||||||
{/if}
|
{/key}
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
export { default as AudioManager } from './audio.svelte';
|
||||||
|
export { audio } from './store';
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Audio from '$lib/components/audio/audio.svelte';
|
import { audio, AudioManager } from '$lib/components/audio';
|
||||||
import { audio } from '$lib/components/audio/store';
|
|
||||||
|
|
||||||
const sources = {
|
const sources = {
|
||||||
syntax: '/example-syntax.mp3',
|
syntax: '/example-syntax.mp3',
|
||||||
@@ -12,7 +11,7 @@
|
|||||||
|
|
||||||
<h1>Demo</h1>
|
<h1>Demo</h1>
|
||||||
|
|
||||||
<Audio on:progress={(e) => console.log(e.detail)} />
|
<AudioManager on:progress={(e) => console.log(e.detail)} />
|
||||||
<!-- <progress
|
<!-- <progress
|
||||||
style="width: 960px; max-width:100%"
|
style="width: 960px; max-width:100%"
|
||||||
data-paused={$_paused ? 'true' : 'false'}
|
data-paused={$_paused ? 'true' : 'false'}
|
||||||
|
|||||||
Reference in New Issue
Block a user