Sync shared snapshot from 9e58b6d
This commit is contained in:
1 parent
36ab01aab1
commit
5a4bf45bc7
10 files changed
+393
-51
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<script lang="ts">
|
||||
import MediaPlayer from '../../src/lib/components/MediaPlayer.svelte';
|
||||
|
||||
// Mirrors how an app drives the element itself: no controls, and the element is handed back.
|
||||
let { onElement }: { onElement: (element: HTMLMediaElement | null) => void } = $props();
|
||||
let element = $state<HTMLMediaElement | null>(null);
|
||||
|
||||
$effect(() => {
|
||||
onElement(element);
|
||||
});
|
||||
</script>
|
||||
|
||||
<MediaPlayer controls={false} bind:element />
|
||||
Reference in new issue
Block a user