renderer-WebRenderer
WebRenderer
type WebRenderer = {
url: string;
resolution: {
width: u32;
height: u32;
};
embedding_method?:
| "chromium_embedding"
| "native_embedding_over_content"
| "native_embedding_under_content";
}
Properties
url
- Url of a website that you want to render.resolution
- Resolution.embedding_method
- Mechanism used to render input frames on the website."chromium_embedding"
- Pass raw input frames as JS buffers so they can be rendered, for example, using a<canvas>
component.warningThis method might have a significant performance impact, especially for a large number of inputs.
"native_embedding_over_content"
- Render a website without any inputs and overlay them over the website content."native_embedding_under_content"
- Render a website without any inputs and overlay them under the website content.