chore: remove CoreMediaConverter
This commit is contained in:
1 parent
287d52fe1a
commit
b244115600
4 files changed
+6
-18
No files matched your search
@@ -2,7 +2,7 @@ import { MessageCappingTracker } from '@waha/core/abc/MessageCappingTracker';
|
||||
import { ReachoutTimelockTracker } from '@waha/core/abc/ReachoutTimelockTracker';
|
||||
import { getBrowserExecutablePath as getBrowserExecutablePathAutodetect } from '@waha/core/abc/session.browser';
|
||||
import { PluginRegistry } from '@waha/core/abc/session.plugin.registry';
|
||||
import { IMediaConverter } from '@waha/core/media/IConverter';
|
||||
import { IMediaConverter } from '@waha/core/media/IMediaConverter';
|
||||
import { Ffmpeg } from '@waha/core/utils/ffmpeg';
|
||||
import { MessagesForRead } from '@waha/core/utils/convertors';
|
||||
import {
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import { AvailableInPlusVersion } from '../exceptions';
|
||||
|
||||
export interface IMediaConverter {
|
||||
voice(content: Buffer): Promise<Buffer>;
|
||||
video(content: Buffer): Promise<Buffer>;
|
||||
}
|
||||
|
||||
export class CoreMediaConverter implements IMediaConverter {
|
||||
video(content: Buffer): Promise<Buffer> {
|
||||
throw new AvailableInPlusVersion();
|
||||
}
|
||||
|
||||
voice(content: Buffer): Promise<Buffer> {
|
||||
throw new AvailableInPlusVersion();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface IMediaConverter {
|
||||
voice(content: Buffer): Promise<Buffer>;
|
||||
video(content: Buffer): Promise<Buffer>;
|
||||
}
|
||||
@@ -3,7 +3,7 @@ import { spawn } from 'child_process';
|
||||
import * as fs from 'fs/promises';
|
||||
import * as path from 'path';
|
||||
import { Logger } from 'pino';
|
||||
import { IMediaConverter } from '@waha/core/media/IConverter';
|
||||
import { IMediaConverter } from '@waha/core/media/IMediaConverter';
|
||||
|
||||
function IsMP3(buffer) {
|
||||
if (!Buffer.isBuffer(buffer) || buffer.length < 3) return false;
|
||||
|
||||
Reference in new issue
Block a user