错误对照
部署
渲染服务器无法上线
内网访问后台失败
外网访问后台失败
数据库启动失败
在线安装脚本运行之后没反应
集群版
sh启动命令报not found问题
公有云
Tesla授权
vGPU双显卡问题
分辨率达不到1080p
错误码
web客户端
渲染资源不足
code102
code103
code202
网络抖动,Ifame改造说明
网络抖动,WebSDK改造说明
code203
code401
code402
code403
code404
code500
code501
code502
code504
code601
卡5-5
点对点连接断开
检测到云端应用退出
前后台无法访问
抖动节点
后台GPU和任务管理器有差异
其他
VR客户端
code11
code900
code1001
code1002
持续loading
UDP连接失败
渲染资源不足
其他
AR客户端
渲染资源不足
持续loading
UDP连接失败
二次开发
数据通道
无法通信
传递某些消息体失败
传递消息不正确
接收消息有延迟
websdk
卡1-5
sdk授权不存在
vue2-react 运行报错(node版本18.12.1)
接口调用
没有访问权限
签名和时间戳不能为空
密钥对无效
appliName不能为空
后台调用分片上传接口403
语言参数不识别
使用体验
画面卡顿
OpenGL应用无法双击
其他
授权码被禁用
应用无法同步
-
+
首页
网络抖动,Ifame改造说明
## Ifame 1. 通过接口获取进入应用地址,赋值给iframe的src,并通过接口获取到taskId的值,用于后续重连,代码示例如下: ``` var config = { server: "http://192.168.0.55:8181/", // server webclient: "http://192.168.0.55:8181/webclient", // client testAppId: "925773094113509376", // testAppUrl: "http://192.168.0.55:8181/appli/start/?appliId=925773094113509376" taskId: "" } $("#enter").on("click", function (e) { if (!config.server) { alert("请设置 config.server"); return; } enterApp(config.testAppId, null); }) function enterApp(appliId,taskId) { if(taskId != null){ //重连分支 $("#iframe").attr("src", config.webclient + "?appliId=" + appliId + "&taskId=" + taskId) }else { //重新请求分支 $.get(config.server + "getEnterAppliInfo?appliId=" + appliId, function (res) { console.log("enter appli res:", res, joinParam(res.result)); if (res && res.code == 1000) { config.taskId = res.result.taskId $("#iframe").attr("src", config.webclient + "?" + joinParam(res.result)); } }) } } ``` 2. 当出现异常时,捕获异常。并在设定的“延迟时间”内进行URL重连,例如设置延时时间为20s,若由于网络原因服务挂掉等其他特殊原因在20秒内依旧无法重连。那么超过"延迟时间"后,需要重启Task。代码示例如下: ``` // 与代理服务器连接关闭 //LK_PROXY_SERVER_CLOSE : 202, // 与代理服务器连接出错 //LK_PROXY_SERVER_ERROR : 203, // 与渲染服务器连接关闭 //LK_RENDER_SERVER_CLOSE : 102, var timerId, timeoutTimer; function onMessage(e) { if(e.data.type == lark.EventTypes.LK_PROXY_SERVER_CLOSE || e.data.type == lark.EventTypes.LK_RENDER_SERVER_CLOSE){ //关闭错误提示 poster.setAlertEnable("false"); //开启重连 startReload() } else if(e.data.type == lark.EventTypes.LK_VIDEO_LOADED ){ clearInterval(timerId); clearTimeout(timeoutTimer) } } // 开始计时执行重启 function startReload() { doReload() // 设置时间间隔为5s timerId = setInterval(doReload, 5000) // 20秒后停止计时器 timeoutTimer = setTimeout(() => { stopClock(); }, 20000); } function doReload() { enterApp(config.testAppId, config.taskId) } // 停止计时 function stopClock() { clearInterval(timerId); clearTimeout(timeoutTimer) enterApp(config.testAppId, null) } ```
pxy_ssl
2025年4月8日 16:11
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
开发者交流群
QQ群号:1011308692
Markdown文件
Word文件
PDF文档
PDF文档(打印)
分享
链接
类型
密码
更新密码
有效期