Remove test function
This commit is contained in:
parent
9aa5348c7f
commit
1dc2427128
1 changed files with 0 additions and 14 deletions
|
@ -18,7 +18,6 @@ import * as Recorder from 'opus-recorder';
|
|||
import encoderPath from 'opus-recorder/dist/encoderWorker.min.js';
|
||||
import {MatrixClient} from "matrix-js-sdk/src/client";
|
||||
import CallMediaHandler from "../CallMediaHandler";
|
||||
import {sleep} from "../utils/promise";
|
||||
import {SimpleObservable} from "matrix-widget-api";
|
||||
|
||||
export class VoiceRecorder {
|
||||
|
@ -110,19 +109,6 @@ export class VoiceRecorder {
|
|||
}).then(r => r['content_uri']);
|
||||
return this.mxc;
|
||||
}
|
||||
|
||||
// TODO: @@ TravisR: REMOVE
|
||||
public async test() {
|
||||
this.start()
|
||||
.then(() => sleep(5000))
|
||||
.then(() => this.stop())
|
||||
.then(() => this.upload())
|
||||
.then(() => this.client.sendMessage("!HKjSnKDluFnCCnjayl:localhost", {
|
||||
body: "Voice message",
|
||||
msgtype: "m.audio", // TODO @@
|
||||
url: this.mxc,
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
window.mxVoiceRecorder = VoiceRecorder;
|
||||
|
|
Loading…
Reference in a new issue