mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
Changes:
- Search continuations (related to #46) - Search for Playlists (related to #46)
This commit is contained in:
parent
7905394b26
commit
2ff1308278
6 changed files with 104 additions and 38 deletions
16
src/App.vue
16
src/App.vue
|
@ -130,22 +130,6 @@ onMounted(() => {
|
|||
}
|
||||
};
|
||||
|
||||
/* Media Controls */
|
||||
if ('mediaSession' in navigator) {
|
||||
navigator.mediaSession.setActionHandler('previoustrack', () => {
|
||||
if (data.state.urls.length > 2) {
|
||||
const i = data.state.urls.map(s => s.url).indexOf(data.state.url);
|
||||
data.getSong(data.state.urls[i - 1].url);
|
||||
}
|
||||
});
|
||||
navigator.mediaSession.setActionHandler('nexttrack', () => {
|
||||
if (data.state.urls.length > 2) {
|
||||
const i = data.state.urls.map(s => s.url).indexOf(data.state.url);
|
||||
data.getSong(data.state.urls[i + 1].url);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* Setup IndexedDB for storing custom playlists */
|
||||
useSetupDB();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue