theriex / diggerdroid

Digger on Android
GNU General Public License v3.0
0 stars 0 forks source link

m4a playback support #1

Open theriex opened 1 year ago

theriex commented 1 year ago

.m4a files are valid to be copied onto an Android device, but are only supported for video playback. Attempting to play these files through the MediaPlayer results in something like:

2023-02-27 15:08:25.782 19783-19783/com.diggerhub.digger E/DiggerAudioService: onError: Unknown, No further details

To avoid the app skipping or getting stuck, songs are being filtered out by extension type in svc.mgrs.loc.playableSongs. If the MediaPlayer starts supporting audio playback for these, then they can be let through.

theriex commented 1 year ago

app.deck.ws.filterSongs now calls back to app.svc.okToPlay (if defined) so it doesn't put anything bad into the working set. dbo.songs may be accessed directly, filtering ws seems more flexible and clearer.