missing-letter, voices broken on Android
Closed, ResolvedPublic

Description

Playing of voices is quite broken for missing-letter activity on Android:

-it does play first word and first letter
-voices for next words and letters are not played

-it Seems to happen only on Android (tested on Linux it works fine)

Note: this bug was there already in GCompris 0.96 (I didn't check older versions), so at least it's not a new bug in 0.97.

timotheegiet triaged this task as High priority.
jjazeix claimed this task.Jul 15 2020, 12:15 PM
jjazeix added a comment.EditedJul 15 2020, 1:23 PM

also happens for letter-in-word and probably others.
It seems to play the voices if you click a word/letter only if a previous one is playing (or is supposed to be playing if it does not play!).

Seems to get stucked at some point, not finishing a voice...

audio.playbackState stays equal to Audio.PlayingState at some point

On adb logs, seems files are retrieved twice:
MediaPlayerService: MediaPlayerService::Client::setDataSource local file://?FileDescriptor=23&Offset=0&Le
MetadataRetrieverClient: setDataSource local Path=/data/data/net.gcompris.full/files/GCompris.SgXPLo.ogg
MetadataRetrieverClient: setDataSource local Path=/data/data/net.gcompris.full/files/GCompris.SgXPLo.ogg

Other errors sometimes:
onerror 2 Error: (Unsupported media)
onerror 5 Error: Invalid state

https://invent.kde.org/education/gcompris/-/commit/ba91f57c13e1fb483b13c62643bba5c9a4ea657f should fix this.

Can anyone test latest version of master to confirm? I couldn't reproduce but in case...

jjazeix moved this task from Backlog to Need review on the GCompris: Bugs board.Aug 31 2020, 6:22 AM
timotheegiet closed this task as Resolved.Sep 24 2020, 3:12 PM

I can't reproduce the issue anymore with your fix, I think we can close it as resolved.

jjazeix moved this task from Need review to Done on the GCompris: Bugs board.Sep 24 2020, 3:54 PM