superapi-51aes
v5.5.8
Published
51WORLD SuperAPI is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element o
Downloads
15
Maintainers
Readme
Introduction
SuperAPI is a set of cloud rendering and front-end display application programming interfaces (API) developed by JavaScript. On the basis of the 51 cloud rendering platform, the client 3D scene is embedded in the web page in the form of video stream. Users can overlay their own data components and interact with the scene in both directions. SuperAPI is compatible with current mainstream JavaScript front-end frameworks, providing fast and convenient development interfaces for front-end developers.
The 51SuperAPI platform based on the full factor scene makes the development of 3D scenes so easy!
Documentation
To check out and docs, visit superapi.51aes.com
Install
npm i superapi-51aes
Import
import cloudRenderer from 'superapi-51aes';
CDN
<script src="https://unpkg.com/superapi-51aes/lib/superAPI.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/superapi-51aes/lib/superAPI.min.js"></script>
Init
var cloudRender = new cloudRenderer('renderViewID', 0);
- renderViewID -- Rendering Dom id
- 0 -- single view
Starting
cloudRender.SuperAPI('StartRenderCloud', 'cloudurl');
- how to get cloudurl
Stop Rendering
cloudRender.SuperAPI('StopRenderCloud');
License
Copyright (c) 2019-present, 51WORLD