Merge branch 'advplyr:master' into master

This commit is contained in:
Rasmus Krämer 2022-04-14 09:25:53 +02:00 committed by GitHub
commit 4abd1c8b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 436 additions and 91 deletions

View file

@ -111,6 +111,30 @@ class AbsDatabaseWeb extends WebPlugin {
isLocal: true,
localFileId: 'lf1',
audioProbeResult: {}
},
{
index: 2,
startOffset: 0,
duration: 15000,
title: 'Track Title 2',
contentUrl: 'test2',
mimeType: 'audio/mpeg',
metadata: null,
isLocal: true,
localFileId: 'lf2',
audioProbeResult: {}
},
{
index: 3,
startOffset: 0,
duration: 20000,
title: 'Track Title 3',
contentUrl: 'test3',
mimeType: 'audio/mpeg',
metadata: null,
isLocal: true,
localFileId: 'lf3',
audioProbeResult: {}
}
]
},
@ -170,6 +194,10 @@ class AbsDatabaseWeb extends WebPlugin {
async syncLocalMediaProgressWithServer() {
return null
}
async updateLocalTrackOrder({ localLibraryItemId, tracks }) {
return []
}
}
const AbsDatabase = registerPlugin('AbsDatabase', {

View file

@ -94,6 +94,10 @@ class DbService {
syncLocalMediaProgressWithServer() {
return AbsDatabase.syncLocalMediaProgressWithServer()
}
updateLocalTrackOrder(payload) {
return AbsDatabase.updateLocalTrackOrder(payload)
}
}
export default ({ app, store }, inject) => {