music: introduce backend system

Move out the MediaStoreCompat interface into a full interface called
Backend.

In preparation for direct metadata parsing, it would be useful to
create some kind of object system to properly handle the capabilities
of each metadata indexing mode. Backend fulfills that by allowing
each object to implement their own query and then loading routine.

This system is designed somewhat strangely. This is firstly because
the ExoPlayer metadata backend will have to plug in to the original
MediaStore backend, so making methods more granular allows the
ExoPlayer backend to avoid some of the stupid inefficiencies from
the actual MediaStore backend, such as the genre loading process.
We also want to separate the steps of loading music in order to
more adequately show the current loading process to the user in
a future change.
This commit is contained in:
OxygenCobalt
2022-05-28 13:13:19 -06:00
parent c6d7d8fe39
commit 2576fb26ba
19 changed files with 589 additions and 552 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- Info namespace | App labels -->
<string name="info_app_desc">مشغل موسيقى بسيط ومعقول لنظام الاندرويد.</string>
<string name="info_channel_name">تشغيل الموسيقى</string>
<string name="info_playback_channel_name">تشغيل الموسيقى</string>
<string name="info_widget_desc">عرض وتحكم بشتغيل الموسيقى</string>
<!-- Label Namespace | Static Labels -->
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- Info namespace | App labels -->
<string name="info_app_desc">"Jednoduchý, rozumný hudební přehrávač pro Android."</string>
<string name="info_channel_name">"Přehrávání hudby"</string>
<string name="info_playback_channel_name">"Přehrávání hudby"</string>
<string name="info_widget_desc">"Zobrazit a ovládat hrající hudbu"</string>
<!-- Label Namespace | Static Labels -->
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Info namespace | App labels -->
<string name="info_channel_name">Musikwiedergabe</string>
<string name="info_playback_channel_name">Musikwiedergabe</string>
<!-- Label Namespace | Static Labels -->
<string name="lbl_retry">Erneut versuchen</string>
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- Info namespace | App labels -->
<string name="info_app_desc">Un reproductor de música simple y racional para Android.</string>
<string name="info_channel_name">Reproducción musical</string>
<string name="info_playback_channel_name">Reproducción musical</string>
<string name="info_widget_desc">Ver y controlar la reproducción musical</string>
<!-- Label Namespace | Static Labels -->
+1 -1
View File
@@ -2,7 +2,7 @@
<resources>
<!-- Info namespace | App labels -->
<string name="info_app_desc">Un semplice, razionale lettore musicale per android.</string>
<string name="info_channel_name">Riproduzione musicale</string>
<string name="info_playback_channel_name">Riproduzione musicale</string>
<string name="info_widget_desc">Vedi e gestisci la riproduzione musicale</string>
<!-- Label Namespace | Static Labels -->
+1 -1
View File
@@ -2,7 +2,7 @@
<resources>
<!-- Info namespace | App labels -->
<string name="info_app_desc">Een eenvoudige, rationele muziekspeler voor Android.</string>
<string name="info_channel_name">Muziek Afspelen</string>
<string name="info_playback_channel_name">Muziek Afspelen</string>
<!-- Label Namespace | Static Labels -->
<string name="lbl_retry">Opnieuw proberen</string>
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- Info namespace | App labels -->
<string name="info_app_desc">Простой и рациональный музыкальный проигрыватель</string>
<string name="info_channel_name">Воспроизведение</string>
<string name="info_playback_channel_name">Воспроизведение</string>
<string name="info_widget_desc">Настройки воспроизведения</string>
<!-- Label Namespace | Static Labels -->
+1 -1
View File
@@ -2,7 +2,7 @@
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<!-- Info namespace | App labels -->
<string name="info_app_desc">一款简洁、克制的 Android 音乐播放器。</string>
<string name="info_channel_name">音乐播放</string>
<string name="info_playback_channel_name">音乐播放</string>
<string name="info_widget_desc">查看并控制音乐播放</string>
<!-- Label Namespace | Static Labels -->
+1 -1
View File
@@ -2,7 +2,7 @@
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<!-- Info namespace | App labels -->
<string name="info_app_desc">A simple, rational music player for android.</string>
<string name="info_channel_name">Music Playback</string>
<string name="info_playback_channel_name">Music Playback</string>
<string name="info_widget_desc">View and control music playback</string>
<!-- Label Namespace | Static Labels -->