mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-05 05:41:13 +02:00
Appease the linter
This commit is contained in:
parent
61730f2f88
commit
4f75e2944c
@ -53,11 +53,11 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
|
|||||||
await this.state.recorder.stop();
|
await this.state.recorder.stop();
|
||||||
const mxc = await this.state.recorder.upload();
|
const mxc = await this.state.recorder.upload();
|
||||||
MatrixClientPeg.get().sendMessage(this.props.room.roomId, {
|
MatrixClientPeg.get().sendMessage(this.props.room.roomId, {
|
||||||
body: "Voice message",
|
"body": "Voice message",
|
||||||
msgtype: "org.matrix.msc2516.voice",
|
"msgtype": "org.matrix.msc2516.voice",
|
||||||
//msgtype: MsgType.Audio,
|
//"msgtype": MsgType.Audio,
|
||||||
url: mxc,
|
"url": mxc,
|
||||||
info: {
|
"info": {
|
||||||
duration: Math.round(this.state.recorder.durationSeconds * 1000),
|
duration: Math.round(this.state.recorder.durationSeconds * 1000),
|
||||||
mimetype: this.state.recorder.contentType,
|
mimetype: this.state.recorder.contentType,
|
||||||
size: this.state.recorder.contentLength,
|
size: this.state.recorder.contentLength,
|
||||||
|
@ -19,8 +19,8 @@ import {percentageOf} from "../utils/numbers";
|
|||||||
|
|
||||||
// from AudioWorkletGlobalScope: https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope
|
// from AudioWorkletGlobalScope: https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope
|
||||||
declare const currentTime: number;
|
declare const currentTime: number;
|
||||||
declare const currentFrame: number;
|
// declare const currentFrame: number;
|
||||||
declare const sampleRate: number;
|
// declare const sampleRate: number;
|
||||||
|
|
||||||
class MxVoiceWorklet extends AudioWorkletProcessor {
|
class MxVoiceWorklet extends AudioWorkletProcessor {
|
||||||
private nextAmplitudeSecond = 0;
|
private nextAmplitudeSecond = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user