Merge pull request #2694 from Bnyro/master

Add audio only mode
This commit is contained in:
Bnyro 2023-01-14 17:01:51 +01:00 committed by GitHub
commit 9628e9daef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,14 @@ object NavigationHelper {
if (PreferenceHelper.getBoolean(PreferenceKeys.AUDIO_ONLY_MODE, false)) {
BackgroundHelper.stopBackgroundPlay(context)
BackgroundHelper.playOnBackground(context, videoId.toID(), timeStamp, playlistId, channelId, keepQueue)
BackgroundHelper.playOnBackground(
context,
videoId.toID(),
timeStamp,
playlistId,
channelId,
keepQueue
)
handler.postDelayed({
startAudioPlayer(context)
}, 500)