requireExactAV() function

Validation function to require exactly N audio and exactly M video streams. Often the default validation will happen to ensure this, as audio and video are subscribed from separate media nodes, but when one media node will produce both audio and video, default validation cannot know that both are required.

Signature:

export declare function requireExactAV({ audio, video }: {
    audio: number;
    video: number;
}): (ctx: Context) => boolean;

Parameters

Parameter Type Description

{ audio, video }

{ audio: number; video: number; }

Returns:

(ctx: Context) ⇒ boolean