1.0.9 • Published 3 years ago
hyext-api-adapter
抹平hyext部分api,暴露给外部小程序使用
release log
- 1.0.3 接口名字修改 & 新增4个接口(GetHostCameraLayerInfo,SelectProcessingCameraLayer,ReqHostStartOutPutPreviewStream,ReqHostStopOutPutPreviewStream)
localMessage Module
- StartLocalFunctionPreview
启动本地功能的预览效果
StartLocalFunctionPreview({xxx: xx}).then(res => {
// do something
}).catch(err => {
})
- StopLocalFunctionPreview
停止本地功能的预览效果
StopLocalFunctionPreview({xxx: xx}).then(res => {
// do something
}).catch(err => {
})
- StartLocalFunctionPushStream
开启本地功能推流到主播端预览界面
StartLocalFunctionPushStream({xxx: xx}).then(res => {
// do something
}).catch(err => {
})
- StopLocalFunctionPushStream
停止本地功能推流到主播端预览界面
StopLocalFunctionPushStream({xxx: xx}).then(res => {
// do something
}).catch(err => {
})
- SendOperateMessage
发送操作消息到端上
SendOperateMessage({xxx: xx}).then(res => {
// do something
}).catch(err => {
})
- IsLocalFunctionReady
小程序监听本地功能是否准备完毕
IsLocalFunctionReady(res => {
// do something
})
- OnLocalFunctionMessage
监听本地功能发送过来的消息
OnLocalFunctionMessage(res => {
// do something
})