Get Started
Iframe our 3d viewer html
Check out the viewer.js in sample code, add iframe to use following code:
Init 3d Viewer
Init SDK key and set the sceneId (room ID) as following sample code:
Add two events listeners:
message listener to get 3d viewer data, and add condition handlers based on viewer cmd list
keydown listener to pass key into viewer SDK, such as wsad support need to add this listener
Listen 3d viewer load progress
There are two stages to listen viewer statuses:
Viewer data loading: Get progress bar percentage value from progressbar cmd in message listener
The sceneready status that represents user enter scene already
The userhasinteract status that represents user start to manipulate the viewer, the videos can automatically play until this moment.
Last updated