requireAV() function

Validation function to require at least one audio and at least one video stream. 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 requireAV(ctx: Context): boolean;

Parameters

Parameter Type Description

ctx

Context

Returns:

boolean