2021-03-15 22:16:58 -06:00
|
|
|
/*
|
2022-02-18 07:29:08 -07:00
|
|
|
Copyright 2021 - 2022 The Matrix.org Foundation C.I.C.
|
2021-03-15 22:16:58 -06:00
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
2021-10-22 17:23:32 -05:00
|
|
|
import React, { ReactNode } from "react";
|
2023-08-07 09:24:58 +01:00
|
|
|
import { Room, IEventRelation, MatrixEvent } from "matrix-js-sdk/src/matrix";
|
2021-10-22 17:23:32 -05:00
|
|
|
import { logger } from "matrix-js-sdk/src/logger";
|
2022-02-18 07:29:08 -07:00
|
|
|
import { Optional } from "matrix-events-sdk";
|
2021-10-22 17:23:32 -05:00
|
|
|
|
2021-03-15 22:16:58 -06:00
|
|
|
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
2021-06-22 12:28:23 +01:00
|
|
|
import { _t } from "../../../languageHandler";
|
2022-09-21 18:46:28 +02:00
|
|
|
import { RecordingState } from "../../../audio/VoiceRecording";
|
2021-06-22 12:28:23 +01:00
|
|
|
import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
2021-06-28 21:00:36 -06:00
|
|
|
import LiveRecordingWaveform from "../audio_messages/LiveRecordingWaveform";
|
|
|
|
|
import LiveRecordingClock from "../audio_messages/LiveRecordingClock";
|
2021-06-22 12:28:23 +01:00
|
|
|
import { VoiceRecordingStore } from "../../../stores/VoiceRecordingStore";
|
2021-06-29 13:11:58 +01:00
|
|
|
import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
2022-06-14 18:13:13 -06:00
|
|
|
import RecordingPlayback, { PlaybackLayout } from "../audio_messages/RecordingPlayback";
|
2021-05-03 16:41:39 -06:00
|
|
|
import Modal from "../../../Modal";
|
|
|
|
|
import ErrorDialog from "../dialogs/ErrorDialog";
|
2021-07-09 13:08:39 +02:00
|
|
|
import MediaDeviceHandler, { MediaDeviceKindEnum } from "../../../MediaDeviceHandler";
|
2021-08-02 23:29:46 -06:00
|
|
|
import NotificationBadge from "./NotificationBadge";
|
|
|
|
|
import { StaticNotificationState } from "../../../stores/notifications/StaticNotificationState";
|
|
|
|
|
import { NotificationColor } from "../../../stores/notifications/NotificationColor";
|
|
|
|
|
import InlineSpinner from "../elements/InlineSpinner";
|
2021-08-05 12:44:12 -06:00
|
|
|
import { PlaybackManager } from "../../../audio/PlaybackManager";
|
2022-07-13 07:56:36 +02:00
|
|
|
import { doMaybeLocalRoomAction } from "../../../utils/local-room";
|
2022-07-26 10:38:05 +02:00
|
|
|
import defaultDispatcher from "../../../dispatcher/dispatcher";
|
2023-03-23 07:47:40 -04:00
|
|
|
import { attachMentions, attachRelation } from "./SendMessageComposer";
|
2022-07-26 10:38:05 +02:00
|
|
|
import { addReplyToMessageContent } from "../../../utils/Reply";
|
|
|
|
|
import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks";
|
|
|
|
|
import RoomContext from "../../../contexts/RoomContext";
|
2022-09-21 18:46:28 +02:00
|
|
|
import { IUpload, VoiceMessageRecording } from "../../../audio/VoiceMessageRecording";
|
2022-09-29 21:06:49 +02:00
|
|
|
import { createVoiceMessageContent } from "../../../utils/createVoiceMessageContent";
|
2021-03-15 22:16:58 -06:00
|
|
|
|
|
|
|
|
interface IProps {
|
|
|
|
|
room: Room;
|
2023-03-22 12:15:26 +00:00
|
|
|
permalinkCreator?: RoomPermalinkCreator;
|
2022-07-26 10:38:05 +02:00
|
|
|
relation?: IEventRelation;
|
|
|
|
|
replyToEvent?: MatrixEvent;
|
2021-03-15 22:16:58 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface IState {
|
2022-09-21 18:46:28 +02:00
|
|
|
recorder?: VoiceMessageRecording;
|
2021-04-20 21:30:21 -06:00
|
|
|
recordingPhase?: RecordingState;
|
2021-08-02 23:29:46 -06:00
|
|
|
didUploadFail?: boolean;
|
2021-03-15 22:16:58 -06:00
|
|
|
}
|
|
|
|
|
|
2021-03-25 17:12:26 -06:00
|
|
|
/**
|
|
|
|
|
* Container tile for rendering the voice message recorder in the composer.
|
|
|
|
|
*/
|
2021-03-15 22:16:58 -06:00
|
|
|
export default class VoiceRecordComposerTile extends React.PureComponent<IProps, IState> {
|
2022-12-16 12:29:59 +00:00
|
|
|
public static contextType = RoomContext;
|
2022-07-26 10:38:05 +02:00
|
|
|
public context!: React.ContextType<typeof RoomContext>;
|
2022-09-05 10:04:37 +00:00
|
|
|
private voiceRecordingId: string;
|
2022-07-26 10:38:05 +02:00
|
|
|
|
|
|
|
|
public constructor(props: IProps) {
|
2021-03-15 22:16:58 -06:00
|
|
|
super(props);
|
|
|
|
|
|
2023-02-24 15:28:40 +00:00
|
|
|
this.state = {};
|
2022-09-05 10:04:37 +00:00
|
|
|
|
|
|
|
|
this.voiceRecordingId = VoiceRecordingStore.getVoiceRecordingId(this.props.room, this.props.relation);
|
2021-03-15 22:16:58 -06:00
|
|
|
}
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
public componentDidMount(): void {
|
2022-09-05 10:04:37 +00:00
|
|
|
const recorder = VoiceRecordingStore.instance.getActiveRecording(this.voiceRecordingId);
|
2022-02-18 07:29:08 -07:00
|
|
|
if (recorder) {
|
|
|
|
|
if (recorder.isRecording || !recorder.hasRecording) {
|
|
|
|
|
logger.warn("Cached recording hasn't ended yet and might cause issues");
|
|
|
|
|
}
|
|
|
|
|
this.bindNewRecorder(recorder);
|
|
|
|
|
this.setState({ recorder, recordingPhase: RecordingState.Ended });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
public async componentWillUnmount(): Promise<void> {
|
2022-02-18 07:29:08 -07:00
|
|
|
// Stop recording, but keep the recording memory (don't dispose it). This is to let the user
|
|
|
|
|
// come back and finish working with it.
|
2022-09-05 10:04:37 +00:00
|
|
|
const recording = VoiceRecordingStore.instance.getActiveRecording(this.voiceRecordingId);
|
2022-02-18 07:29:08 -07:00
|
|
|
await recording?.stop();
|
|
|
|
|
|
|
|
|
|
// Clean up our listeners by binding a falsy recorder
|
|
|
|
|
this.bindNewRecorder(null);
|
2021-04-20 21:30:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// called by composer
|
2023-01-12 13:25:14 +00:00
|
|
|
public async send(): Promise<void> {
|
2021-04-20 21:30:21 -06:00
|
|
|
if (!this.state.recorder) {
|
|
|
|
|
throw new Error("No recording started - cannot send anything");
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-26 10:38:05 +02:00
|
|
|
const { replyToEvent, relation, permalinkCreator } = this.props;
|
|
|
|
|
|
2021-04-20 21:30:21 -06:00
|
|
|
await this.state.recorder.stop();
|
|
|
|
|
|
2021-08-02 23:29:46 -06:00
|
|
|
let upload: IUpload;
|
2021-07-21 16:11:10 -06:00
|
|
|
try {
|
2022-09-05 10:04:37 +00:00
|
|
|
upload = await this.state.recorder.upload(this.voiceRecordingId);
|
2021-08-02 23:29:46 -06:00
|
|
|
} catch (e) {
|
2021-10-15 16:30:53 +02:00
|
|
|
logger.error("Error uploading voice message:", e);
|
2021-04-20 21:30:21 -06:00
|
|
|
|
2021-08-02 23:29:46 -06:00
|
|
|
// Flag error and move on. The recording phase will be reset by the upload function.
|
|
|
|
|
this.setState({ didUploadFail: true });
|
|
|
|
|
|
|
|
|
|
return; // don't dispose the recording: the user has a chance to re-upload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
2021-07-21 16:11:10 -06:00
|
|
|
// noinspection ES6MissingAwait - we don't care if it fails, it'll get queued.
|
2022-09-29 21:06:49 +02:00
|
|
|
const content = createVoiceMessageContent(
|
|
|
|
|
upload.mxc,
|
|
|
|
|
this.state.recorder.contentType,
|
|
|
|
|
Math.round(this.state.recorder.durationSeconds * 1000),
|
|
|
|
|
this.state.recorder.contentLength,
|
|
|
|
|
upload.encrypted,
|
|
|
|
|
this.state.recorder.getPlayback().thumbnailWaveform.map((v) => Math.round(v * 1024)),
|
|
|
|
|
);
|
2022-07-13 07:56:36 +02:00
|
|
|
|
2023-03-23 07:47:40 -04:00
|
|
|
// Attach mentions, which really only applies if there's a replyToEvent.
|
2023-06-15 08:46:19 +01:00
|
|
|
attachMentions(MatrixClientPeg.safeGet().getSafeUserId(), content, null, replyToEvent);
|
2022-07-26 10:38:05 +02:00
|
|
|
attachRelation(content, relation);
|
|
|
|
|
if (replyToEvent) {
|
|
|
|
|
addReplyToMessageContent(content, replyToEvent, {
|
|
|
|
|
permalinkCreator,
|
|
|
|
|
includeLegacyFallback: true,
|
|
|
|
|
});
|
|
|
|
|
// Clear reply_to_event as we put the message into the queue
|
|
|
|
|
// if the send fails, retry will handle resending.
|
|
|
|
|
defaultDispatcher.dispatch({
|
|
|
|
|
action: "reply_to_event",
|
|
|
|
|
event: null,
|
|
|
|
|
context: this.context.timelineRenderingType,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-23 16:24:12 +01:00
|
|
|
doMaybeLocalRoomAction(
|
|
|
|
|
this.props.room.roomId,
|
2023-06-15 08:46:19 +01:00
|
|
|
(actualRoomId: string) => MatrixClientPeg.safeGet().sendMessage(actualRoomId, content),
|
2023-05-23 16:24:12 +01:00
|
|
|
this.props.room.client,
|
2022-07-13 07:56:36 +02:00
|
|
|
);
|
2021-07-21 16:11:10 -06:00
|
|
|
} catch (e) {
|
2021-10-15 16:30:53 +02:00
|
|
|
logger.error("Error sending voice message:", e);
|
2021-08-02 23:29:46 -06:00
|
|
|
|
|
|
|
|
// Voice message should be in the timeline at this point, so let other things take care
|
|
|
|
|
// of error handling. We also shouldn't need the recording anymore, so fall through to
|
|
|
|
|
// disposal.
|
2021-07-21 16:11:10 -06:00
|
|
|
}
|
2021-04-26 21:08:51 -06:00
|
|
|
await this.disposeRecording();
|
2021-04-20 21:30:21 -06:00
|
|
|
}
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
private async disposeRecording(): Promise<void> {
|
2022-09-05 10:04:37 +00:00
|
|
|
await VoiceRecordingStore.instance.disposeRecording(this.voiceRecordingId);
|
2021-04-26 21:08:51 -06:00
|
|
|
|
|
|
|
|
// Reset back to no recording, which means no phase (ie: restart component entirely)
|
2023-02-24 15:28:40 +00:00
|
|
|
this.setState({ recorder: undefined, recordingPhase: undefined, didUploadFail: false });
|
2021-04-26 21:08:51 -06:00
|
|
|
}
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
private onCancel = async (): Promise<void> => {
|
2021-04-26 21:08:51 -06:00
|
|
|
await this.disposeRecording();
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
public onRecordStartEndClick = async (): Promise<void> => {
|
2021-03-15 22:16:58 -06:00
|
|
|
if (this.state.recorder) {
|
|
|
|
|
await this.state.recorder.stop();
|
|
|
|
|
return;
|
|
|
|
|
}
|
2021-04-20 21:30:21 -06:00
|
|
|
|
2021-05-03 16:41:39 -06:00
|
|
|
// The "microphone access error" dialogs are used a lot, so let's functionify them
|
2023-01-12 13:25:14 +00:00
|
|
|
const accessError = (): void => {
|
2022-06-14 17:51:51 +01:00
|
|
|
Modal.createDialog(ErrorDialog, {
|
2021-05-03 16:41:39 -06:00
|
|
|
title: _t("Unable to access your microphone"),
|
|
|
|
|
description: (
|
|
|
|
|
<>
|
2021-07-19 22:43:11 +01:00
|
|
|
<p>
|
|
|
|
|
{_t(
|
2021-05-03 16:41:39 -06:00
|
|
|
"We were unable to access your microphone. Please check your browser settings and try again.",
|
2021-07-19 22:43:11 +01:00
|
|
|
)}
|
|
|
|
|
</p>
|
2021-05-03 16:41:39 -06:00
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
});
|
|
|
|
|
};
|
2021-04-20 21:30:21 -06:00
|
|
|
|
2021-05-03 16:41:39 -06:00
|
|
|
// Do a sanity test to ensure we're about to grab a valid microphone reference. Things might
|
|
|
|
|
// change between this and recording, but at least we will have tried.
|
|
|
|
|
try {
|
2021-06-23 09:26:33 +02:00
|
|
|
const devices = await MediaDeviceHandler.getDevices();
|
2021-07-09 13:08:39 +02:00
|
|
|
if (!devices?.[MediaDeviceKindEnum.AudioInput]?.length) {
|
2022-06-14 17:51:51 +01:00
|
|
|
Modal.createDialog(ErrorDialog, {
|
2021-05-03 16:41:39 -06:00
|
|
|
title: _t("No microphone found"),
|
|
|
|
|
description: (
|
|
|
|
|
<>
|
2021-07-19 22:43:11 +01:00
|
|
|
<p>
|
|
|
|
|
{_t(
|
2021-05-03 16:41:39 -06:00
|
|
|
"We didn't find a microphone on your device. Please check your settings and try again.",
|
2021-07-19 22:43:11 +01:00
|
|
|
)}
|
|
|
|
|
</p>
|
2021-05-03 16:41:39 -06:00
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// else we probably have a device that is good enough
|
|
|
|
|
} catch (e) {
|
2021-10-15 16:30:53 +02:00
|
|
|
logger.error("Error getting devices: ", e);
|
2021-05-03 16:41:39 -06:00
|
|
|
accessError();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
2021-08-05 12:44:12 -06:00
|
|
|
// stop any noises which might be happening
|
2023-02-24 15:28:40 +00:00
|
|
|
PlaybackManager.instance.pauseAllExcept();
|
2022-09-05 10:04:37 +00:00
|
|
|
const recorder = VoiceRecordingStore.instance.startRecording(this.voiceRecordingId);
|
2021-05-03 16:41:39 -06:00
|
|
|
await recorder.start();
|
|
|
|
|
|
2022-02-18 07:29:08 -07:00
|
|
|
this.bindNewRecorder(recorder);
|
2021-05-03 16:41:39 -06:00
|
|
|
|
2021-06-29 13:11:58 +01:00
|
|
|
this.setState({ recorder, recordingPhase: RecordingState.Started });
|
2021-05-03 16:41:39 -06:00
|
|
|
} catch (e) {
|
2021-10-15 16:30:53 +02:00
|
|
|
logger.error("Error starting recording: ", e);
|
2021-05-03 16:41:39 -06:00
|
|
|
accessError();
|
|
|
|
|
|
|
|
|
|
// noinspection ES6MissingAwait - if this goes wrong we don't want it to affect the call stack
|
2022-09-05 10:04:37 +00:00
|
|
|
VoiceRecordingStore.instance.disposeRecording(this.voiceRecordingId);
|
2021-05-03 16:41:39 -06:00
|
|
|
}
|
2021-03-15 22:16:58 -06:00
|
|
|
};
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
private bindNewRecorder(recorder: Optional<VoiceMessageRecording>): void {
|
2022-02-18 07:29:08 -07:00
|
|
|
if (this.state.recorder) {
|
|
|
|
|
this.state.recorder.off(UPDATE_EVENT, this.onRecordingUpdate);
|
|
|
|
|
}
|
|
|
|
|
if (recorder) {
|
|
|
|
|
recorder.on(UPDATE_EVENT, this.onRecordingUpdate);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
private onRecordingUpdate = (ev: RecordingState): void => {
|
2022-02-18 07:29:08 -07:00
|
|
|
if (ev === RecordingState.EndingSoon) return; // ignore this state: it has no UI purpose here
|
|
|
|
|
this.setState({ recordingPhase: ev });
|
|
|
|
|
};
|
|
|
|
|
|
2021-04-27 20:27:36 -06:00
|
|
|
private renderWaveformArea(): ReactNode {
|
|
|
|
|
if (!this.state.recorder) return null; // no recorder means we're not recording: no waveform
|
2021-03-25 17:12:26 -06:00
|
|
|
|
2021-04-20 21:30:21 -06:00
|
|
|
if (this.state.recordingPhase !== RecordingState.Started) {
|
2022-06-14 18:13:13 -06:00
|
|
|
return <RecordingPlayback playback={this.state.recorder.getPlayback()} layout={PlaybackLayout.Composer} />;
|
2021-04-26 20:48:24 -06:00
|
|
|
}
|
|
|
|
|
|
2021-04-27 20:27:36 -06:00
|
|
|
// only other UI is the recording-in-progress UI
|
2021-06-25 00:10:32 -06:00
|
|
|
return (
|
|
|
|
|
<div className="mx_MediaBody mx_VoiceMessagePrimaryContainer mx_VoiceRecordComposerTile_recording">
|
2021-04-27 20:27:36 -06:00
|
|
|
<LiveRecordingClock recorder={this.state.recorder} />
|
|
|
|
|
<LiveRecordingWaveform recorder={this.state.recorder} />
|
2021-03-25 17:12:26 -06:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-27 20:27:36 -06:00
|
|
|
public render(): ReactNode {
|
2021-09-06 22:11:35 -06:00
|
|
|
if (!this.state.recordingPhase) return null;
|
2021-09-06 22:08:50 -06:00
|
|
|
|
2021-09-06 22:11:35 -06:00
|
|
|
let stopBtn;
|
|
|
|
|
let deleteButton;
|
|
|
|
|
if (this.state.recordingPhase === RecordingState.Started) {
|
2021-08-03 13:33:42 -06:00
|
|
|
let tooltip = _t("Send voice message");
|
2021-04-20 21:30:21 -06:00
|
|
|
if (!!this.state.recorder) {
|
2021-08-03 13:33:42 -06:00
|
|
|
tooltip = _t("Stop recording");
|
2021-04-20 21:30:21 -06:00
|
|
|
}
|
|
|
|
|
|
2021-09-06 22:11:35 -06:00
|
|
|
stopBtn = (
|
|
|
|
|
<AccessibleTooltipButton
|
|
|
|
|
className="mx_VoiceRecordComposerTile_stop"
|
2021-04-20 21:30:21 -06:00
|
|
|
onClick={this.onRecordStartEndClick}
|
|
|
|
|
title={tooltip}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
if (this.state.recorder && !this.state.recorder?.isRecording) {
|
2021-09-06 22:11:35 -06:00
|
|
|
stopBtn = null;
|
2021-04-20 21:30:21 -06:00
|
|
|
}
|
2021-03-16 23:43:59 -06:00
|
|
|
}
|
|
|
|
|
|
2021-04-26 21:08:51 -06:00
|
|
|
if (this.state.recorder && this.state.recordingPhase !== RecordingState.Uploading) {
|
|
|
|
|
deleteButton = (
|
|
|
|
|
<AccessibleTooltipButton
|
|
|
|
|
className="mx_VoiceRecordComposerTile_delete"
|
2021-08-03 13:33:42 -06:00
|
|
|
title={_t("Delete")}
|
2021-04-26 21:08:51 -06:00
|
|
|
onClick={this.onCancel}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-02 23:29:46 -06:00
|
|
|
let uploadIndicator;
|
2021-08-03 12:57:16 -06:00
|
|
|
if (this.state.recordingPhase === RecordingState.Uploading) {
|
2021-08-03 12:52:21 -06:00
|
|
|
uploadIndicator = (
|
|
|
|
|
<span className="mx_VoiceRecordComposerTile_uploadingState">
|
2021-08-02 23:29:46 -06:00
|
|
|
<InlineSpinner w={16} h={16} />
|
|
|
|
|
</span>
|
2022-12-12 12:24:14 +01:00
|
|
|
);
|
2021-08-03 12:52:21 -06:00
|
|
|
} else if (this.state.didUploadFail && this.state.recordingPhase === RecordingState.Ended) {
|
|
|
|
|
uploadIndicator = (
|
|
|
|
|
<span className="mx_VoiceRecordComposerTile_failedState">
|
2021-08-02 23:29:46 -06:00
|
|
|
<span className="mx_VoiceRecordComposerTile_uploadState_badge">
|
2021-08-03 12:52:21 -06:00
|
|
|
{/* Need to stick the badge in a span to ensure it doesn't create a block component */}
|
2021-08-02 23:29:46 -06:00
|
|
|
<NotificationBadge
|
|
|
|
|
notification={StaticNotificationState.forSymbol("!", NotificationColor.Red)}
|
2022-12-12 12:24:14 +01:00
|
|
|
/>
|
|
|
|
|
</span>
|
2021-08-03 12:52:21 -06:00
|
|
|
<span className="text-warning">{_t("Failed to send")}</span>
|
2021-08-02 23:29:46 -06:00
|
|
|
</span>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-22 20:54:09 -06:00
|
|
|
return (
|
|
|
|
|
<>
|
2021-08-02 23:29:46 -06:00
|
|
|
{uploadIndicator}
|
2021-07-19 22:43:11 +01:00
|
|
|
{deleteButton}
|
2021-09-06 22:11:35 -06:00
|
|
|
{stopBtn}
|
2021-07-19 22:43:11 +01:00
|
|
|
{this.renderWaveformArea()}
|
2021-03-22 20:54:09 -06:00
|
|
|
</>
|
|
|
|
|
);
|
2021-03-15 22:16:58 -06:00
|
|
|
}
|
|
|
|
|
}
|