Skip to content
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

Merged

Conversation

mandel-macaque
Copy link
Member

No description provided.

@mandel-macaque mandel-macaque added the note-highlight Worth calling out specifically in release notes label Aug 12, 2020
interface AVAssetSegmentTrackReport {
[Export ("trackID")]
int TrackId { get; }

Copy link
Member Author

@mandel-macaque mandel-macaque Aug 12, 2020

Choose a reason for hiding this comment

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

src/avfoundation.cs Outdated Show resolved Hide resolved
[Native]
[NoTV, NoWatch, Mac (11, 0), NoiOS]
public enum AVAudioRoutingArbitrationCategory : long {
back = 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Back ?

public enum AVAudioRoutingArbitrationCategory : long {
back = 0,
AndRecord = 1,
AndRecordVoice = 2,
Copy link
Contributor

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 ?

Copy link
Contributor

Choose a reason for hiding this comment

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


[NoWatch, NoTV, NoMac, iOS (14, 0)]
[Field ("AVAudioSessionPolarPatternStereo")]
NSString PolarPatternStereo { get; }
Copy link
Contributor

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

Copy link
Member Author

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?

Copy link
Contributor

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 :(

Copy link
Member Author

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.

[TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)]
[Export ("outputFileTypeProfile")]
[NullAllowed]
string OutputFileTypeProfile { get; set; }
Copy link
Contributor

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


[TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)]
[Export ("supportsHDRSourceFrames")]
bool SupportsHDRSourceFrames { get; }
Copy link
Contributor

Choose a reason for hiding this comment

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

-> Hdr

@@ -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)]
Copy link
Contributor

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

@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

Build succeeded
API Diff (from stable)

Copy link
Contributor

@whitneyschmidt whitneyschmidt left a 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 🙈

src/AVFoundation/Enums.cs Outdated Show resolved Hide resolved
src/AVFoundation/Enums.cs Outdated Show resolved Hide resolved
src/avfoundation.cs Outdated Show resolved Hide resolved
src/avfoundation.cs Outdated Show resolved Hide resolved
src/avfoundation.cs Outdated Show resolved Hide resolved
src/avfoundation.cs Outdated Show resolved Hide resolved
src/avfoundation.cs Outdated Show resolved Hide resolved
src/avfoundation.cs Outdated Show resolved Hide resolved
src/avfoundation.cs Outdated Show resolved Hide resolved
[NullAllowed, Export ("error")]
NSError Error { get; }

[NoWatch]
[Watch (7, 0)]
[NullAllowed, Export ("identifier")]
NSObject Identifier { get; }
Copy link
Contributor

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;

Copy link
Member Author

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.

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
⚠️ API Diff (from PR only) (🔥 breaking changes 🔥)
ℹ️ Generator Diff (please review changes)
🔥 Test run failed 🔥

Test results

1 tests failed, 75 tests passed.

Failed tests

  • introspection/watchOS 32-bits - simulator/Debug (watchOS 3.2): Failed

mandel-macaque and others added 2 commits August 12, 2020 17:29
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

Build succeeded
API Diff (from stable)

@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

Build succeeded
API Diff (from stable)

@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
⚠️ API Diff (from PR only) (🔥 breaking changes 🔥)
ℹ️ Generator Diff (please review changes)
Test run succeeded

src/avfoundation.cs Show resolved Hide resolved
src/avfoundation.cs Show resolved Hide resolved
src/avfoundation.cs Show resolved Hide resolved

[TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)]
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
NSObject WriterWeakDelegate { get; set; }
Copy link
Member

@rolfbjarne rolfbjarne Aug 13, 2020

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.

Copy link
Member Author

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.

Copy link
Member

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.

src/avfoundation.cs Show resolved Hide resolved
mandel-macaque and others added 3 commits August 13, 2020 11:52
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
…e/xamarin-macios into avfoundation-xcode14-beta4
@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

Build succeeded
API Diff (from stable)
⚠️ API Diff (from PR only) (🔥 breaking changes 🔥)
ℹ️ Generator Diff (please review changes)

@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

🔥 Build failed 🔥

@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
⚠️ API Diff (from PR only) (🔥 breaking changes 🔥)
ℹ️ Generator Diff (please review changes)
Test run succeeded

@mandel-macaque mandel-macaque merged commit 1be4b57 into xamarin:xcode12 Aug 13, 2020
@mandel-macaque mandel-macaque deleted the avfoundation-xcode14-beta4 branch August 13, 2020 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
note-highlight Worth calling out specifically in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants