controlPtz
控制云台功能
import { MVideoMonitor } from "@yl/super-jssdk"
MVideoMonitor.controlPtz(optional)
参数说明
| 参数 |
类型 |
必填 |
作用 |
| optional |
Object |
否 |
选填参数 |
optional
| 参数 |
类型 |
必填 |
作用 |
| options |
object |
否 |
参见options 结构说明 |
options结构说明
| 参数 |
类型 |
必填 |
作用 |
| enablePtz |
bool |
否 |
true:云台功能可用;false:云台功能不可用;默认true;1.1.8版本开始生效 |
| unablePtzTips |
string |
否 |
当禁用云台功能后,用户点击云台控制按钮时弹出的提示语;默认:当前有其他用户在操作,请稍后再试;1.1.8版本开始生效 |
返回说明
| 参数 |
类型 |
作用 |
| resolve() |
Function |
成功回调 |
| reject(err) |
Function |
失败回调,err为详细错误信息,是一个json对象,例如:{"errCode":-1,"errMsg":"出错啦"} |
代码示例
MVideoMonitor.controlPt)
.then(() => {
console.log();
})
.catch(err => {
console.log('插件调用失败:', err)
})