1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

dont re-prepare voice messages (#7897)

* dont reprepare voice messages

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove debug

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test Playback

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test RecordingPlayback

Signed-off-by: Kerry Archibald <kerrya@element.io>

* forgotten copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
Kerry
2022-03-01 09:43:32 +01:00
committed by GitHub
parent 16e67e7716
commit 4bf42babc7
6 changed files with 338 additions and 1 deletions

View File

@@ -40,8 +40,9 @@ export default abstract class AudioPlayerBase extends React.PureComponent<IProps
constructor(props: IProps) {
super(props);
// Playback instances can be reused in the composer
this.state = {
playbackPhase: PlaybackState.Decoding, // default assumption
playbackPhase: this.props.playback.currentState,
};
// We don't need to de-register: the class handles this for us internally