【问题标题】:CameraStream Actions on GoogleGoogle 上的 CameraStream 操作
【发布时间】: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


    【解决方案1】:

    如果您家中有 Chromecast,Google Home 会将视频流转发到 Chromecast。如果你没有显示器,我不知道流会去哪里。

    说“在我的手机上”不是 Google Home 的有效目标。要在手机上使用它,您需要使用手机上的智能助理或 Google Home 应用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-18
      • 1970-01-01
      • 1970-01-01
      • 2012-08-07
      • 2019-05-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多