Implement Voice Broadcast recording (#9307)
* Implement VoiceBroadcastRecording * Implement PR feedback * Add voice broadcast recording stores * Refactor startNewVoiceBroadcastRecording * Refactor VoiceBroadcastRecordingsStore to VoiceBroadcastRecording * Rename VoiceBroadcastRecording to VoiceBroadcastRecorder * Return remaining chunk on stop * Extract createVoiceMessageContent * Implement recording * Replace dev value with config * Fix clientInformation-test * Refactor VoiceBroadcastRecording * Fix VoiceBroadcastRecording types * Re-order getter * Mark voice_broadcast config as optional * Merge voice-broadcast modules * Remove underscore props * Add Optional types * Add return types everywhere * Remove test casts * Add magic comments * Trigger CI * Switch VoiceBroadcastRecorder to TypedEventEmitter * Trigger CI * Add voice broadcast chunk event content Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
co-authored by
Travis Ralston
parent
03182d03be
commit
bac6e12946
@@ -109,6 +109,7 @@ describe("startNewVoiceBroadcastRecording", () => {
|
||||
return {
|
||||
infoEvent,
|
||||
client,
|
||||
start: jest.fn(),
|
||||
} as unknown as VoiceBroadcastRecording;
|
||||
});
|
||||
});
|
||||
@@ -120,6 +121,7 @@ describe("startNewVoiceBroadcastRecording", () => {
|
||||
expect(ok).toBe(true);
|
||||
expect(mocked(room.off)).toHaveBeenCalledWith(RoomStateEvent.Events, roomOnStateEventsCallback);
|
||||
expect(recording.infoEvent).toBe(infoEvent);
|
||||
expect(recording.start).toHaveBeenCalled();
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user