import { DateIdUtil, DateTimeUtil } from '@canvuus-internal/mvp0-task-core'; // import { MediaAttachment } from '@canvuus-internal/mvp0-task-base'; import { RecordingStatus } from '../core/recording-status'; import { VoiceRecorder } from '../core/voice-recorder'; export class BaseRecorder implements VoiceRecorder { // We only allow playing or recording, but not both, at any given time. private _isRecording: boolean = false; private _recordingStatus: RecordingStatus = RecordingStatus.unknown; constructor(public name: (string | null) = null) { // .... } reset() { // tbd. } dispose() { // tbd. } canRecord(): boolean { return false; } isRecording(): boolean { return false; } startRecording() { throw new Error("Method not implemented."); } pauseRecording() { throw new Error("Method not implemented."); } resumeRecording() { throw new Error("Method not implemented."); } stopRecording() { throw new Error("Method not implemented."); } toString(): string { return 'name:' + this.name; } }