feat: basic player commands

This commit is contained in:
2026-08-30 19:58:08 +02:00
parent ce35371c06
commit 5b223875bd
11 changed files with 196 additions and 2 deletions
+13 -1
View File
@@ -2,9 +2,21 @@ import {
type Ref,
ref
} from 'vue';
import type {
PlayerSourcePlugin
} from './plugins/interface';
import type {
Playlist
} from '../dtype/playlist';
import type {
RepeatMode
} from '../dtype/player';
export const sources: {
[key: string]: PlayerSourcePlugin
} = {};
export const currentSource = ref( '' );
export const queueIdx = ref( 0 );
@@ -14,7 +26,7 @@ export const isPlaying = ref( false );
export const shuffle = ref( false );
export const repeat: Ref<'off' | 'one' | 'all'> = ref( 'off' );
export const repeat: Ref<RepeatMode> = ref( 'off' );
export const playbackPercentage = ref( 0 );