VB: Playback starts to work but only the first chunk if it is ogg

This commit is contained in:
manuroe
2022-10-19 14:22:23 +02:00
parent c51296c691
commit 8efa89616c
2 changed files with 129 additions and 5 deletions
@@ -109,6 +109,8 @@ public class VoiceBroadcastAggregator {
return
}
MXLog.debug("[VoiceBroadcastAggregator] Start aggregation for broadcast \(self.voiceBroadcastStartEventId)")
self.events.removeAll()
self.events.append(contentsOf: response.chunk)
@@ -124,6 +126,7 @@ public class VoiceBroadcastAggregator {
}
self.events.append(event)
MXLog.debug("[VoiceBroadcastAggregator] Got a new chunk for broadcast \(relatedEventId). Total: \(self.events.count)")
self.voiceBroadcast = self.voiceBroadcastBuilder.build(mediaManager: self.session.mediaManager,
voiceBroadcastStartEventId: self.voiceBroadcastStartEventId,