mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 11:59:18 +02:00
See #1060: register listening earlier, instead of at the end of the track
This commit is contained in:
parent
464010f046
commit
056948a1ba
2 changed files with 9 additions and 1 deletions
|
@ -251,6 +251,8 @@ export default {
|
|||
progressInterval: null,
|
||||
maxPreloaded: 3,
|
||||
preloadDelay: 15,
|
||||
listenDelay: 15,
|
||||
listeningRecorded: null,
|
||||
soundsCache: [],
|
||||
soundId: null,
|
||||
playTimeout: null,
|
||||
|
@ -477,6 +479,13 @@ export default {
|
|||
this.getSound(toPreload)
|
||||
this.nextTrackPreloaded = true
|
||||
}
|
||||
if (t > this.listenDelay || d - t < 30) {
|
||||
let onlyTrack = this.$store.state.queue.tracks.length === 1
|
||||
if (this.listeningRecorded != this.currentTrack) {
|
||||
this.listeningRecorded = this.currentTrack
|
||||
this.$store.dispatch('player/trackListened', this.currentTrack)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
seek (step) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue