peachsim 0.1.1808 → 0.1.1812

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/README.md +4 -2
  2. package/cli/app-bundle-resources.ts +15 -2
  3. package/cli/cloud-box-artifact.ts +115 -0
  4. package/cli/cloud-client.ts +148 -76
  5. package/cli/cloud-dispatch.ts +4 -4
  6. package/cli/cloud-session.ts +60 -22
  7. package/cli/commands/box.ts +8 -2
  8. package/cli/commands/compat.ts +7 -4
  9. package/cli/commands/control.ts +69 -3
  10. package/cli/commands/coverage.ts +14 -4
  11. package/cli/commands/daemon.ts +41 -0
  12. package/cli/commands/no-bridge-hint.ts +9 -0
  13. package/cli/commands/package.ts +31 -56
  14. package/cli/commands/platform.ts +71 -60
  15. package/cli/commands/preview.ts +73 -24
  16. package/cli/commands/record.ts +10 -2
  17. package/cli/commands/screenshot.ts +17 -60
  18. package/cli/commands/setup.ts +3 -1
  19. package/cli/commands/three-mode.ts +22 -12
  20. package/cli/commands/upload.ts +2 -1
  21. package/cli/desktop-companion.ts +6 -1
  22. package/cli/drivers/desktop.ts +4 -1
  23. package/cli/main.ts +12 -2
  24. package/cli/metro-bundle-assets.ts +14 -4
  25. package/cli/outbound-endpoints.ts +7 -3
  26. package/cli/output-redaction.ts +38 -0
  27. package/cli/privacy.ts +2 -2
  28. package/cli/recording-access.ts +5 -0
  29. package/cli/remote-project-bundle.ts +83 -0
  30. package/cli/shell-init.ts +7 -11
  31. package/cli/telemetry.ts +41 -4
  32. package/cli/usage-error.ts +3 -0
  33. package/cli/ws-bridge.ts +42 -6
  34. package/dist-lib/agent-daemon-client.cjs +1 -1
  35. package/dist-lib/agent-events.cjs +1 -1
  36. package/dist-lib/attached-projects.cjs +1 -1
  37. package/dist-lib/auth/shared-session.cjs +1 -1
  38. package/dist-lib/backend-origin.cjs +1 -1
  39. package/dist-lib/beta.cjs +1 -1
  40. package/dist-lib/beta.mjs +1 -1
  41. package/dist-lib/bridge-constants.cjs +1 -1
  42. package/dist-lib/bridge-contract-input.cjs +1 -1
  43. package/dist-lib/bridge-contract-input.mjs +1 -1
  44. package/dist-lib/bridge-contract.cjs +1 -1
  45. package/dist-lib/bridge-contract.mjs +1 -1
  46. package/dist-lib/bundle-channel.cjs +42897 -40755
  47. package/dist-lib/capture-contract.cjs +7 -8
  48. package/dist-lib/capture-contract.mjs +7 -8
  49. package/dist-lib/cloud-contract.cjs +1 -1
  50. package/dist-lib/cloud-contract.mjs +1 -1
  51. package/dist-lib/cloud-test-args.cjs +1 -1
  52. package/dist-lib/cloud-test-args.mjs +1 -1
  53. package/dist-lib/cloud.cjs +1 -1
  54. package/dist-lib/cloud.mjs +1 -1
  55. package/dist-lib/config.cjs +1 -1
  56. package/dist-lib/config.mjs +1 -1
  57. package/dist-lib/detox/index.cjs +13 -7
  58. package/dist-lib/dev-bundle-resolution.cjs +10 -4
  59. package/dist-lib/expo-swift-bundle.cjs +15889 -15553
  60. package/dist-lib/expo-swift-metadata.cjs +2 -1
  61. package/dist-lib/expo-swift-metadata.mjs +2 -1
  62. package/dist-lib/home-paths.cjs +2 -33
  63. package/dist-lib/host/bridge-host.cjs +20891 -18714
  64. package/dist-lib/host/fetch-proxy-handler.cjs +10 -11
  65. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  66. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  67. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  68. package/dist-lib/host/websocket-proxy.cjs +1 -1
  69. package/dist-lib/index.cjs +620 -553
  70. package/dist-lib/jump-to-source-babel.cjs +1 -1
  71. package/dist-lib/jump-to-source-native.cjs +1 -1
  72. package/dist-lib/kotlin-host.cjs +1 -1
  73. package/dist-lib/menu.cjs +1 -1
  74. package/dist-lib/menu.mjs +1 -1
  75. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  76. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  77. package/dist-lib/metro-production-bundle.cjs +1 -1
  78. package/dist-lib/metro-production-bundle.mjs +1 -1
  79. package/dist-lib/metro.cjs +57 -28
  80. package/dist-lib/native-app-identity-project.cjs +47 -14
  81. package/dist-lib/native-app-identity-project.mjs +55 -20
  82. package/dist-lib/native-app-identity.cjs +1 -1
  83. package/dist-lib/native-app-identity.mjs +1 -1
  84. package/dist-lib/native-firebase-metadata.cjs +1 -1
  85. package/dist-lib/native-firebase-metadata.mjs +1 -1
  86. package/dist-lib/pdfium-raster.cjs +1 -1
  87. package/dist-lib/pdfium-raster.mjs +1 -1
  88. package/dist-lib/plist.cjs +1 -1
  89. package/dist-lib/plist.mjs +1 -1
  90. package/dist-lib/profiles.cjs +1 -1
  91. package/dist-lib/public-brand.cjs +1 -1
  92. package/dist-lib/public-origins-lib-esm.json +27 -26
  93. package/dist-lib/public-origins-lib.json +104 -81
  94. package/dist-lib/react-native-host-modules.cjs +1 -1
  95. package/dist-lib/react-native-host-modules.mjs +1 -1
  96. package/dist-lib/reap-browser.cjs +1 -1
  97. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  98. package/dist-lib/sdk.cjs +1 -1
  99. package/dist-lib/sdk.mjs +1 -1
  100. package/dist-lib/skills.cjs +30700 -24410
  101. package/dist-lib/swift-compile.cjs +336 -222
  102. package/dist-lib/swift-compile.mjs +378 -263
  103. package/dist-lib/swift-package.cjs +19 -7
  104. package/dist-lib/swift-package.mjs +16 -6
  105. package/dist-lib/swift-submit.cjs +1 -1
  106. package/dist-lib/swift-submit.mjs +1 -1
  107. package/dist-lib/swift-toolchain.cjs +49 -1
  108. package/dist-lib/swift.cjs +1 -1
  109. package/dist-lib/vite-swift.cjs +19213 -18937
  110. package/dist-lib/vite.cjs +11 -12
  111. package/dist-lib/worklet-executable.cjs +1 -1
  112. package/dist-lib/worklet-executable.mjs +1 -1
  113. package/dist-types/packages/peach-engine/src/engine/animated.d.ts +4 -0
  114. package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
  115. package/dist-types/packages/peach-engine/src/engine/expo-manifest.d.ts +1 -0
  116. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
  117. package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +1 -0
  118. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -1
  119. package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +2 -1
  120. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  121. package/kotlin/sdk.tar.gz +0 -0
  122. package/package.json +1 -1
  123. package/runtime-companion.json +1 -1
  124. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +1 -1
  125. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +1 -1
  126. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +1 -1
  127. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +1 -1
  128. package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +1 -1
  129. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1 -1
  130. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +1 -1
  131. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +1 -1
  132. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h +39 -0
  133. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h +26 -0
  134. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPContentItem.h +67 -0
  135. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPError.h +33 -0
  136. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaEntity.h +53 -0
  137. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h +346 -0
  138. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h +42 -0
  139. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h +76 -0
  140. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h +64 -0
  141. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlayback.h +47 -0
  142. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h +82 -0
  143. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h +120 -0
  144. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuerySection.h +26 -0
  145. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h +444 -0
  146. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h +43 -0
  147. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerApplicationController.h +47 -0
  148. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h +147 -0
  149. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerQueueDescriptor.h +75 -0
  150. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h +197 -0
  151. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoLanguageOption.h +107 -0
  152. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingSession.h +89 -0
  153. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDataSource.h +59 -0
  154. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDelegate.h +64 -0
  155. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManager.h +46 -0
  156. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManagerContext.h +32 -0
  157. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommand.h +143 -0
  158. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandCenter.h +66 -0
  159. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandEvent.h +128 -0
  160. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteControlTypes.h +27 -0
  161. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeSettings.h +20 -0
  162. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h +82 -0
  163. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes +74 -0
  164. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.h +40 -0
  165. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h +84 -0
  166. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/NSUserActivity+MediaPlayerAdditions.h +20 -0
  167. package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Modules/module.modulemap +5 -0
  168. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +2 -2
  169. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
  170. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +1 -1
  171. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +1 -1
  172. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +1 -1
  173. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +1 -1
  174. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
  175. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +1 -1
  176. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +5 -5
  177. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISlider.h +1 -1
  178. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +12 -50
  179. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewControllerLayoutEnvironment.h +2 -8
  180. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +62 -0
  181. package/sdk/ios/usr/include/dispatch.modulemap +22 -0
  182. package/sdk/ios/usr/include/module.modulemap +8 -3
  183. package/sdk/ios/usr/include/net/if.h +24 -0
  184. package/sdk/ios/usr/include/sys/time.h +1 -1
  185. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +265 -0
  186. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
  187. package/sdk/ios/wasm/include/fcntl.h +2 -0
  188. package/sdk/ios/wasm/include/pthread.h +3 -0
  189. package/sdk/ios/wasm/include/stdlib.h +2 -0
  190. package/sdk/ios/wasm/include/unistd.h +2 -2
  191. package/skills/contrast/SKILL.md +2 -2
  192. package/src/bundle-channel.mjs +9 -72
  193. package/src/capture-contract.ts +12 -9
  194. package/src/desktop-host-delivery.ts +16 -2
  195. package/src/dev-bundle-resolution.ts +12 -3
  196. package/src/expo-native-workspace.ts +113 -46
  197. package/src/expo-swift-host.ts +17 -12
  198. package/src/expo-swift-ready.ts +4 -1
  199. package/src/expoSwiftContract.ts +1 -0
  200. package/src/home-paths.ts +4 -48
  201. package/src/host/bridge-host.ts +1 -0
  202. package/src/installed-native-libraries.ts +2 -8
  203. package/src/metro-project-root.ts +2 -1
  204. package/src/native-bundles.ts +122 -0
  205. package/src/native-static-libraries.ts +65 -8
  206. package/src/nitro-adapter.lock.json +272 -272
  207. package/src/nitro-bundle.ts +2 -2
  208. package/src/nitro-compile.ts +68 -28
  209. package/src/nitro-source.ts +24 -6
  210. package/src/nitro-superset.lock.json +94 -34
  211. package/src/nitroContract.ts +3 -0
  212. package/src/podspec-sources.ts +1966 -0
  213. package/src/storageSnapshotContract.ts +40 -0
  214. package/src/swift-compile.ts +77 -26
  215. package/src/swift-design-time.ts +18 -1
  216. package/src/swift-distribution.lock.json +12 -12
  217. package/src/swift-distribution.ts +9 -6
  218. package/src/swift-host.ts +1 -2
  219. package/src/swift-link-roots.ts +13 -2
  220. package/src/swift-objc-compile.ts +12 -0
  221. package/src/swift-objc-standin.ts +321 -114
  222. package/src/swift-package-manifest.ts +4 -3
  223. package/src/swift-package.ts +31 -4
  224. package/src/swift-root-lock.ts +11 -0
  225. package/src/swift-shared-sdk.ts +10 -9
  226. package/src/swift-source-pods.ts +2 -2
  227. package/src/swift-standins.ts +40 -143
  228. package/src/swift-toolchain.ts +59 -0
  229. package/src/swift-wasm-prune.ts +53 -21
  230. package/src/turbo-bundle.ts +4 -5
  231. package/src/turbo-codegen-intake.ts +111 -108
  232. package/src/turbo-compile.ts +63 -33
  233. package/src/turbo-runtime.lock.json +22 -22
  234. package/src/turbo-source.ts +171 -76
  235. package/src/wasm-optimize.ts +31 -2
  236. package/src/xcode-project.ts +65 -15
@@ -0,0 +1,120 @@
1
+ //
2
+ // MPMediaQuery.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright 2008 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+ #import <Foundation/Foundation.h>
10
+ #import <MediaPlayer/MPMediaItem.h>
11
+ #import <MediaPlayer/MPMediaItemCollection.h>
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ @class MPMediaPredicate;
16
+ @class MPMediaQuerySection;
17
+
18
+ typedef NS_ENUM(NSInteger, MPMediaGrouping) {
19
+ MPMediaGroupingTitle,
20
+ MPMediaGroupingAlbum,
21
+ MPMediaGroupingArtist,
22
+ MPMediaGroupingAlbumArtist,
23
+ MPMediaGroupingComposer,
24
+ MPMediaGroupingGenre,
25
+ MPMediaGroupingPlaylist,
26
+ MPMediaGroupingPodcastTitle
27
+ } MP_API(ios(3.0)) API_UNAVAILABLE(tvos, watchos, macos);
28
+
29
+ // MPMediaQuery represents a collection of items or playlists determined by a chain of MPMediaPredicate objects.
30
+ MP_API(ios(3.0))
31
+ API_UNAVAILABLE(tvos, watchos, macos)
32
+ @interface MPMediaQuery : NSObject <NSSecureCoding, NSCopying>
33
+
34
+ - (instancetype)initWithFilterPredicates:(nullable NSSet<MPMediaPredicate *> *)filterPredicates NS_DESIGNATED_INITIALIZER;
35
+ @property (nonatomic, strong, nullable) NSSet<MPMediaPredicate *> *filterPredicates;
36
+
37
+ - (void)addFilterPredicate:(MPMediaPredicate *)predicate;
38
+ - (void)removeFilterPredicate:(MPMediaPredicate *)predicate;
39
+
40
+ // Returns an array of MPMediaItems matching the query filter predicates.
41
+ // If no items match this method returns an empty array, otherwise returns nil if an error prevents the items from being fetched.
42
+ @property (nonatomic, readonly, nullable) NSArray<MPMediaItem *> *items;
43
+
44
+ // Returns an array of MPMediaItemCollections matching the query filter predicates. The collections are grouped by the groupingType.
45
+ @property (nonatomic, readonly, nullable) NSArray<MPMediaItemCollection *> *collections;
46
+
47
+ // The property used to group collections, defaults to MPMediaGroupingTitle.
48
+ @property (nonatomic) MPMediaGrouping groupingType;
49
+
50
+ // Returns an array of MPMediaQuerySection instances representing the section grouping of the query's items or collections.
51
+ // May be nil in cases where no section grouping of the items or collections is appropriate.
52
+ @property (nonatomic, readonly, nullable) NSArray<MPMediaQuerySection *> *itemSections MP_API(ios(4.2));
53
+ @property (nonatomic, readonly, nullable) NSArray<MPMediaQuerySection *> *collectionSections MP_API(ios(4.2));
54
+
55
+ // Base queries which can be used directly or as the basis for custom queries.
56
+ // The groupingType for these queries is preset to the appropriate type for the query.
57
+ + (MPMediaQuery *)albumsQuery;
58
+ + (MPMediaQuery *)artistsQuery;
59
+ + (MPMediaQuery *)songsQuery;
60
+ + (MPMediaQuery *)playlistsQuery;
61
+ + (MPMediaQuery *)podcastsQuery;
62
+ + (MPMediaQuery *)audiobooksQuery;
63
+ + (MPMediaQuery *)compilationsQuery;
64
+ + (MPMediaQuery *)composersQuery;
65
+ + (MPMediaQuery *)genresQuery;
66
+
67
+ @end
68
+
69
+ // ------------------------------------------------------------------------
70
+ // MPMediaPredicate is an abstract class that allows filtering media in an MPMediaQuery.
71
+ // See the concrete subclass MPMediaPropertyPredicate for filtering options.
72
+
73
+ MP_API(ios(3.0))
74
+ API_UNAVAILABLE(tvos, watchos, macos)
75
+ @interface MPMediaPredicate : NSObject <NSSecureCoding> {}
76
+ @end
77
+
78
+ // ------------------------------------------------------------------------
79
+ // MPMediaPropertyPredicate allows filtering based on a specific property value of an item or collection.
80
+ // See MPMediaItem.h and MPMediaPlaylist.h for a list of properties.
81
+
82
+ typedef NS_ENUM(NSInteger, MPMediaPredicateComparison) {
83
+ MPMediaPredicateComparisonEqualTo,
84
+ MPMediaPredicateComparisonContains
85
+ } MP_API(ios(3.0)) API_UNAVAILABLE(tvos, watchos, macos);
86
+
87
+ MP_API(ios(3.0))
88
+ API_UNAVAILABLE(tvos, watchos, macos)
89
+ @interface MPMediaPropertyPredicate : MPMediaPredicate
90
+
91
+ + (MPMediaPropertyPredicate *)predicateWithValue:(nullable id)value forProperty:(NSString *)property; // comparisonType is MPMediaPredicateComparisonEqualTo
92
+ + (MPMediaPropertyPredicate *)predicateWithValue:(nullable id)value forProperty:(NSString *)property comparisonType:(MPMediaPredicateComparison)comparisonType;
93
+
94
+ @property (nonatomic, readonly, copy) NSString *property;
95
+ @property (nonatomic, readonly, copy, nullable) id value;
96
+ @property (nonatomic, readonly) MPMediaPredicateComparison comparisonType;
97
+
98
+ @end
99
+
100
+ // ------------------------------------------------------------------------
101
+ // Convenience methods to determine item properties corresponding to a given grouping type.
102
+
103
+ @interface MPMediaItem (MPMediaQueryAdditions)
104
+
105
+ // Returns the item property for a given grouping type.
106
+ // For example, [MPMediaItem persistentIDPropertyForGroupingType:MPMediaGroupingAlbum] returns MPMediaItemPropertyAlbumPersistentID.
107
+ + (NSString *)persistentIDPropertyForGroupingType:(MPMediaGrouping)groupingType
108
+ MP_API(ios(4.2))
109
+ API_UNAVAILABLE(tvos, watchos, macos);
110
+
111
+ // Returns the item property to determine a title for a given grouping type.
112
+ // For example, [MPMediaItem titlePropertyForGroupingType:MPMediaGroupingAlbum] returns MPMediaItemPropertyAlbumTitle.
113
+ // Note that distinct collections will not necessarily have unique titles, e.g. an album may exist with the title "Greatest Hits" for multiple artists.
114
+ + (NSString *)titlePropertyForGroupingType:(MPMediaGrouping)groupingType
115
+ MP_API(ios(4.2))
116
+ API_UNAVAILABLE(tvos, watchos, macos);
117
+
118
+ @end
119
+
120
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,26 @@
1
+ //
2
+ // MPMediaQuerySection.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright 2010 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ // An MPMediaQuerySection object represents a single section grouping for a query.
14
+ MP_API(ios(4.2))
15
+ API_UNAVAILABLE(tvos, watchos, macos)
16
+ @interface MPMediaQuerySection : NSObject <NSSecureCoding, NSCopying>
17
+
18
+ // The localized title of the section grouping.
19
+ @property (nonatomic, copy, readonly) NSString *title;
20
+
21
+ // The range in the query's corresponding collections or items array represented by this section.
22
+ @property (nonatomic, assign, readonly) NSRange range;
23
+
24
+ @end
25
+
26
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,444 @@
1
+ //
2
+ // MPMoviePlayerController.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright 2008-2015 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+
10
+ #if MP_HAS_HEADER(UIKit, UIView.h)
11
+
12
+ #import <Foundation/Foundation.h>
13
+ #import <MediaPlayer/MPMediaPlayback.h>
14
+ #import <UIKit/UIKit.h>
15
+
16
+ #ifndef MP_DEPRECATED_BEGIN
17
+ #define MP_DEPRECATED_BEGIN(...)
18
+ #define MP_DEPRECATED_END
19
+ #endif
20
+ MP_DEPRECATED_BEGIN("Use AVPlayerViewController in AVKit", ios(3.2, 9.0))
21
+ MP_UNAVAILABLE_BEGIN(watchos, macos)
22
+
23
+ @class MPMovieAccessLog, MPMovieErrorLog;
24
+
25
+ // -----------------------------------------------------------------------------
26
+ // Types
27
+
28
+ typedef NS_ENUM(NSInteger, MPMovieScalingMode) {
29
+ MPMovieScalingModeNone, // No scaling
30
+ MPMovieScalingModeAspectFit, // Uniform scale until one dimension fits
31
+ MPMovieScalingModeAspectFill, // Uniform scale until the movie fills the visible bounds. One dimension may have clipped contents
32
+ MPMovieScalingModeFill // Non-uniform scale. Both render dimensions will exactly match the visible bounds
33
+ } MP_UNAVAILABLE(tvos)
34
+ API_UNAVAILABLE(visionos);
35
+
36
+ typedef NS_ENUM(NSInteger, MPMoviePlaybackState) {
37
+ MPMoviePlaybackStateStopped,
38
+ MPMoviePlaybackStatePlaying,
39
+ MPMoviePlaybackStatePaused,
40
+ MPMoviePlaybackStateInterrupted,
41
+ MPMoviePlaybackStateSeekingForward,
42
+ MPMoviePlaybackStateSeekingBackward
43
+ } MP_UNAVAILABLE(tvos)
44
+ API_UNAVAILABLE(visionos);
45
+
46
+ typedef NS_OPTIONS(NSUInteger, MPMovieLoadState) {
47
+ MPMovieLoadStateUnknown = 0,
48
+ MPMovieLoadStatePlayable = 1 << 0,
49
+ MPMovieLoadStatePlaythroughOK = 1 << 1, // Playback will be automatically started in this state when shouldAutoplay is YES
50
+ MPMovieLoadStateStalled = 1 << 2, // Playback will be automatically paused in this state, if started
51
+ } MP_UNAVAILABLE(tvos)
52
+ API_UNAVAILABLE(visionos);
53
+
54
+ typedef NS_ENUM(NSInteger, MPMovieRepeatMode) {
55
+ MPMovieRepeatModeNone,
56
+ MPMovieRepeatModeOne
57
+ } MP_UNAVAILABLE(tvos)
58
+ API_UNAVAILABLE(visionos);
59
+
60
+ typedef NS_ENUM(NSInteger, MPMovieControlStyle) {
61
+ MPMovieControlStyleNone, // No controls
62
+ MPMovieControlStyleEmbedded, // Controls for an embedded view
63
+ MPMovieControlStyleFullscreen, // Controls for fullscreen playback
64
+
65
+ MPMovieControlStyleDefault = MPMovieControlStyleEmbedded
66
+ } MP_UNAVAILABLE(tvos)
67
+ API_UNAVAILABLE(visionos);
68
+
69
+ typedef NS_ENUM(NSInteger, MPMovieFinishReason) {
70
+ MPMovieFinishReasonPlaybackEnded,
71
+ MPMovieFinishReasonPlaybackError,
72
+ MPMovieFinishReasonUserExited
73
+ } MP_UNAVAILABLE(tvos)
74
+ API_UNAVAILABLE(visionos);
75
+
76
+ // -----------------------------------------------------------------------------
77
+ // Movie Property Types
78
+
79
+ typedef NS_OPTIONS(NSUInteger, MPMovieMediaTypeMask) {
80
+ MPMovieMediaTypeMaskNone = 0,
81
+ MPMovieMediaTypeMaskVideo = 1 << 0,
82
+ MPMovieMediaTypeMaskAudio = 1 << 1
83
+ } MP_UNAVAILABLE(tvos)
84
+ API_UNAVAILABLE(visionos);
85
+
86
+ typedef NS_ENUM(NSInteger, MPMovieSourceType) {
87
+ MPMovieSourceTypeUnknown,
88
+ MPMovieSourceTypeFile, // Local or progressively downloaded network content
89
+ MPMovieSourceTypeStreaming // Live or on-demand streaming content
90
+ } MP_UNAVAILABLE(tvos)
91
+ API_UNAVAILABLE(visionos);
92
+
93
+ // -----------------------------------------------------------------------------
94
+ // Movie Player
95
+ //
96
+ // See MPMediaPlayback.h for the playback methods.
97
+
98
+ MP_UNAVAILABLE(tvos)
99
+ API_UNAVAILABLE(visionos)
100
+ @interface MPMoviePlayerController : NSObject <MPMediaPlayback>
101
+
102
+ - (instancetype)initWithContentURL:(NSURL *)url NS_DESIGNATED_INITIALIZER;
103
+
104
+ @property (nonatomic, copy) NSURL *contentURL;
105
+
106
+ // The view in which the media and playback controls are displayed.
107
+ @property (nonatomic, readonly) UIView *view;
108
+
109
+ // A view for customization which is always displayed behind movie content.
110
+ @property (nonatomic, readonly) UIView *backgroundView;
111
+
112
+ // Returns the current playback state of the movie player.
113
+ @property (nonatomic, readonly) MPMoviePlaybackState playbackState;
114
+
115
+ // Returns the network load state of the movie player.
116
+ @property (nonatomic, readonly) MPMovieLoadState loadState;
117
+
118
+ // The style of the playback controls. Defaults to MPMovieControlStyleDefault.
119
+ @property (nonatomic) MPMovieControlStyle controlStyle;
120
+
121
+ // Determines how the movie player repeats when reaching the end of playback. Defaults to MPMovieRepeatModeNone.
122
+ @property (nonatomic) MPMovieRepeatMode repeatMode;
123
+
124
+ // Indicates if a movie should automatically start playback when it is likely to finish uninterrupted based on e.g. network conditions. Defaults to YES.
125
+ @property (nonatomic) BOOL shouldAutoplay;
126
+
127
+ // Determines if the movie is presented in the entire screen (obscuring all other application content). Default is NO.
128
+ // Setting this property to YES before the movie player's view is visible will have no effect.
129
+ @property (nonatomic, getter=isFullscreen) BOOL fullscreen;
130
+ - (void)setFullscreen:(BOOL)fullscreen animated:(BOOL)animated;
131
+
132
+ // Determines how the content scales to fit the view. Defaults to MPMovieScalingModeAspectFit.
133
+ @property (nonatomic) MPMovieScalingMode scalingMode;
134
+
135
+ // Returns YES if the first video frame has been made ready for display for the current item.
136
+ // Will remain NO for items that do not have video tracks associated.
137
+ @property (nonatomic, readonly) BOOL readyForDisplay MP_API(ios(6.0));
138
+
139
+ // The types of media in the movie, or MPMovieMediaTypeNone if not known.
140
+ @property (nonatomic, readonly) MPMovieMediaTypeMask movieMediaTypes;
141
+
142
+ // The playback type of the movie. Defaults to MPMovieSourceTypeUnknown.
143
+ // Specifying a playback type before playing the movie can result in faster load times.
144
+ @property (nonatomic) MPMovieSourceType movieSourceType;
145
+
146
+ // The duration of the movie, or 0.0 if not known.
147
+ @property (nonatomic, readonly) NSTimeInterval duration;
148
+
149
+ // The currently playable duration of the movie, for progressively downloaded network content.
150
+ @property (nonatomic, readonly) NSTimeInterval playableDuration;
151
+
152
+ // The natural size of the movie, or CGSizeZero if not known/applicable.
153
+ @property (nonatomic, readonly) CGSize naturalSize;
154
+
155
+ // The start time of movie playback. Defaults to NaN, indicating the natural start time of the movie.
156
+ @property (nonatomic) NSTimeInterval initialPlaybackTime;
157
+
158
+ // The end time of movie playback. Defaults to NaN, which indicates natural end time of the movie.
159
+ @property (nonatomic) NSTimeInterval endPlaybackTime;
160
+
161
+ // Indicates whether the movie player allows AirPlay video playback. Defaults to YES on iOS 5.0 and later.
162
+ @property (nonatomic) BOOL allowsAirPlay;
163
+
164
+ // Indicates whether the movie player is currently playing video via AirPlay.
165
+ @property (nonatomic, readonly, getter=isAirPlayVideoActive) BOOL airPlayVideoActive;
166
+
167
+ @end
168
+
169
+ // -----------------------------------------------------------------------------
170
+ // Movie Player Notifications
171
+
172
+ // Posted when the scaling mode changes.
173
+ MP_EXTERN NSString * const MPMoviePlayerScalingModeDidChangeNotification API_UNAVAILABLE(visionos);
174
+
175
+ // Posted when movie playback ends or a user exits playback.
176
+ MP_EXTERN NSString * const MPMoviePlayerPlaybackDidFinishNotification API_UNAVAILABLE(visionos);
177
+
178
+ MP_EXTERN NSString * const MPMoviePlayerPlaybackDidFinishReasonUserInfoKey API_UNAVAILABLE(visionos); // NSNumber (MPMovieFinishReason)
179
+
180
+ // Posted when the playback state changes, either programatically or by the user.
181
+ MP_EXTERN NSString * const MPMoviePlayerPlaybackStateDidChangeNotification API_UNAVAILABLE(visionos);
182
+
183
+ // Posted when the network load state changes.
184
+ MP_EXTERN NSString * const MPMoviePlayerLoadStateDidChangeNotification API_UNAVAILABLE(visionos);
185
+
186
+ // Posted when the currently playing movie changes.
187
+ MP_EXTERN NSString * const MPMoviePlayerNowPlayingMovieDidChangeNotification API_UNAVAILABLE(visionos);
188
+
189
+ // Posted when the movie player enters or exits fullscreen mode.
190
+ MP_EXTERN NSString * const MPMoviePlayerWillEnterFullscreenNotification API_UNAVAILABLE(visionos);
191
+ MP_EXTERN NSString * const MPMoviePlayerDidEnterFullscreenNotification API_UNAVAILABLE(visionos);
192
+ MP_EXTERN NSString * const MPMoviePlayerWillExitFullscreenNotification API_UNAVAILABLE(visionos);
193
+ MP_EXTERN NSString * const MPMoviePlayerDidExitFullscreenNotification API_UNAVAILABLE(visionos);
194
+ MP_EXTERN NSString * const MPMoviePlayerFullscreenAnimationDurationUserInfoKey API_UNAVAILABLE(visionos); // NSNumber of double (NSTimeInterval)
195
+ MP_EXTERN NSString * const MPMoviePlayerFullscreenAnimationCurveUserInfoKey API_UNAVAILABLE(visionos); // NSNumber of NSUInteger (UIViewAnimationCurve)
196
+
197
+ // Posted when the movie player begins or ends playing video via AirPlay.
198
+ MP_EXTERN NSString * const MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification API_UNAVAILABLE(visionos);
199
+
200
+ // Posted when the ready for display state changes.
201
+ MP_EXTERN NSString * const MPMoviePlayerReadyForDisplayDidChangeNotification MP_DEPRECATED("Use AVPlayerViewController in AVKit.", ios(6.0, 9.0)) API_UNAVAILABLE(visionos);
202
+
203
+ // -----------------------------------------------------------------------------
204
+ // Movie Property Notifications
205
+
206
+ // Calling -prepareToPlay on the movie player will begin determining movie properties asynchronously.
207
+ // These notifications are posted when the associated movie property becomes available.
208
+ MP_EXTERN NSString * const MPMovieMediaTypesAvailableNotification API_UNAVAILABLE(visionos);
209
+ MP_EXTERN NSString * const MPMovieSourceTypeAvailableNotification API_UNAVAILABLE(visionos); // Posted if the movieSourceType is MPMovieSourceTypeUnknown when preparing for playback.
210
+ MP_EXTERN NSString * const MPMovieDurationAvailableNotification API_UNAVAILABLE(visionos);
211
+ MP_EXTERN NSString * const MPMovieNaturalSizeAvailableNotification API_UNAVAILABLE(visionos);
212
+
213
+ // -----------------------------------------------------------------------------
214
+ // Thumbnails
215
+
216
+ typedef NS_ENUM(NSInteger, MPMovieTimeOption) {
217
+ MPMovieTimeOptionNearestKeyFrame,
218
+ MPMovieTimeOptionExact
219
+ } MP_UNAVAILABLE(tvos)
220
+ API_UNAVAILABLE(visionos);
221
+
222
+ MP_UNAVAILABLE(tvos)
223
+ API_UNAVAILABLE(visionos)
224
+ @interface MPMoviePlayerController (MPMoviePlayerThumbnailGeneration)
225
+
226
+ // Returns a thumbnail at the given time.
227
+ // Deprecated. Use -requestThumbnailImagesAtTimes:timeOption: / MPMoviePlayerThumbnailImageRequestDidFinishNotification instead.
228
+ - (UIImage *)thumbnailImageAtTime:(NSTimeInterval)playbackTime timeOption:(MPMovieTimeOption)option;
229
+
230
+ // Asynchronously request thumbnails for one or more times, provided as an array of NSNumbers (double).
231
+ // Posts MPMoviePlayerThumbnailImageRequestDidFinishNotification on completion.
232
+ - (void)requestThumbnailImagesAtTimes:(NSArray *)playbackTimes timeOption:(MPMovieTimeOption)option;
233
+
234
+ // Cancels all pending asynchronous thumbnail requests.
235
+ - (void)cancelAllThumbnailImageRequests;
236
+
237
+ @end
238
+
239
+ // Posted when each thumbnail image request is completed.
240
+ MP_EXTERN NSString * const MPMoviePlayerThumbnailImageRequestDidFinishNotification API_UNAVAILABLE(visionos);
241
+ MP_EXTERN NSString * const MPMoviePlayerThumbnailImageKey API_UNAVAILABLE(visionos); // UIImage, may be nil if an error occurred.
242
+ MP_EXTERN NSString * const MPMoviePlayerThumbnailTimeKey API_UNAVAILABLE(visionos); // NSNumber (double)
243
+ MP_EXTERN NSString * const MPMoviePlayerThumbnailErrorKey API_UNAVAILABLE(visionos); // NSError
244
+
245
+ // -----------------------------------------------------------------------------
246
+ // Timed Metadata
247
+
248
+ MP_UNAVAILABLE(tvos)
249
+ API_UNAVAILABLE(visionos)
250
+ @interface MPMoviePlayerController (MPMoviePlayerTimedMetadataAdditions)
251
+
252
+ // Returns an array of the most recent MPTimedMetadata objects provided by the media stream.
253
+ @property (nonatomic, readonly) NSArray *timedMetadata MP_DEPRECATED("Use AVPlayerViewController in AVKit.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos);
254
+
255
+ @end
256
+
257
+ MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0))
258
+ MP_UNAVAILABLE(tvos)
259
+ API_UNAVAILABLE(visionos)
260
+ @interface MPTimedMetadata : NSObject
261
+
262
+ // A key which identifies a piece of timed metadata.
263
+ @property (nonatomic, readonly) NSString *key;
264
+
265
+ // The namespace of the identifying key.
266
+ @property (nonatomic, readonly) NSString *keyspace;
267
+
268
+ // The object value of the metadata.
269
+ @property (nonatomic, readonly) id value;
270
+
271
+ // The timestamp of the metadata, in the timebase of the media stream.
272
+ @property (nonatomic, readonly) NSTimeInterval timestamp;
273
+
274
+ // A dictionary containing all metadata information associated with this object, which may hold additional key-specific data (see below).
275
+ @property (nonatomic, readonly) NSDictionary *allMetadata;
276
+
277
+ @end
278
+
279
+ // Posted when new timed metadata arrives.
280
+ MP_EXTERN NSString * const MPMoviePlayerTimedMetadataUpdatedNotification MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos);
281
+ MP_EXTERN NSString * const MPMoviePlayerTimedMetadataUserInfoKey MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos); // NSDictionary of the most recent MPTimedMetadata objects.
282
+
283
+ // Additional dictionary keys for use with the 'allMetadata' property. All keys are optional.
284
+ MP_EXTERN NSString * const MPMoviePlayerTimedMetadataKeyName MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos); // NSString
285
+ MP_EXTERN NSString * const MPMoviePlayerTimedMetadataKeyInfo MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos); // NSString
286
+ MP_EXTERN NSString * const MPMoviePlayerTimedMetadataKeyMIMEType MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos); // NSString
287
+ MP_EXTERN NSString * const MPMoviePlayerTimedMetadataKeyDataType MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos); // NSString
288
+ MP_EXTERN NSString * const MPMoviePlayerTimedMetadataKeyLanguageCode MP_DEPRECATED("Use AVFoundation.", ios(4.0, 9.0)) API_UNAVAILABLE(visionos); // NSString (ISO 639-2)
289
+
290
+ // -----------------------------------------------------------------------------
291
+
292
+ MP_UNAVAILABLE(tvos)
293
+ API_UNAVAILABLE(visionos)
294
+ @interface MPMoviePlayerController (MPMovieLogging)
295
+
296
+ // Returns an object that represents a snapshot of the network access log. Can be nil.
297
+ @property (nonatomic, readonly) MPMovieAccessLog *accessLog MP_DEPRECATED("Use AVFoundation.", ios(4.3, 9.0));
298
+
299
+ // Returns an object that represents a snapshot of the error log. Can be nil.
300
+ @property (nonatomic, readonly) MPMovieErrorLog *errorLog MP_DEPRECATED("Use AVFoundation.", ios(4.3, 9.0));
301
+
302
+ @end
303
+
304
+ // -----------------------------------------------------------------------------
305
+ // An MPMovieAccessLog accumulates key metrics about network playback and presents them as a collection of MPMovieAccessLogEvent instances.
306
+ // Each MPMovieAccessLogEvent instance collates the data that relates to each uninterrupted period of playback.
307
+
308
+ MP_DEPRECATED("Use AVFoundation.", ios(4.3, 9.0))
309
+ MP_UNAVAILABLE(tvos)
310
+ API_UNAVAILABLE(visionos)
311
+ @interface MPMovieAccessLog : NSObject <NSCopying>
312
+
313
+ // Returns the webserver access log into a textual format that conforms to the W3C Extended Log File Format for web server log files.
314
+ // For more information see: http://www.w3.org/pub/WWW/TR/WD-logfile.html
315
+ @property (nonatomic, readonly) NSData *extendedLogData;
316
+
317
+ // Returns the string encoding of the extendedLogData property.
318
+ @property (nonatomic, readonly) NSStringEncoding extendedLogDataStringEncoding;
319
+
320
+ // An ordered collection of MPMovieAccessLogEvent instances that represent the chronological sequence of events contained in the access log.
321
+ @property (nonatomic, readonly) NSArray *events;
322
+
323
+ @end
324
+
325
+ // -----------------------------------------------------------------------------
326
+ // An MPMovieErrorLog provides data to identify if, and when, network resource playback failures occured.
327
+
328
+ MP_DEPRECATED("Use AVFoundation.", ios(4.3, 9.0))
329
+ MP_UNAVAILABLE(tvos)
330
+ API_UNAVAILABLE(visionos)
331
+ @interface MPMovieErrorLog : NSObject <NSCopying>
332
+
333
+ // Returns the webserver error log into a textual format that conforms to the W3C Extended Log File Format for web server log files.
334
+ // For more information see: http://www.w3.org/pub/WWW/TR/WD-logfile.html
335
+ @property (nonatomic, readonly) NSData *extendedLogData;
336
+
337
+ // Returns the string encoding of the extendedLogData property.
338
+ @property (nonatomic, readonly) NSStringEncoding extendedLogDataStringEncoding;
339
+
340
+ // An ordered collection of MPMovieErrorLogEvent instances that represent the chronological sequence of events contained in the error log.
341
+ @property (nonatomic, readonly) NSArray *events;
342
+
343
+ @end
344
+
345
+ // -----------------------------------------------------------------------------
346
+ // An MPMovieAccessLogEvent repesents a single access log entry.
347
+
348
+ MP_DEPRECATED("Use AVFoundation.", ios(4.3, 9.0))
349
+ MP_UNAVAILABLE(tvos)
350
+ API_UNAVAILABLE(visionos)
351
+ @interface MPMovieAccessLogEvent : NSObject <NSCopying>
352
+
353
+ // A count of media segments downloaded from the server to this client.
354
+ @property (nonatomic, readonly) NSUInteger numberOfSegmentsDownloaded;
355
+
356
+ // The date/time at which playback began for this event.
357
+ @property (nonatomic, readonly) NSDate *playbackStartDate;
358
+
359
+ // The URI of the playback item.
360
+ @property (nonatomic, readonly) NSString *URI;
361
+
362
+ // The IP address of the server that was the source of the last delivered media segment. Can be either an IPv4 or IPv6 address.
363
+ @property (nonatomic, readonly) NSString *serverAddress;
364
+
365
+ // A count of changes to the serverAddress property over the last uninterrupted period of playback.
366
+ @property (nonatomic, readonly) NSUInteger numberOfServerAddressChanges;
367
+
368
+ // A GUID that identifies the playback session. This value is used in HTTP requests.
369
+ @property (nonatomic, readonly) NSString *playbackSessionID;
370
+
371
+ // An offset into the playlist where the last uninterrupted period of playback began, in seconds. The value is negative if unknown.
372
+ @property (nonatomic, readonly) NSTimeInterval playbackStartOffset;
373
+
374
+ // The accumulated duration of the media downloaded, in seconds. The value is negative if unknown.
375
+ @property (nonatomic, readonly) NSTimeInterval segmentsDownloadedDuration;
376
+
377
+ // The accumulated duration of the media played, in seconds.
378
+ @property (nonatomic, readonly) NSTimeInterval durationWatched;
379
+
380
+ // The total number of playback stalls encountered. The value is negative if unknown.
381
+ @property (nonatomic, readonly) NSInteger numberOfStalls;
382
+
383
+ // The accumulated number of bytes transferred. The value is negative if unknown.
384
+ @property (nonatomic, readonly) int64_t numberOfBytesTransferred;
385
+
386
+ // The empirical throughput across all media downloaded, in bits per second.
387
+ @property (nonatomic, readonly) double observedBitrate;
388
+
389
+ // The throughput required to play the stream, as advertised by the server, in bits per second.
390
+ @property (nonatomic, readonly) double indicatedBitrate;
391
+
392
+ // The total number of dropped video frames.
393
+ @property (nonatomic, readonly) NSInteger numberOfDroppedVideoFrames;
394
+
395
+ @end
396
+
397
+ // -----------------------------------------------------------------------------
398
+ // An MPMovieErrorLogEvent repesents a single error log entry.
399
+
400
+ MP_DEPRECATED("Use AVFoundation.", ios(4.3, 9.0))
401
+ MP_UNAVAILABLE(tvos)
402
+ API_UNAVAILABLE(visionos)
403
+ @interface MPMovieErrorLogEvent : NSObject <NSCopying>
404
+
405
+ // The date and time when the error occured.
406
+ @property (nonatomic, readonly) NSDate *date;
407
+
408
+ // The URI of the playback item.
409
+ @property (nonatomic, readonly) NSString *URI;
410
+
411
+ // The IP address of the server that was the source of the error.
412
+ @property (nonatomic, readonly) NSString *serverAddress;
413
+
414
+ // A GUID that identifies the playback session. This value is used in HTTP requests.
415
+ @property (nonatomic, readonly) NSString *playbackSessionID;
416
+
417
+ // A unique error code identifier. The value is negative if unknown.
418
+ @property (nonatomic, readonly) NSInteger errorStatusCode;
419
+
420
+ // The domain of the error.
421
+ @property (nonatomic, readonly) NSString *errorDomain;
422
+
423
+ // A description of the error encountered.
424
+ @property (nonatomic, readonly) NSString *errorComment;
425
+
426
+ @end
427
+
428
+ // -----------------------------------------------------------------------------
429
+ // Deprecated methods and properties
430
+ // These will be removed in a future release of iOS
431
+ MP_UNAVAILABLE(tvos)
432
+ API_UNAVAILABLE(visionos)
433
+ @interface MPMoviePlayerController (MPMoviePlayerDeprecated)
434
+
435
+ // Indicates if the movie player should inherit the application's audio session instead of creating a new session (which would interrupt the application's session).
436
+ // Defaults to YES. Setting this property during playback will not take effect until playback is stopped and started again.
437
+ @property (nonatomic) BOOL useApplicationAudioSession MP_DEPRECATED("Use AVPlayerViewController in AVKit.", ios(6.0, 9.0)) API_UNAVAILABLE(visionos);
438
+
439
+ @end
440
+
441
+ MP_DEPRECATED_END
442
+ MP_UNAVAILABLE_END
443
+
444
+ #endif
@@ -0,0 +1,43 @@
1
+ //
2
+ // MPMoviePlayerViewController.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright 2009-2015 Apple, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+
10
+ #if MP_HAS_HEADER(UIKit, UIViewController.h)
11
+
12
+ #import <UIKit/UIViewController.h>
13
+
14
+ @class MPMoviePlayerController;
15
+
16
+ MP_DEPRECATED_BEGIN("Use AVPlayerViewController in AVKit.", ios(3.2, 9.0))
17
+ MP_UNAVAILABLE_BEGIN(tvos, watchos, macos)
18
+
19
+ API_UNAVAILABLE(visionos)
20
+ @interface MPMoviePlayerViewController : UIViewController
21
+
22
+ - (instancetype)initWithContentURL:(NSURL *)contentURL NS_DESIGNATED_INITIALIZER;
23
+
24
+ @property (nonatomic, readonly) MPMoviePlayerController *moviePlayer;
25
+
26
+ @end
27
+
28
+ // -----------------------------------------------------------------------------
29
+ // UIViewController Additions
30
+ // Additions to present a fullscreen movie player as a modal view controller using the standard movie player transition.
31
+
32
+ API_UNAVAILABLE(visionos)
33
+ @interface UIViewController (MPMoviePlayerViewController)
34
+
35
+ - (void)presentMoviePlayerViewControllerAnimated:(MPMoviePlayerViewController *)moviePlayerViewController MP_DEPRECATED("Use AVPlayerViewController in AVKit.", ios(3.2, 9.0));
36
+ - (void)dismissMoviePlayerViewControllerAnimated MP_DEPRECATED("Use AVPlayerViewController in AVKit.", ios(3.2, 9.0));
37
+
38
+ @end
39
+
40
+ MP_UNAVAILABLE_END
41
+ MP_DEPRECATED_END
42
+
43
+ #endif
@@ -0,0 +1,47 @@
1
+ //
2
+ // MPMusicPlayerApplicationController.h
3
+ // MediaPlayer
4
+ //
5
+ // Copyright © 2016-2017 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <MediaPlayer/MediaPlayerDefines.h>
9
+ #import <Foundation/Foundation.h>
10
+ #import <MediaPlayer/MPMediaItem.h>
11
+ #import <MediaPlayer/MPMusicPlayerController.h>
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ MP_API(ios(10.3), tvos(14.0))
16
+ API_UNAVAILABLE(watchos, macos)
17
+ @interface MPMusicPlayerControllerQueue : NSObject
18
+
19
+ MP_INIT_UNAVAILABLE
20
+
21
+ @property (nonatomic, copy, readonly) NSArray<MPMediaItem *> *items;
22
+
23
+ @end
24
+
25
+ MP_API(ios(10.3), tvos(14.0))
26
+ API_UNAVAILABLE(watchos, macos)
27
+ @interface MPMusicPlayerControllerMutableQueue : MPMusicPlayerControllerQueue
28
+
29
+ - (void)insertQueueDescriptor:(MPMusicPlayerQueueDescriptor *)queueDescriptor afterItem:(nullable MPMediaItem *)afterItem;
30
+ - (void)removeItem:(MPMediaItem *)item;
31
+
32
+ @end
33
+
34
+ MP_API(ios(10.3), tvos(14.0))
35
+ API_UNAVAILABLE(watchos, macos)
36
+ @interface MPMusicPlayerApplicationController : MPMusicPlayerController
37
+
38
+ - (void)performQueueTransaction:(void (^)(MPMusicPlayerControllerMutableQueue *queue))queueTransaction completionHandler:(void (^)(MPMusicPlayerControllerQueue *queue, NSError *_Nullable error))completionHandler;
39
+
40
+ @end
41
+
42
+ // Posted when the queue changes
43
+ MP_EXTERN NSString * const MPMusicPlayerControllerQueueDidChangeNotification
44
+ MP_API(ios(10.3), tvos(14.0))
45
+ API_UNAVAILABLE(watchos, macos);
46
+
47
+ NS_ASSUME_NONNULL_END