Camera live View in apple watch

北城以北 提交于 2020-01-17 08:43:08

问题


On 3/9 apple demo. They show how to use apple watch to see the camera live view and open the garage door.

I think they should integrate with HomeKit to control the garage door, but how to get the camera live view??

Do these live view images come from iphone app? then using bluetooth to pass the image data to watch?


回答1:


The iOS parent app to the Watch app most likely integrates with HomeKit to control the garage door and the webcam.

In order to display the images from the webcam on the Watch, they are most likely writing those images into the Shared App Group between the iOS app and the Watch Extension using MMWormhole or a similar approach. They then read the images from the App Group and push them to the Watch over bluetooth and WiFi using the WKInterfaceDevice addCachedImage(_:name:) method. Once the image is uploaded to the Watch, it can then displayed on the Watch using a WKInterfaceImage or WKInterfaceGroup background image.



来源:https://stackoverflow.com/questions/29060830/camera-live-view-in-apple-watch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!