We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS
net9.0-*
.NET 9.0.101
AVCaptureConnection.VideoOrientation seems to be obsolete on iOS 17+, telling us to use AVCaptureConnection.VideoRotationAngle instead.
However it seems that currently AVCaptureConnection.VideoRotationAngle is readonly
n/a
No response
https://developer.apple.com/documentation/avfoundation/avcaptureconnection/videorotationangle
var videoRotationAngle: CGFloat { get set }
The text was updated successfully, but these errors were encountered:
I can confirm this, and a fix is in progress.
Do you need a workaround in the meantime?
Sorry, something went wrong.
@rolfbjarne Awesome, thank's
If there's one available i'll happily take it, otherwise i'll wait for a service release
Something like this should work:
using System.Runtime.InteropServices; using ObjCRuntime; [DllImport (Constants.ObjectiveCLibrary)] static extern void objc_msgSend (IntPtr handle, IntPtr selector, nfloat value); public static void SetOrientationAngle (this AVCaptureConnection connection, nfloat orientationAngle) { objc_msgSend (connection.Handle, Selector.GetHandle ("setVideoRotationAngle:"), orientationAngle); } // ... previewLayer.Connection.SetOrientationAngle (orientationAngle);
[AVFoundation] Add missing APIs up to Xcode 16.2.
1cc1ec4
Fixes #15858. Fixes #21834. Fixes #21850.
Successfully merging a pull request may close this issue.
Apple platform
iOS
Framework version
net9.0-*
Affected platform version
.NET 9.0.101
Description
AVCaptureConnection.VideoOrientation seems to be obsolete on iOS 17+, telling us to use AVCaptureConnection.VideoRotationAngle instead.
However it seems that currently AVCaptureConnection.VideoRotationAngle is readonly
Steps to Reproduce
n/a
Did you find any workaround?
No response
Relevant log output
https://developer.apple.com/documentation/avfoundation/avcaptureconnection/videorotationangle
var videoRotationAngle: CGFloat { get set }
The text was updated successfully, but these errors were encountered: