Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/AVFoundation/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,18 @@ public enum AVExternalStorageDeviceReasonNotRecommendedForCaptureUse {
UnknownWritingSpeed,
}

[iOS (27, 0), TV (27, 0), Mac (27, 0), MacCatalyst (27, 0)]
public enum AVProVideoStorageBusyReason {
[Field ("AVProVideoStorageBusyReasonAdjustingCapacity")]
AdjustingCapacity,

[Field ("AVProVideoStorageBusyReasonReplenishing")]
Replenishing,

[Field ("AVProVideoStorageBusyReasonCapturing")]
Capturing,
}

/// <summary>Constants for known video codecs.</summary>
/// <remarks>To be added.</remarks>
[MacCatalyst (15, 0)]
Expand Down
11 changes: 9 additions & 2 deletions src/avfoundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7038,8 +7038,15 @@ interface AVProVideoStorage {
[Export ("remainingCapacity")]
nint RemainingCapacity { get; }

[Export ("busy")]
bool Busy { [Bind ("isBusy")] get; }
[Export ("replenishCapacityWithCompletionHandler:")]
[Async]
void ReplenishCapacity ([NullAllowed] Action<nint, NSError> completionHandler);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self, change this to delegate and add nullability.... I wonder why copilot ignored this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been detected by xtro too :/ I've asked my Copilot to take a look at why not.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, xtro did catch it 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it did, I am unsure why it wasn't looked at 😅 I am still fine tuning the instructions


[Export ("busyReasons")]
NSSet<NSString> WeakBusyReasons { get; }

[Wrap ("WeakBusyReasons.ToHashSet (v => AVProVideoStorageBusyReasonExtensions.GetValue (v))")]
HashSet<AVProVideoStorageBusyReason> BusyReasons { get; }
}

delegate void AVAssetWritingPlannerSegmentCallback (AVPlannedSegmentWritingRequest segmentWriteRequest);
Expand Down
9 changes: 8 additions & 1 deletion tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,9 @@ F:AVFoundation.AVPlayerWaitingReason.WaitingForCoordinatedPlayback
F:AVFoundation.AVPlayerWaitingReason.WaitingToMinimizeStalls
F:AVFoundation.AVPlayerWaitingReason.WaitingWhileEvaluatingBufferingRate
F:AVFoundation.AVPlayerWaitingReason.WaitingWithNoItemToPlay
F:AVFoundation.AVProVideoStorageBusyReason.AdjustingCapacity
F:AVFoundation.AVProVideoStorageBusyReason.Capturing
F:AVFoundation.AVProVideoStorageBusyReason.Replenishing
F:AVFoundation.AVSampleBufferRequestMode.Opportunistic
F:AVFoundation.AVSampleCursorAudioDependencyInfo.IsIndependentlyDecodable
F:AVFoundation.AVSampleCursorAudioDependencyInfo.PacketRefreshCount
Expand Down Expand Up @@ -14166,6 +14169,8 @@ M:AVFoundation.AVPortraitEffectsMatte.Create(Foundation.NSDictionary,Foundation.
M:AVFoundation.AVPortraitEffectsMatte.Create(ImageIO.CGImagePropertyOrientation)
M:AVFoundation.AVPortraitEffectsMatte.GetDictionaryRepresentation(System.String@)
M:AVFoundation.AVProVideoStorage.OpenSettings
M:AVFoundation.AVProVideoStorage.ReplenishCapacity(System.Action{System.IntPtr,Foundation.NSError})
M:AVFoundation.AVProVideoStorage.ReplenishCapacityAsync
M:AVFoundation.AVQueuePlayer.#ctor(AVFoundation.AVPlayerItem[])
M:AVFoundation.AVQueuePlayer.AdvanceToNextItem
M:AVFoundation.AVQueuePlayer.CanInsert(AVFoundation.AVPlayerItem,AVFoundation.AVPlayerItem)
Expand Down Expand Up @@ -37784,11 +37789,12 @@ P:AVFoundation.AVPlayerVideoOutputConfiguration.PreferredTransform
P:AVFoundation.AVPlayerVideoOutputConfiguration.SourcePlayerItem
P:AVFoundation.AVPortraitEffectsMatte.MattingImage
P:AVFoundation.AVPortraitEffectsMatte.PixelFormatType
P:AVFoundation.AVProVideoStorage.Busy
P:AVFoundation.AVProVideoStorage.BusyReasons
P:AVFoundation.AVProVideoStorage.InitialCapacity
P:AVFoundation.AVProVideoStorage.IsSupported
P:AVFoundation.AVProVideoStorage.RemainingCapacity
P:AVFoundation.AVProVideoStorage.SharedStorage
P:AVFoundation.AVProVideoStorage.WeakBusyReasons
P:AVFoundation.AVQueuePlayer.Items
P:AVFoundation.AVRenderedCaptionImage.PixelBuffer
P:AVFoundation.AVRenderedCaptionImage.Position
Expand Down Expand Up @@ -57355,6 +57361,7 @@ T:AVFoundation.AVPlayerViewControllerSkippingBehavior
T:AVFoundation.AVPlayerWaitingReason
T:AVFoundation.AVPortraitEffectsMatte
T:AVFoundation.AVProVideoStorage
T:AVFoundation.AVProVideoStorageBusyReason
T:AVFoundation.AVQueuePlayer
T:AVFoundation.AVRenderedCaptionImage
T:AVFoundation.AVRouteDetector
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading