Add sequence value when sending chunk files

This commit is contained in:
Philippe Loriaux
2022-10-19 23:04:31 +02:00
parent 80c1219ad3
commit 2762666f8b
2 changed files with 11 additions and 2 deletions
@@ -181,7 +181,8 @@ class VoiceBroadcastRecorderService: VoiceBroadcastRecorderServiceProtocol {
voiceBroadcastService.sendChunkOfVoiceBroadcast(audioFileLocalURL: url,
mimeType: "audio/mp4",
duration: UInt(duration * 1000),
samples: nil) { eventId in
samples: nil,
sequence: UInt(self.chunkFileNumber)) { eventId in
MXLog.debug("[VoiceBroadcastRecorderService] Send voice broadcast chunk with success.")
if eventId != nil {
self.deleteRecording(at: url)