8 changed files with 99 additions and 12 deletions
@ -1 +1,10 @@ |
|||||
{"code":200,"msg":"操作成功","data":{"sourceUrl":"/static/offline","debug":false,"interfaceUrl":"https://project-iot.test.1000my.com/api","mobileNav":"https://1000my.obs.cn-east-2.myhuaweicloud.com/mobileqmgo/index.html#/","handWriteUrl":"http://saas.1000my.com:8014/words","fileUrl":"https://test-598d.obs.cn-east-2.myhuaweicloud.com","backSocket":"ws://127.0.0.1:7181","clickUploadUrl":"/analysis/v1/web/deviceUseClickDataUpload"}} |
|
||||
|
{ |
||||
|
"code": 200, |
||||
|
"msg": "操作成功", |
||||
|
"data": { |
||||
|
"sourceUrl": "/static/offline", |
||||
|
"interfaceUrl": "https://project-iot.test.1000my.com/api", |
||||
|
"mobileNav": "https://1000my.obs.cn-east-2.myhuaweicloud.com/mobileqmgo/index.html#/", |
||||
|
"handWriteUrl": "http://saas.1000my.com:8014/words" |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
export declare global { |
||||
|
type VideoStream = { |
||||
|
age: 23 |
||||
|
genderMale: '女' | '男' |
||||
|
faceID: string |
||||
|
faceImage: string //人脸图片base64格式 需自行拼接前缀 data:image/jpg;base64,
|
||||
|
} |
||||
|
|
||||
|
type HardwareInfo = { |
||||
|
width: string |
||||
|
height: string |
||||
|
ip: string |
||||
|
code: string |
||||
|
mac: string |
||||
|
serverIP: string |
||||
|
} |
||||
|
|
||||
|
type VoiceContent = { |
||||
|
code: number | string |
||||
|
msg: string | null |
||||
|
data: { |
||||
|
modelType: string |
||||
|
actionType: string |
||||
|
query: string |
||||
|
ttsMsg?: string |
||||
|
word?: string |
||||
|
reply?: string[] |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
interface NativeMethods { |
||||
|
startFace(): boolean //通知APP开启摄像头,开始采集
|
||||
|
stopFace(): boolean //通知APP结束识别
|
||||
|
pushFaceBase(): VideoStream //APP推送视频流给应用
|
||||
|
pushFaceAttribute(): VideoStream //APP获取人脸属性推送给应用
|
||||
|
takePhoto(): string //应用通知APP拍照 返回Base64
|
||||
|
startVoice(): boolean //应用通知APP开始语音识别
|
||||
|
stopVoice(): boolean //应用通知APP开始语音识别
|
||||
|
voiceContent(): VoiceContent //语音返回数据
|
||||
|
deviceInfo(): HardwareInfo //设备信息
|
||||
|
goScreenSave(): void // 针对导视应用与app之间屏保跳转进行通讯
|
||||
|
hasProgram(): boolean //是否有节目列表 用于前端导视是否弹起屏保弹框
|
||||
|
} |
||||
|
interface Window { |
||||
|
sleepToWallpaper(): Promise<void> |
||||
|
android: NativeMethods |
||||
|
chrome: { |
||||
|
webview: { |
||||
|
hostObjects: { |
||||
|
sync: { |
||||
|
csobj: NativeMethods |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue