在同步之后,我正在尝试将我的相机与google助手集成起来,我请求google助手“在办公室电视上播放大厅摄像头”,这样我就可以将执行命令拿到我的web钩子上,但是我没有收到任何执行请求,而是说:“对不起,大厅摄像机似乎不支持远程屏幕的流。”
下面是同步响应
{
"payload": {
"agentUserId": "USER3103",
"devices": [
{
"traits": [
"action.devices.traits.CameraStream"
],
"willReportState": false,
"name": {
"name": "hall camera"
},
"attributes": {
"cameraStreamNeedAuthToken": true,
"cameraStreamSupportedProtocols": [
"webrtc"
],
"cameraStreamNeedDrmEncryption": false
},
"id": "210XXXXXXXX",
"type": "action.devices.types.CAMERA",
"deviceInfo": {
"swVersion": "0.0.0",
"model": "11010",
"manufacturer": "WIFICAMERA",
"hwVersion": "HD_1.2.3"
}
}
]
},
"requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf"
}
发布于 2021-09-14 06:19:08
远程屏幕不支持像Chromecast这样的webrtc
协议
在上面的例子中,cameraStreamSupportedProtocols
只是webrtc,这就是为什么它说
"Sorry, it looks like the camera doesn't support streaming to remote screens"
其他协议可以很好的工作,如hls
,progressive_mp4
等。
https://stackoverflow.com/questions/68757307
复制相似问题