OnStreamResult type

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

Signature:

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

References: StreamKeySettings