Skip to main content

Request video call

This section covers everything you need to do to request video calls.

Request video call API

When a user requests a video call, the stream emits CONSTANTS.VIDEO.EVENT.REQUEST event on the receiver's end which can be used to display a modal to accept/deny the call.

// aliceVideoCall.request(recipients[], options?);
await aliceVideoCall.request([recipient]);

Request video call parameters

PropertyTypeSub TypeDescription
recipientsstring[]-Wallet address or addresses of the recipient(s). Number of different wallet standards are suppported.
options?VideoInitializeOptions--
options.rules.access.typestringIdentifier for Push Video or Space. We use VIDEO_NOTIFICATION_ACCESS_TYPE.PUSH_CHAT from @pushprotocol/restapi here for Push Video
options.rules.access.data.chatId?stringUnique identifier for every push chat, here, the one between the alice and the bob

Note: Parameters in this style are mandatory.

Details
200 OK