Props and Types
Please follow to WebRTCClientProps
interface exported from module to check properties types
Available props:
Prop name | Type | Description | Default |
---|---|---|---|
address | string | WSS Url of Signalling |
|
packageId | string | Id of your project |
|
shareId | string | Share Id created for your project |
|
loader | (val: boolean, disconnected?: boolean) => void | Callback for loading status |
|
videoInitializeCallback | (descriptor) => unknown | This event will be triggered once the video is initialized and ready to play. |
|
sizeContainer | HTMLElement | string | The root container defines the boundaries of the video and container elements. In case of a string, please provide the ID attribute of the HTML element. If you do so, there is no need to specify the container and videoRef arguments. |
|
container | HTMLElement | This element will wrap the video so that we can place UI elements that are aligned with the size of the |
|
videoRef | HTMLVideoElement |
|
|
audioRef | HTMLAudioElement | element reference |
|
orientationZoom | { portrait: number; landscape: number; } | This is the zoom level to send to the UE4 application when switching from portrait to landscape mode, and vice versa. |
|
forceVideoToFitContainer | boolean | Try to fit sizeContainer |
|
extmapAllowMixed | boolean | Should be false if UE version is less than 4.27 |
|
applicationResponse | (response: string) => unknown | This is the callback that will be triggered if the UE application sends a text response. |
|
autoplay | { video: boolean; audio: boolean; } | Autoplay for | { } |
playOverlay | boolean | Overlay with play button |
|
updateQueueData | { updateQueueData: (queueData: Queue) => void; // triggered when you are not in a queue anymore hideQueueDialog: () => void; } | Callback to update the queue dialog state |
|
sendResolutionOnResize | boolean | enable / disable sendResolution when window is resized |
|
sendLetter | (letter: string) => unknown | These are the information messages from the signaling system about the current connection status. |
|
Last updated