Add shuffle and repeat to current state api

This commit is contained in:
ThatGravyBoat
2024-05-06 03:50:41 -02:30
parent 6e43cbb4d7
commit 2d94b4bf49
5 changed files with 63 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import { MediaStatus } from "./mediaStatus";
import {MediaPlayerInfo} from "./mediaPlayerInfo";
export interface MediaInfo {
title: string;
@@ -13,4 +14,5 @@ export interface MediaInfo {
durationInSeconds?: number;
image: string;
favorite: boolean;
player: MediaPlayerInfo;
}

View File

@@ -0,0 +1,8 @@
import {RepeatState} from "./repeatState";
import {MediaStatus} from "./mediaStatus";
export interface MediaPlayerInfo {
status: MediaStatus;
shuffle: boolean;
repeat: RepeatState;
}

View File

@@ -0,0 +1,5 @@
export enum RepeatState {
off = "off",
all = "all",
single = "single",
}