Skip to content

Instantly share code, notes, and snippets.

View woooxy's full-sized avatar

WOOXY woooxy

View GitHub Profile
@woooxy
woooxy / VideoPlayer.svelte
Created September 3, 2024 22:56
Little video component made in svelte
<script lang="ts">
import { onMount } from 'svelte';
import { writable } from 'svelte/store';
import { Play, Pause, Volume2, VolumeX, Maximize, Repeat } from 'lucide-svelte';
export let src: string;
export let poster: string = '';
const isPlaying = writable(false);
const isMuted = writable(false);