🔢 Embed into Website or App

Learn how to embed a Scene Viewer experience to your web page.

You can easily embed the Scene Viewer experience generated and hosted through the console to any web page.

The web page can be part of a website or integrated in a mobile app.

Using iframe

In order to embed the Scene Viewer experience you must declare an iframe tag and set its source to the address of the hosted experience. You can use the full URL as the source:

<iframe src="https://console.echoAR.xyz/webar?key=<YOUR_API_KEY>&entry=<ENTRY-ID>"/>

Or the short shareable link:

<iframe src="https://go.echoar.xyz/<SHORT-CODE>"/>

Code Example

Here is a full styled HTML page with an embedded Scene Viewer experience:

Full URL
Short Link
Full URL
<!DOCTYPE html>
<html>
<head>
<title>Ebmedded WebAR Experience through echoAR</title>
<style>
#background {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 100%;
background-color: rgb(0, 45, 100);
z-index: -1;
}
h1 {
position: relative;
color: white;
text-align: center;
font-size: 5vh;
font-family: Arial, Helvetica, sans-serif;
}
iframe {
position: relative;
width: 100%;
height: 75vh;
}
</style>
</head>
<body>
<div id="background"></div>
<h1>Ebmedded WebAR Experience through echoAR</h1>
<iframe
src="https://console.echoar.xyz/webar?key=<API-KEY>&entry=<ENTRY-ID>"
title="echoAR WebAR iframe element">
</iframe>
</body>
</html>
Short Link
<!DOCTYPE html>
<html>
<head>
<title>Ebmedded WebAR Experience through echoAR</title>
<style>
#background {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 100%;
background-color: rgb(0, 45, 100);
z-index: -1;
}
h1 {
position: relative;
color: white;
text-align: center;
font-size: 5vh;
font-family: Arial, Helvetica, sans-serif;
}
iframe {
position: relative;
width: 100%;
height: 75vh;
}
</style>
</head>
<body>
<div id="background"></div>
<h1>Ebmedded WebAR Experience through echoAR</h1>
<iframe
src="https://go.echoar.xyz/<SHORT-CODE>"
title="echoAR WebAR iframe element">
</iframe>
</body>
</html>