Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds isVisitor function and fields to joined event. #545

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/dev-guide/iframe-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

Expand Down
8 changes: 8 additions & 0 deletions docs/dev-guide/iframe-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading