-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Use case
#4641 adds support for camera on Windows platform but is missing implementation for
- Device orientation detection
- Camera facing detection
Proposal
Device orientation
Screen on device orientation need to be handler by windows camera plugin.
Camera plugin implementation must be updated to handle also landscape devices with following rotations:
A landscape oriented devices, i.e. laptops:
- landscapeLeft: 0 degrees
- portraitUp: 90 degrees
- landscapeRight: 180 degrees
- portraitDown: 270 degrees
Where current portrait impementation uses following values:
- portraitUp: 0 degrees
- landscapeRight: 90 degrees
- portraitDown: 180 degrees
- landscapeLeft: 270 degrees
Camera plugin should send DeviceOrientationChangedEvent events via method channel.
Camera facing
Plugin should detect camera facing setting as it is one of the following:
- front
- back
- external
On Windows 10+ platform this can be easily read from device with Win10 only DeviceInformation API.
Each camera device should have camera location/panel.
For Windows 8+ this information is not available via APIs, but devices and drivers should write this information to registry: link