Camera live View in apple watch

2019-09-04 16:53发布

问题:

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.