OnStreamResult type

Return type to enable control of an RTMP stream once media arrives on it

Signature:

export declare type OnStreamResult =
/** Accept the stream */
{
    accept: true;
    videoStreamKey: StreamKeyPB | StreamKeySettings;
    audioStreamKey: StreamKeyPB | StreamKeySettings;
}
/** Reject the stream */
 | {
    accept: false;
    reason: string;
};

References: StreamKeySettings