feat(Receiver): Add videoData event to allow users to process video data
This commit is contained in:
33
typings/index.d.ts
vendored
33
typings/index.d.ts
vendored
@@ -1083,21 +1083,36 @@ export class VoiceReceiver extends EventEmitter {
|
||||
public createStream(user: UserResolvable, options?: { mode?: 'opus' | 'pcm'; end?: 'silence' | 'manual' }): Readable;
|
||||
|
||||
public on(event: 'debug', listener: (error: Error | string) => void): this;
|
||||
public on(
|
||||
event: 'videoData',
|
||||
listener: (
|
||||
ssrc: number,
|
||||
ssrcData: {
|
||||
userId: Snowflake;
|
||||
hasVideo: boolean;
|
||||
},
|
||||
headerRaw: Buffer,
|
||||
packetDecrypt: Buffer,
|
||||
) => void,
|
||||
): this;
|
||||
public on(event: string, listener: (...args: any[]) => void): this;
|
||||
|
||||
public once(event: 'debug', listener: (error: Error | string) => void): this;
|
||||
public once(
|
||||
event: 'videoData',
|
||||
listener: (
|
||||
ssrc: number,
|
||||
ssrcData: {
|
||||
userId: Snowflake;
|
||||
hasVideo: boolean;
|
||||
},
|
||||
headerRaw: Buffer,
|
||||
packetDecrypt: Buffer,
|
||||
) => void,
|
||||
): this;
|
||||
public once(event: string, listener: (...args: any[]) => void): this;
|
||||
}
|
||||
|
||||
/*
|
||||
export class IvfJoinner {
|
||||
constructor(codec: 'VP8');
|
||||
public stream: Readable;
|
||||
public stop(): void;
|
||||
public createFinalFile(read: Readable, write: Writable): void;
|
||||
}
|
||||
*/
|
||||
|
||||
export { Collection } from '@discordjs/collection';
|
||||
|
||||
export interface CollectorEventTypes<K, V, F extends unknown[] = []> {
|
||||
|
||||
Reference in New Issue
Block a user