Skip to content

MediaPlayer macOS xcode15.0 b1

Manuel de la Pena edited this page Sep 13, 2023 · 2 revisions

#MediaPlayer.framework https://github.com/xamarin/xamarin-macios/pull/19014

diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h	2023-03-09 19:09:59
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h	2023-05-22 03:38:10
@@ -20,7 +20,11 @@
 // MPMediaPickerController is a UIViewController for visually selecting media items.
 // To display it, present it modally on an existing view controller.
 MP_API(ios(3.0))
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(watchos, xros)
+#else
 API_UNAVAILABLE(watchos)
+#endif
 MP_UNAVAILABLE(tvos, macos)
 @interface MPMediaPickerController : UIViewController
 
@@ -40,7 +44,11 @@
 @end
 
 MP_UNAVAILABLE(tvos, macos)
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(watchos, xros)
+#else
 API_UNAVAILABLE(watchos)
+#endif
 @protocol MPMediaPickerControllerDelegate<NSObject>
 @optional
 
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h	2023-03-09 19:09:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h	2023-05-22 03:38:10
@@ -44,7 +44,7 @@
 // a color similar to the default, to convey a sense of warning to the user. The same image is used for
 // all control states. For debugging purposes, switch on the "EU Volume Limit" setting in the Developer
 // menu of the Settings application to always enable the volume limit.
-@property (nonatomic, strong, nullable) UIImage *volumeWarningSliderImage MP_API(ios(7.0));
+@property (nonatomic, strong, nullable) UIImage *volumeWarningSliderImage MP_DEPRECATED("This is no longer supported", ios(7.0, 17.0));
 
 - (CGRect)volumeSliderRectForBounds:(CGRect)bounds MP_API(ios(6.0));
 - (CGRect)volumeThumbRectForBounds:(CGRect)bounds volumeSliderRect:(CGRect)rect value:(float)value MP_API(ios(6.0));
Clone this wiki locally