【发布时间】:2020-09-11 09:34:15
【问题描述】:
1.我们正在使用 Google Nest Hub 调试我们的智能家居摄像头流。
2.我们可以访问设备同步并通过验证器。这是我们的设备同步响应:
{
"payload": {
"agentUserId": "b4ad4e18-ab90-4b0e-bc02-264da5bb6469",
"devices": [{
"traits": ["action.devices.traits.CameraStream"],
"name": {
"defaultNames": ["Imilab"],
"name": "camera1",
"nicknames": ["camera1"]
},
"attributes": {
"cameraStreamNeedAuthToken": false,
"cameraStreamSupportedProtocols": ["hls"],
"cameraStreamNeedDrmEncryption": false
},
"id": "gejiayu2",
"type": "action.devices.types.CAMERA",
"deviceInfo": {
"model": "a1znn6t1et8",
"manufacturer": "Imilab"
}
}]
},
"requestId": "8664974301718985362"
}
3.我们提供HLS地址,使用ffplayffplay info或HTML可以正常播放,这是我们的演示HLS地址:https://cdn.cnbj2.fds.api.mi-img.com/cloud-storage-test/test1.m3u8。
4.但是我们不能使用 Google Nest Hub 来播放它。我在附件中录制了调试视频。这是我们的相机流响应:
{
"payload": {
"commands": [{
"ids": ["gejiayu2"],
"status": "SUCCESS",
"states": {
"cameraStreamReceiverAppId": "",
"cameraStreamAuthToken": "",
"cameraStreamAccessUrl": "https://cdn.cnbj2.fds.api.mi-img.com/cloud-storage-test/test1.m3u8"
}
}]
},
"requestId": "1625829984244045201"
}
【问题讨论】:
标签: actions-on-google google-smart-home