Merge pull request #6710 from matrix-org/travis/voice-messages/audio-queue

Add autoplay for voice messages
This commit is contained in:
Travis Ralston 2021-09-02 08:06:17 -06:00 committed by GitHub
commit c749492b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 236 additions and 11 deletions

View file

@ -179,7 +179,7 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
try {
// stop any noises which might be happening
await PlaybackManager.instance.playOnly(null);
await PlaybackManager.instance.pauseAllExcept(null);
const recorder = VoiceRecordingStore.instance.startRecording();
await recorder.start();