【发布时间】:2019-12-31 12:53:19
【问题描述】:
我正在尝试使用谷歌助手将相机集成到我的智能家居中。我在谷歌上关注CameraStream。我已经同步了我的相机并尝试使用 URL(cameraStreamAccessUrl) 执行和响应。
命令:“显示相机”
谷歌主页回复:“当然,流式摄像头”
命令:“在我的手机上显示相机”
google home 回复:“抱歉,我不知道在哪里播放视频。请告诉我屏幕的确切名称”
我的问题是如何在手机或应用程序上流式传输?
执行请求google json:
{
"inputs": [
"intent": "action.devices.EXECUTE",
"payload": {
"commands": [
{
"devices": [
{
"customData": {
"barValue": true,
"bazValue": "lambtwirl",
"fooValue": 74
},
"id": "id"
}
],
"execution": [
{
"command": "action.devices.commands.GetCameraStream",
"params": {
"StreamToChromecast": false,
"SupportedStreamProtocols": [
"hls"
]
}
}
]
}
]
}
}], "requestId": "requestId"
}
我的 json 响应:
{
"requestId": "requestId",
"payload": {
"commands": [
{
"ids": [
"requestId"
],
"status": "SUCCESS",
"states": {
"cameraStreamAccessUrl": "https://url.url"
}
}
]
}
}
【问题讨论】:
标签: actions-on-google google-smart-home