简体   繁体   English

谷歌智能家居:异步填充 action.devices.commands.GetCameraStream

[英]Google Smart Home: Fullfill action.devices.commands.GetCameraStream asynchronously

I am implementing google smart home actions for my device.我正在为我的设备实施谷歌智能家居操作。 The device is a camera with the action.devices.traits.CameraStream .该设备是一个带有action.devices.traits.CameraStream的相机。 I want to know what is the best way to respond to the action.devices.commands.GetCameraStream command asynchronously.我想知道异步响应action.devices.commands.GetCameraStream命令的最佳方式是什么。

Currently, once my server receives this command, it needs to notify the device and wait for the device to start streaming.目前,一旦我的服务器收到此命令,它需要通知设备并等待设备开始流式传输。 Then the server can respond to google with the cameraStreamAccessUrl .然后服务器可以使用cameraStreamAccessUrl响应 google。 This is not ideal because the server is being blocked and exactly how it knows the device has started streaming is a bit tricky.这并不理想,因为服务器被阻止并且它如何知道设备已经开始流式传输有点棘手。 I am wondering if there is a better way to achieve this, for example, the server can respond immediately with some sort of deferred response and have the device tell google what the cameraStreamAccessUrl is.我想知道是否有更好的方法来实现这一点,例如,服务器可以立即响应某种延迟响应,并让设备告诉谷歌cameraStreamAccessUrl是什么。

Is this possible?这可能吗? Thanks for your help!谢谢你的帮助!

It sounds like you're trying to find something like follow-up responses to asynchronously notify the stream has started.听起来您正在尝试寻找类似后续响应的信息,以异步通知 stream 已启动。 Unfortunately, CameraStream does not currently support follow-up responses, but you could file a feature request on the public tracker .不幸的是, CameraStream目前不支持后续响应,但您可以在public tracker上提交功能请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Smart Home 如何确定 action.devices.commands.selectChannel 的 channelNumber? - How does Google Smart Home determine channelNumber for action.devices.commands.selectChannel? 谷歌智能家居操作中的 action.devices.commands.OpenClose 特性无法正常工作 - action.devices.commands.OpenClose trait in Google Smart Home actions does not work properly Google Smart Home API上的Action如何异步工作? - How does Action on Google Smart Home API works Asynchronously? 测试 Google 智能家居操作 - Testing the Google Smart Home Action 关于谷歌智能家居令牌交换问题的行动 - Action on google Smart home token exchange problem 是否有用于 Google Smart Home Action 的 .NET 客户端库? - Is there a .NET client library for Google Smart Home Action? 谷歌智能家居行动 OAuth 2.0 服务器 - Google Smart Home Action OAuth 2.0 Server Google Smart Home - 设备与服务器失去连接 - Google Smart Home - Devices lost connection with server Google Assistant Smart Home:Google 智能家居是否支持热水器设备的自定义命令? - Google Assistant Smart Home : Is Google smart home support custom command for water Heater devices? Google Smart Home Action 断开连接 ~ 每月一次 - Google Smart Home Action disconnects ~monthly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM