Update:Setup variables to control when a media item is marked as finished. By time remaining or progress percentage #837

This commit is contained in:
advplyr 2024-10-21 17:48:02 -05:00
parent 953ffe889e
commit 9896e4381b
4 changed files with 52 additions and 19 deletions

View file

@ -297,7 +297,6 @@ export default class PlayerHandler {
if (listeningTimeToAdd > 20) {
syncData = {
timeListened: listeningTimeToAdd,
duration: this.getDuration(),
currentTime: this.getCurrentTime()
}
}
@ -317,7 +316,6 @@ export default class PlayerHandler {
const listeningTimeToAdd = Math.max(0, Math.floor(this.listeningTimeSinceSync))
const syncData = {
timeListened: listeningTimeToAdd,
duration: this.getDuration(),
currentTime
}