Web player can't automatically switch to the next track
Steps to reproduce
- Start playing tracks
- Player stops after one track
- Notice the last listened tracks weren't added to "recently listened"
What happens?
Web player did not move on to the next track, current track was not added to listened list.
Clicking again on play or skipping to the next track with the web player resume normal operation, until the next track ends.
What is expected?
Web player moves on to the next track, current track is added to listened list.
Context
Funkwhale version(s) affected: 1.3.2
- Firefox 117.0 on macOS and Android
- Docker-based setup in Kubernetes, S3 proxyfied media storage
Console errors
06:39:03.997 Uncaught (in promise) TypeError: r is undefined
T$ useLogger.ts:49
ac useLogger.ts:61
m player.ts:137
Fo index.mjs:1807
yi runtime-core.esm-bundler.js:157
wr runtime-core.esm-bundler.js:166
k runtime-core.esm-bundler.js:1794
jv runtime-core.esm-bundler.js:320
$ runtime-core.esm-bundler.js:5771
Te runtime-core.esm-bundler.js:5684
run reactivity.esm-bundler.js:187
update runtime-core.esm-bundler.js:5745
U runtime-core.esm-bundler.js:5570
x runtime-core.esm-bundler.js:5503
k runtime-core.esm-bundler.js:5101
V runtime-core.esm-bundler.js:5406
E runtime-core.esm-bundler.js:5469
k runtime-core.esm-bundler.js:5094
V runtime-core.esm-bundler.js:5406
I runtime-core.esm-bundler.js:5314
y runtime-core.esm-bundler.js:5181
k runtime-core.esm-bundler.js:5098
Te runtime-core.esm-bundler.js:5711
run reactivity.esm-bundler.js:187
update runtime-core.esm-bundler.js:5745
yi runtime-core.esm-bundler.js:157
l0 runtime-core.esm-bundler.js:390
promise callback*a0 runtime-core.esm-bundler.js:282
Nd runtime-core.esm-bundler.js:276
j runtime-core.esm-bundler.js:1827
Iv reactivity.esm-bundler.js:397
Bm reactivity.esm-bundler.js:387
Pd reactivity.esm-bundler.js:1011
set value reactivity.esm-bundler.js:1048
ys player.ts:129
setInterval handler*c index.mjs:1146
Ll index.mjs:1149
ys player.ts:122
n index.mjs:104
run reactivity.esm-bundler.js:34
Ml index.mjs:104
_G mediaSession.ts:9
<anonymous> main.ts:68
<anonymous> main.ts:68
promise callback* main.ts:68
useLogger.ts:49:15
06:41:22.816 Uncaught TypeError: r is undefined
T$ useLogger.ts:49
ac useLogger.ts:61
m tracks.ts:101
trigger index.mjs:89
trigger index.mjs:89
jy player.ts:83
s index.mjs:232
l index.mjs:243
l index.mjs:243
l index.mjs:242
yi runtime-core.esm-bundler.js:157
wr runtime-core.esm-bundler.js:166
k runtime-core.esm-bundler.js:1794
Ql runtime-core.esm-bundler.js:1837
mt runtime-core.esm-bundler.js:1671
Vt index.mjs:236
jy player.ts:83
run reactivity.esm-bundler.js:34
jy player.ts:82
m tracks.ts:98
e tracks.ts:147
i tracks.ts:180
s tracks.ts:205
Fo index.mjs:1807
yi runtime-core.esm-bundler.js:157
wr runtime-core.esm-bundler.js:166
k runtime-core.esm-bundler.js:1794
jv runtime-core.esm-bundler.js:320
$ runtime-core.esm-bundler.js:5771
Te runtime-core.esm-bundler.js:5684
run reactivity.esm-bundler.js:187
update runtime-core.esm-bundler.js:5745
U runtime-core.esm-bundler.js:5570
x runtime-core.esm-bundler.js:5503
k runtime-core.esm-bundler.js:5101
V runtime-core.esm-bundler.js:5406
E runtime-core.esm-bundler.js:5469
k runtime-core.esm-bundler.js:5094
V runtime-core.esm-bundler.js:5406
I runtime-core.esm-bundler.js:5314
y runtime-core.esm-bundler.js:5181
k runtime-core.esm-bundler.js:5098
Te runtime-core.esm-bundler.js:5711
run reactivity.esm-bundler.js:187
update runtime-core.esm-bundler.js:5745
yi runtime-core.esm-bundler.js:157
l0 runtime-core.esm-bundler.js:390
promise callback*a0 runtime-core.esm-bundler.js:282
Nd runtime-core.esm-bundler.js:276
j runtime-core.esm-bundler.js:1827
useLogger.ts:49:15
First error happens midway into a track, probably for the listened metadata query. Second one happens at the end of the track, when it should move on to other tracks.
I tried to look for other Funkwhale 1.3.2 pods with public tracks and reproduced this behaviour with the few I could find.