feat: implemented karaoke mode for synchronized lyrics

This commit is contained in:
CappielloAntonio 2024-02-18 16:29:42 +01:00
parent 28fef53590
commit 733102a8a4
4 changed files with 88 additions and 0 deletions

View file

@ -50,6 +50,7 @@ public class PlayerBottomSheetViewModel extends AndroidViewModel {
private final MutableLiveData<Child> liveMedia = new MutableLiveData<>(null);
private final MutableLiveData<ArtistID3> liveArtist = new MutableLiveData<>(null);
private final MutableLiveData<List<Child>> instantMix = new MutableLiveData<>(null);
private boolean lyricsSyncState = true;
public PlayerBottomSheetViewModel(@NonNull Application application) {
@ -210,4 +211,12 @@ public class PlayerBottomSheetViewModel extends AndroidViewModel {
return false;
}
public void changeSyncLyricsState() {
lyricsSyncState = !lyricsSyncState;
}
public boolean getSyncLyricsState() {
return lyricsSyncState;
}
}