RoomPreview
This React component gives you an easy way to display the preview of a video room.
Import
import { RoomPreview } from "@signalwire-community/react";
Props
Name | Type | Default | Description |
---|---|---|---|
previewUrl | string | The URL to the room preview. | |
loadingUrl | string | The URL to an image to display while the room preview is loading. | |
style | React.CSSProperties | Style properties. |
Example
<RoomPreview
previewUrl={previewUrl}
loadingUrl="https://swrooms.com/swloading.gif"
style={{ height: 150 }}
/>