-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
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
[AVFoundation] Update framework for Xcode 12 beta 4. #9354
[AVFoundation] Update framework for Xcode 12 beta 4. #9354
Conversation
interface AVAssetSegmentTrackReport { | ||
[Export ("trackID")] | ||
int TrackId { get; } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/AVFoundation/Enums.cs
Outdated
[Native] | ||
[NoTV, NoWatch, Mac (11, 0), NoiOS] | ||
public enum AVAudioRoutingArbitrationCategory : long { | ||
back = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back
?
src/AVFoundation/Enums.cs
Outdated
public enum AVAudioRoutingArbitrationCategory : long { | ||
back = 0, | ||
AndRecord = 1, | ||
AndRecordVoice = 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird names... are they flags ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing Play
prefix, makes sense now
https://developer.apple.com/documentation/avfoundation/avaudioroutingarbitrationcategory?changes=latest_minor%20r_8&language=objc
src/avfoundation.cs
Outdated
|
||
[NoWatch, NoTV, NoMac, iOS (14, 0)] | ||
[Field ("AVAudioSessionPolarPatternStereo")] | ||
NSString PolarPatternStereo { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are other (older) members defined for AVAudioSessionPolarPattern
and this one should go with them
https://developer.apple.com/documentation/avfoundation/avaudiosessionpolarpattern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean move it to the same location in the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be along other AVAudioSessionPolarPattern*
fields which, sadly, are old enough that a smart enum was not used for them :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We wont forget now: #9356 will done once xcode12 is done.
src/avfoundation.cs
Outdated
[TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] | ||
[Export ("outputFileTypeProfile")] | ||
[NullAllowed] | ||
string OutputFileTypeProfile { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In ObjC that's AVFileTypeProfile
(a NSString
subclass) which you have defined before
Better bind this as a smart enum (or an NSString
) but not a normal string
src/avfoundation.cs
Outdated
|
||
[TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] | ||
[Export ("supportsHDRSourceFrames")] | ||
bool SupportsHDRSourceFrames { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> Hdr
src/avfoundation.cs
Outdated
@@ -13140,7 +13375,7 @@ interface AVContentKeySession { | |||
} | |||
|
|||
[Static][Internal] | |||
[NoWatch, NoTV, Mac (10,15), iOS (12,2)] | |||
[Watch (2,0), NoTV, Mac (10,15), iOS (12,2)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm... I don't think AVFoundation was available in 2.0
https://developer.apple.com/documentation/avfoundation?language=objc suggest it was in 3.0
In about better use the current SDK as it was likely not very useful before now
Build failure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly tiny formatting consistency nits 🙈
[NullAllowed, Export ("error")] | ||
NSError Error { get; } | ||
|
||
[NoWatch] | ||
[Watch (7, 0)] | ||
[NullAllowed, Export ("identifier")] | ||
NSObject Identifier { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to do any better than an NSObject
for Identifier
?
Header:
/*
@property identifier
@abstract Container- and protocol-specific identifier for the content key.
@discussion In order to use a key with an HTTP Live Streaming AVURLAsset, the identifier must be an NSURL that matches a key URI in the Media Playlist.
*/
@property (readonly, nullable) id identifier;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mope, identifiers are just an NSObject, we do not care about it. It is used to later retrieve it. This is 'common' in other APIs.
Build failure Test results1 tests failed, 75 tests passed.Failed tests
|
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
Build failure |
Build failure |
Build success |
src/avfoundation.cs
Outdated
|
||
[TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] | ||
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] | ||
NSObject WriterWeakDelegate { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why Writer*Delegate
instead of just *Delegate
? There doesn't seem to be a Delegate property already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comes from a category. I fear that an other category might be added with a Delegate, which could mean that we will have the Deprecated XAMCORE_4 dance. Since it is a category, it might happen. Unless you see this not being possible, I prefer to add the Writer prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that I recall, I think we can leave just the Delegate
name here, it makes sense AVAssetWriter
is the class name and AVAssetWriterDelegate
is its delegate.
My vote is to just use Delegate
and WeakDelegate
as managed names.
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
…e/xamarin-macios into avfoundation-xcode14-beta4
Build failure |
Build failure ✅ Build succeeded |
Build failure 🔥 Build failed 🔥 |
Build success |
No description provided.