Embedding the Iframe into a Website#
Once the Iframe is deployed, it can be embedded into a website as an Iframe.
This is done by adding the following code snippet to the HTML of your website:
<iframe src="<Tokkio Iframe deployment URL>" title="Tokkio Iframe">
When adding the iframe to your website, ensure that the aspect ratio between height and width provided to the iframe roughly matches the dimensions of the avatar video to prevent parts of the avatar’s face from being cropped.
It is also recommended to set the IFRAME_REDIRECT
configuration in the Iframe to prevent users from accessing the avatar stream directly.
More information on Iframes can be found here.