WherebyEmbed
The WherebyEmbed
renders a react-native-webview, with some added custom Whereby properties. It accepts a room property, various attributes, event listeners and commands, as well as all other WebView props.
Attributes
The WherebyEmbed
component accepts attributes that you can use to customize the room and user experience. Every one of these attributes can be passed in as props.
Attributes that accept on/off
values in the list, can be used as normal boolean props in the react-native-sdk.
Event listeners
These are optional props, that will trigger the callback on the corresponding event.
Property | Parameters | Description |
---|---|---|
|
| Catch-all listener, that triggers on all the below events. |
|
| Basic dependencies have loaded and the room is ready to be used |
|
| The local user knocks to get into the room |
|
| A new participant join/leave |
|
| The local user joins |
|
| The local user leaves |
|
| A new participant joins the room |
|
| A participant leaves the room |
|
| A host has ended the meeting via "end meeting for all" |
|
| The local user toggles the microphone |
|
| The local user toggles the camera |
|
| The local user toggles the chat |
|
| The local user toggles the people pane |
|
| The local user toggles Picture-in-Picture mode |
|
| The local user grants permission to camera and microphone in the pre-call screen |
|
| The local user denies permission to camera and microphone in the pre-call screen |
|
| The local user toggles the screenshare |
|
| Streaming status changes. Possible values: " | requested | starting | streaming | stopping | stopped" |
|
| User connection status changes. Possible values: "stable | unstable" |
|
| The local user skipped the presented pre-call check steps |
| The local user completed the presented pre-call check steps. Possible values for all status properties: "passed | failed". |
Commands
Commands can be triggered by assigning a React.useRef
to the WherebyEmbed
component. Then use that to call the specific function:
Full list of available commands:
Last updated