@dt-api/ise-api
v1.4.0
Published
@dt-api/ise-api is a JavaScript plugin designed for DtApi, offering a comprehensive set of APIs that empower developers to seamlessly integrate @dt-api/ise-api into their applications.
Downloads
8
Readme
Introduction
@dt-api/ise-api is a JavaScript plugin designed for DtApi, offering a comprehensive set of APIs that empower developers to seamlessly integrate @dt-api/ise-api into their applications.
Install
$ npm i dtapi
$ npm i @dt-api/ise-api
Important
import DtApi from 'dtapi';
import IseApi from '@dt-api/ise-api';
Instantiation
const config = {
id: 'player', //Render scene container(DOM node id)
url: 'https://service.com/Renderers/Any/order', //Rendering service address
order: 'c6526f3f154663431cd29577e3532aa4', //Rendering order, obtained on the rendering client
resolution: [3840, 2160], //Set the rendering output resolution[width, height]
debugMode: 'normal', //none, normal, high
keyboard: { //[optional] keyboard event
normal: false, //Keyboard event, exclude F1~F12 [default disabled]
func: false, //Browser F1 ~ F12 function keys [default disabled]
},
};
const App = new DtApi(config);
const { result } = await App.Plugin.Install(IseApi);
console.log(result.id)
await App.Plugin.Uninstall(result.id);
Initialize the ISE project
await App.ise.init();
License
Copyright (c) 2023-present