diff --git a/src/app.d.ts b/src/app.d.ts index 9a9e06e..ba78252 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -45,7 +45,7 @@ declare global { getRecommendations: () => Promise<(Song | Album | Artist | Playlist)[]> getConnectionInfo: () => Promise search: (searchTerm: string, filter?: 'song' | 'album' | 'artist' | 'playlist') => Promise<(Song | Album | Artist | Playlist)[]> - getAudioStream: (id: string) => Promise + getAudioStream: (id: string, range: string | null) => Promise } // These Schemas should only contain general info data that is necessary for data fetching purposes. // They are NOT meant to be stores for large amounts of data, i.e. Don't include the data for every single song the Playlist type. diff --git a/src/lib/components/media/mediaPlayer.svelte b/src/lib/components/media/mediaPlayer.svelte index a5eac40..87ae6a0 100644 --- a/src/lib/components/media/mediaPlayer.svelte +++ b/src/lib/components/media/mediaPlayer.svelte @@ -1,154 +1,121 @@ -
- -
-
{song.name}
-
{song.artists?.map((artist) => artist.name) || song.createdBy?.name}
-
-
-
- - - - - -
- -
-
- - +
+ + { + currentTimeTimestamp.innerText = formatTime(event.detail.value) + seeking = true + }} + on:seeked={(event) => { + currentTime = event.detail.value + seeking = false + }} + /> + +
+ +
+
+ +
+ +
+
+ +
+