Skip to content

AVFoundation macOS xcode14.3 beta1

Alex Soto edited this page Feb 16, 2023 · 1 revision

#AVFoundation.framework

diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h	2022-10-06 13:20:54
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h	2023-02-12 14:14:12
@@ -2180,6 +2180,34 @@
  */
 @property(nonatomic, readonly, getter=isCenterStageActive) BOOL centerStageActive API_AVAILABLE(macos(12.3), ios(14.5), macCatalyst(14.5)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos);
 
+/*!
+ @property centerStageRectOfInterestSupported
+ @abstract
+    Indicates whether the device supports the Center Stage Rect of Interest feature.
+ 
+ @discussion
+    This property returns YES if the device supports Center Stage Rect of Interest.
+ */
+@property(nonatomic, readonly, getter=isCenterStageRectOfInterestSupported) BOOL centerStageRectOfInterestSupported API_UNAVAILABLE(macos, ios, macCatalyst) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos);
+
+/*!
+ @property centerStageRectOfInterest
+ @abstract
+    Specifies the effective region within the output pixel buffer that will be used to perform Center Stage framing.
+ 
+ @discussion
+    Applications that wish to apply additional processing (such as cropping) on top of Center Stage's output can use this property to guide Center Stage's framing.
+ 
+    The rectangle's origin is top left and is relative to the coordinate space of the output pixel buffer. The default value of this property is the value CGRectMake(0, 0, 1, 1), where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This rectangle of interest is applied prior to rotation, mirroring or scaling.
+ 
+    Pixels outside of this rectangle of interest will be blackened out.
+ 
+    Setting this property has no impact on objects specified in the metadata output.
+ 
+    -setCenterStageRectOfInterest: throws an NSGenericException if called without first obtaining exclusive access to the receiver using -lockForConfiguration:. -setCenterStageRectOfInterest: throws an NSInvalidArgumentException if none of the AVCaptureDeviceFormats supported by the receiver support CenterStage. -setCenterStageRectOfInterest: throws an NSInvalidArgumentException if +centerStageEnabled is NO on the AVCaptureDevice class. -setCenterStageRectOfInterest: throws an NSInvalidArgumentException if the provided rectOfInterest goes outside the normalized (0-1) coordinate space.
+ */
+@property(nonatomic) CGRect centerStageRectOfInterest API_AVAILABLE(macos(13.3), ios(16.4), macCatalyst(16.4)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos);
+
 @end
 
 
diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVError.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVError.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVError.h	2022-11-10 19:16:21
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVError.h	2023-02-11 22:22:13
@@ -117,6 +117,8 @@
 	AVErrorInvalidSampleCursor API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) = -11880,
 	AVErrorFailedToLoadSampleData API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) = -11881,
 	AVErrorAirPlayReceiverTemporarilyUnavailable API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) = -11882,
+	AVErrorEncodeFailed API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) = -11883,
+	AVErrorSandboxExtensionDenied API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) = -11884,
 };
 
 #else
diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerInterstitialEventController.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerInterstitialEventController.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerInterstitialEventController.h	2022-10-06 13:21:22
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerInterstitialEventController.h	2023-02-11 16:43:40
@@ -234,6 +234,30 @@
 */
 @property (nonatomic, readonly) NSDictionary *userDefinedAttributes;
 
+/*!
+  @property     assetListResponse
+  @abstract     The asset list JSON response as a dictionary, or nil if no asset list response has been loaded for the event.
+  @discussion   If the AVPlayerInterstitialEvent's templateItems is empty and the assetListResponse is nil, then an asset list read is expected. If the AVPlayerInterstitialEvent's templateItems is not empty and the assetListResponse is nil, then an asset list read is not expected.
+*/
+@property (nonatomic, readonly, nullable) NSDictionary *assetListResponse API_AVAILABLE(macos(13.3), ios(16.4), tvos(16.4), watchos(9.4));
+
+/*!
+  @enum AVPlayerInterstitialEventAssetListResponseStatus
+  @abstract These constants describe the status of the asset list response for an AVPlayerInterstitialEvent.
+
+  @constant	 AVPlayerInterstitialEventAssetListResponseStatusAvailable
+	Indicates that the asset list response is now available and non-nil, meaning the asset list read was successful.
+  @constant	 AVPlayerInterstitialEventAssetListResponseStatusCleared
+	Indicates that asset list response has been cleared and reverted to its original state of nil.
+  @constant	 AVPlayerInterstitialEventAssetListResponseStatusUnavailable
+	Indicates that the asset list response is unavailable, meaning the asset list read failed.
+*/
+typedef NS_ENUM(NSInteger, AVPlayerInterstitialEventAssetListResponseStatus) {
+	AVPlayerInterstitialEventAssetListResponseStatusAvailable = 0,
+	AVPlayerInterstitialEventAssetListResponseStatusCleared = 1,
+	AVPlayerInterstitialEventAssetListResponseStatusUnavailable = 2
+} API_AVAILABLE(macos(13.3), ios(16.4), tvos(16.4), watchos(9.4));
+
 @end
 
 @interface AVPlayerInterstitialEvent (MutableEvents)
@@ -318,6 +342,36 @@
 */
 AVF_EXPORT NSNotificationName const AVPlayerInterstitialEventMonitorCurrentEventDidChangeNotification API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0));
 
+/*!
+  @constant     AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeNotification
+  @abstract     A notification that is posted whenever an AVPlayerInterstitialEvent's asset list response status changes.
+  @discussion   Carries a userInfo dictionary that can contain the following keys and values:
+                    1. AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeEventKey, with a value that indicates the AVPlayerInterstitialEvent for which the asset response status has changed.
+                    2. AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeStatusKey, with a value of type AVPlayerInterstitialEventAssetListResponseStatus, indicating the changed asset response status.
+                    3. AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeErrorKey, with a value of type NSError that carries additional information about the failure to read the asset list. This key is only present when the new AVPlayerInterstitialEventAssetListResponseStatus is AVPlayerInterstitialEventAssetListResponseStatusUnavailable.
+*/
+AVF_EXPORT NSNotificationName const AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeNotification API_AVAILABLE(macos(13.3), ios(16.4), tvos(16.4), watchos(9.4));
+
+/*!
+  @constant     AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeEventKey
+  @abstract     The dictionary key for the AVPlayerInterstitial event that had its asset list response status changed in the payload of the AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeNotification.
+  @discussion   The value corresponding to this key is of type AVPlayerInterstitialEvent.
+*/
+AVF_EXPORT NSString *const AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeEventKey API_AVAILABLE(macos(13.3), ios(16.4), tvos(16.4), watchos(9.4));
+
+/*!
+  @constant     AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeStatusKey
+  @abstract     The dictionary key for the asset list response status in the payload of the AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeNotification.
+  @discussion   The value corresponding to this key is of type AVPlayerInterstitialEventAssetListResponseStatus.
+*/
+AVF_EXPORT NSString *const AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeStatusKey API_AVAILABLE(macos(13.3), ios(16.4), tvos(16.4), watchos(9.4));
+
+/*!
+  @constant     AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeErrorKey
+  @abstract     The dictionary key for the NSError in the payload of the AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeNotification.
+  @discussion   The value corresponding to this key is of type NSError. This key only exists in the payload of AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeNotification if AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeStatusKey in the same payload points to a value of AVPlayerInterstitialEventAssetListResponseStatusUnavailable.
+*/
+AVF_EXPORT NSString *const AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeErrorKey API_AVAILABLE(macos(13.3), ios(16.4), tvos(16.4), watchos(9.4));
 
 /*!
   @class        AVPlayerInterstitialEventController
Clone this wiki locally