Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notifications: Camera Aspect Ratio (#650)
- Adjusts the constraints on the preview image view while it vends so it isn't stretched. Fixes #513 / #167. - Adds a sample .apns which can be used to trigger a Camera notification more easily. Looking through the server code, it looks like we can also grab an HLS stream, which is what the frontend is using for previewing the camera. Refs #596. Created a ticket remember this as #649.
- Loading branch information
Showing
4 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
NotificationContentExtension/TestNotifications/camera_notification.apns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"aps": { | ||
"alert": { | ||
"title": "title here", | ||
"body": "body here" | ||
}, | ||
"sound": "default", | ||
"category": "camera" | ||
}, | ||
"entity_id": "camera.outside" | ||
} |