
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
larksr_websdk
Advanced tools
Larksr websdk. Easy to build a cloud render client for larksr system or ue4 pixelstreaming.docs: https://paraversetechnology.github.io/en/webclient_sdk/
Develop webclient for LarkSR cloudrending or LarkSR VR monitor client. Free design UI and define operate.
Links:
SDK include:
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 i larksr_websdk
<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:
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',
// test backgroud url
// loadingBgUrl: 'https://home-obs.pingxingyun.com/homePage_4_0/bg.jpg',
});
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();
SDK 适用于自定义 LarkSR 云渲 Web 客户端或者自定义 VR 监控画面客户端的二次开发,自定义 UI 和操作逻辑等。有较高的灵活性。
对于不需要二次开发,或者简单修改,可以参照使用 iframe 的接入方式,将标准 Web 客户端网页嵌入到系统中去。
参考连接:
SDK 功能包括:
V3.2.30 开始仅支持服务端 V3.2.3.1 以上版本。 老版本 SDK Demo 下载 V3.2.314 版本对应服务器版本和数据通道版本为 3.2.5.1 及以上
npm i larksr_websdk
<script src="larksr-web-sdk.min.js"></script>
使用前应准备好
var client = new LarkSR({
// 设置挂载显示的元素
// 注意*不要*设置为 document.documentElement
rootElement: document.getElementById('container'),
// 服务器地址,实际使用中填写您的服务器地址
// 如:http://222.128.6.137:8181/
// 当使用平行云托管服务时服务器地址自动分配,可留空。
// larksr.connectWithPxyHost 进入应用
serverAddress: "Lark 服务器前台地址",
// SDK ID 也可在 initSDKAuthCode 设置
authCode: '您的 SDK ID',
// 测试载入背景图
// loadingBgUrl: 'https://home-obs.pingxingyun.com/homePage_4_0/bg.jpg',
});
// start connect;
// 使用平行云托管服务时,用 connectWithPxyHost 进入应用并自动分配服务器.
client.connect({
// 要使用的云端资源的应用 ID,从后云雀后台接口获取
// 参考查询应用一栏文档
// https://www.pingxingyun.com/online/api3_2.html?id=476
// 如 222.128.6.137:8181 系统下的 879408743551336448 应用
appliId: "应用ID"
})
.then(() => {
console.log('enter success');
})
.catch((e) => {
console.error(e);
});
// ...
// 主动关闭并清理资源
// client.close();
SDK 加载成功之后,非模块模式下,SDK 挂载为全局对象 larksr_websdk。
连接云端资源,管理生命周期和事件等主要在 LarkSR 对象下。
默认情况下自动连接云端资源,将容器设置为浏览器视口高度,并配置网页 100% 宽高显示。SDK 内部自动处理按键输入输出。
SDK 只包含 loading,内部不包含其他 UI。主要目的时二次开发云渲染客户端自定义 UI 使用。
更多使用方式和 API 文档可以参考下面项目和 doc 文件夹下的详细文档
FAQs
Larksr websdk. Easy to build a cloud render client for larksr system or ue4 pixelstreaming.docs: https://paraversetechnology.github.io/en/webclient_sdk/
The npm package larksr_websdk receives a total of 18 weekly downloads. As such, larksr_websdk popularity was classified as not popular.
We found that larksr_websdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.