Post

Replies

Boosts

Views

Activity

View Homekit Camera Live Stream
Hello, My goal is to display the live video stream from a HomeKit camera in my Swift/SwiftUI iOS app. Using HMHomeManager, I have retrieved the HMHome object and found the camera as an HMAccessory object. Within this, I have located the HMCameraProfile and, through it, the HMCameraStreamControl. So far, I believe I understand the object model. However, I do not know how to display the stream. I have come across the CameraView, but I am not sure how to access the required HMCameraSource for the CameraView from the aforementioned object model. Is my current approach fundamentally incorrect? I would appreciate it if you could explain the relationships involved and possibly point me to an example project. Best regards, Matthias
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1
2
670
Oct ’24
Update count and end of Live Activities
Hi, i'm writing my first iOS Live Activity. Two questions about that: If "NSSupportsLiveActivitiesFrequentUpdates" is set, how many high-priority updates are permitted? I found no exact count. If the Live Activity is ended by user in the Lock Screen (swiping left and remove), how can I catch this to stop server-side update requests? Thanks!
0
0
602
Jul ’23
View Homekit Camera Live Stream
Hello, My goal is to display the live video stream from a HomeKit camera in my Swift/SwiftUI iOS app. Using HMHomeManager, I have retrieved the HMHome object and found the camera as an HMAccessory object. Within this, I have located the HMCameraProfile and, through it, the HMCameraStreamControl. So far, I believe I understand the object model. However, I do not know how to display the stream. I have come across the CameraView, but I am not sure how to access the required HMCameraSource for the CameraView from the aforementioned object model. Is my current approach fundamentally incorrect? I would appreciate it if you could explain the relationships involved and possibly point me to an example project. Best regards, Matthias
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
1
Boosts
2
Views
670
Activity
Oct ’24
Update count and end of Live Activities
Hi, i'm writing my first iOS Live Activity. Two questions about that: If "NSSupportsLiveActivitiesFrequentUpdates" is set, how many high-priority updates are permitted? I found no exact count. If the Live Activity is ended by user in the Lock Screen (swiping left and remove), how can I catch this to stop server-side update requests? Thanks!
Replies
0
Boosts
0
Views
602
Activity
Jul ’23