更新记录
1.0.2(2023-09-04)
添加开发文档
1.0.1(2023-09-04)
添加使用方式
1.0.0(2023-09-04)
初始版本
查看更多平台兼容性
uts-hk
开发文档
UTS 语法 UTS API插件 UTS 组件插件 Hello UTS
使用说明
方法以及参数
[
{
"method":"init",
"name":"初始化",
params:"host,appKey,appSecret"
},
{
"method":"getCameras",
"name":"获取摄像头列表",
params:"pageNo,pageSize"
},
{
"method":"previewURLs",
"name":"获取预览地址",
params:"cameraIndexCode"
},
{
"method":"playbackURLs",
"name":"获取回放地址",
params:"cameraIndexCode"
},
{
"method":"talkURLs",
"name":"获取对讲地址",
params:"cameraIndexCode"
},
{
"method":"startVoiceTalk",
"name":"开启对讲",
params:"talkUrl"
},
{
"method":"stopVoiceTalk",
"name":"关闭对讲",
params:""
},
{
"method":"controlling",
"name":"云台控制,放大,缩小,拉近,拉远等",
params:"cameraIndexCode,command"
},
]
使用示例
import {
init,
getCameras
} from "@/uni_modules/hmj-hk";
var host,appKey,appSecret;
init(host,appKey,appSecret)
var listStr = getCameras(1, 10);
console.log(listStr)