diff --git a/docs/dev-guide/iframe-events.md b/docs/dev-guide/iframe-events.md index f96417833..cceb2dc08 100644 --- a/docs/dev-guide/iframe-events.md +++ b/docs/dev-guide/iframe-events.md @@ -635,7 +635,8 @@ The listener receives an object with the following structure: id: string, // the id of the local participant displayName: string, // the display name of the local participant avatarURL: string, // the avatar URL of the local participant - breakoutRoom: boolean // whether the current room is a breakout room + breakoutRoom: boolean, // whether the current room is a breakout room + visitor: boolean // whether the current user is a visitor } ``` diff --git a/docs/dev-guide/iframe-functions.md b/docs/dev-guide/iframe-functions.md index f67af5e06..cc1525613 100644 --- a/docs/dev-guide/iframe-functions.md +++ b/docs/dev-guide/iframe-functions.md @@ -409,6 +409,14 @@ api.isVideoAvailable().then(available => { }); ``` +### isVisitor + +Returns a whether the current user is a visitor or not. + +```javascript +const isVisitor = api.isVisitor(); +``` + ### isModerationOn Returns a Promise which resolves to the current moderation state of the given media type.