diff --git a/application/src/Entity/Recording.php b/application/src/Entity/Recording.php index 2eabf57..3dfab5a 100644 --- a/application/src/Entity/Recording.php +++ b/application/src/Entity/Recording.php @@ -116,7 +116,15 @@ public function getRecordingInfo(): array // Transform playbacks. if ($playbacks = $this->getPlayback()) { $formatarray = $playbacks['format'] ?? []; - $recordingInfo['playback'] = $formatarray; + // Backward compatibility here: format can just be an object or an array (sequential). + if (array_keys($formatarray) != array_keys(array_values($formatarray))) { + $recordingInfo['playback'] = $playbacks; // This is an object. + } else { + $recordingInfo['playback'] = (object)[ + 'forcexmlarraytype' => 'format', + 'array' => $formatarray + ]; // This should be a sequential array. + } } if ($this->getMeeting()->hasSubMeetings()) { $breakoutRooms = [];