πŸ”’
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:
1
<iframe src="https://api.echo3D.co/webar?key=<YOUR_API_KEY>&entry=<ENTRY-ID>"/>
Copied!
Or the short shareable link:
1
<iframe src="https://go.echo3D.co/<SHORT-CODE>"/>
Copied!

Code Example

Here is a full styled HTML page with an embedded Scene Viewer experience:
Full URL
Short Link
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Ebmedded WebAR Experience through echo3D</title>
5
<style>
6
#background {
7
top: 0;
8
left: 0;
9
position: fixed;
10
width: 100%;
11
height: 100%;
12
background-color: rgb(0, 45, 100);
13
z-index: -1;
14
}
15
h1 {
16
position: relative;
17
color: white;
18
text-align: center;
19
font-size: 5vh;
20
font-family: Arial, Helvetica, sans-serif;
21
}
22
iframe {
23
position: relative;
24
width: 100%;
25
height: 75vh;
26
}
27
</style>
28
</head>
29
<body>
30
<div id="background"></div>
31
<h1>Ebmedded WebAR Experience through echo3D</h1>
32
<iframe
33
src="https://api.echo3D.co/webar?key=<API-KEY>&entry=<ENTRY-ID>"
34
title="echo3D WebAR iframe element">
35
</iframe>
36
</body>
37
</html>
Copied!
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Ebmedded WebAR Experience through echo3D</title>
5
<style>
6
#background {
7
top: 0;
8
left: 0;
9
position: fixed;
10
width: 100%;
11
height: 100%;
12
background-color: rgb(0, 45, 100);
13
z-index: -1;
14
}
15
h1 {
16
position: relative;
17
color: white;
18
text-align: center;
19
font-size: 5vh;
20
font-family: Arial, Helvetica, sans-serif;
21
}
22
iframe {
23
position: relative;
24
width: 100%;
25
height: 75vh;
26
}
27
</style>
28
</head>
29
<body>
30
<div id="background"></div>
31
<h1>Ebmedded WebAR Experience through echo3D</h1>
32
<iframe
33
src="https://go.echo3D.co/<SHORT-CODE>"
34
title="echo3D WebAR iframe element">
35
</iframe>
36
</body>
37
</html>
Copied!
Last modified 17d ago
Copy link