import { DateIdUtil, DateTimeUtil } from '@canvuus-internal/mvp0-task-core'; // import { MediaAttachment } from '@canvuus-internal/mvp0-task-base'; import { PlayingStatus } from '../core/playing-status'; import { VoicePlayer } from '../core/voice-player'; export class BasePlayer implements VoicePlayer { private _selected: (string | null) = null; // We only allow playing or recording, but not both, at any given time. private _isPlaying: boolean = false; private _playingStatus: PlayingStatus = PlayingStatus.unknown; constructor(public name: (string | null) = null) { // .... } reset() { // tbd. } dispose() { // tbd. } list(): string[] { throw new Error("Method not implemented."); } selected(): (string | null) { return this._selected; } select(id: string): (string | null) { // tbd: Validate id.... this._selected = id; return this._selected; } canPlay(): boolean { return false; } isPlaying(): boolean { return false; } startPlaying() { throw new Error("Method not implemented."); } pausePlaying() { throw new Error("Method not implemented."); } resumePlaying() { throw new Error("Method not implemented."); } stopPlaying() { throw new Error("Method not implemented."); } toString(): string { return 'name:' + this.name; } }