Develop webclient for LarkSR cloudrending or LarkSR VR monitor client. Free design UI and define operate.
For most common scene LarkSR default webclient, which is also developer with SDK same UI ui-mobile-vue, access cloudrending 3D app without develop.
Links:
SDK include:
- LarkSR restful request.
- CloudRending Video.
- Handle input, keyboard, gamepad, touchscreen.
- Scale mode.
- Fullscreen mode.
- Landscap mode.
SDK V3.2.30 only support server version above V3.2.3.1 Old verion SDK Demo V3.2.314 server and datachannel above 3.2.5.1
- npm
npm i larksr_websdk
- plain html
<script src="larksr-web-sdk.min.js"></script>
Import websdk with plain html SDK under global object larksr_websdk.
Connect cloud resource and all event access with new LarkSR object.
SDK default config html 100% height 100% width viewport. Auto handle input.
SDK mainly contain loading page and cloud video page no other ui.efore start:
- Lark SR server address, exp:http://222.128.6.137:8181/
- SDK auth code,connect [email protected]
- App id from Lark SR admin server applist.
var client = new LarkSR({
// root html element
// WARNING not document.documentElement
rootElement: document.getElementById('container'),
// Sever address
serverAddress: "Lark Sever address",
// SDK ID or set by call initSDKAuthCode
// authCode: 'your SDK ID',
});
Set sdk auth code.
client.initSDKAuthCode('Your SDK ID')
.then(() => {
// start connect;
client.connect({
// LarkSR cloud appid from LarkSR admin server.
// doc
// https://www.pingxingyun.com/online/api3_2.html?id=476
appliId: "appid from LarkSR admin"
})
.then(() => {
console.log('enter success');
})
.catch((e) => {
console.error(e);
});
})
.catch((e) => {
console.error(e);
});
// ...
// close connection.
// client.close();
// release DOM element.
// client.destroy();
- sample-plain-html
- sample-react
- sample-vue
- sample-vue3
- ui-mobile-vue default webclient ui.
- AI Voice to cloud demo