From 6bdf237cc9863b9ecb1dedb3e8a2d2908ba30559 Mon Sep 17 00:00:00 2001 From: Florian Renaud Date: Tue, 29 Nov 2022 10:54:31 +0100 Subject: [PATCH] Fix playback not in buffering if waiting for new chunks --- .../voicebroadcast/listening/VoiceBroadcastPlayerImpl.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/voicebroadcast/listening/VoiceBroadcastPlayerImpl.kt b/vector/src/main/java/im/vector/app/features/voicebroadcast/listening/VoiceBroadcastPlayerImpl.kt index 724be600a3..95a4ddcf2e 100644 --- a/vector/src/main/java/im/vector/app/features/voicebroadcast/listening/VoiceBroadcastPlayerImpl.kt +++ b/vector/src/main/java/im/vector/app/features/voicebroadcast/listening/VoiceBroadcastPlayerImpl.kt @@ -434,6 +434,8 @@ class VoiceBroadcastPlayerImpl @Inject constructor( if (!isLiveListening && mostRecentVoiceBroadcastEvent?.content?.lastChunkSequence == playlist.currentSequence) { // We'll not receive new chunks anymore so we can stop the live listening stop() + } else { + playingState = State.BUFFERING } }