Skip to content

Multiple binding signature issues with AVAssetWriter related types #21509

@jeremy-visionaid

Description

@jeremy-visionaid

Apple platform

iOS, Mac Catalyst

Framework version

net8.0-, net9.0-

Affected platform version

.NET 8.0.403

Description

public AVAssetWriter(NSUrl outputUrl, string outputFileType, out NSError error);

Should be

public AVAssetWriter(NSUrl outputUrl, AVFileTypes outputFileType, out NSError error);

Or the enum's FieldAttribute value should be conventiently accessible as a string somewhere

Similarly,
AVAssetWriterInput exposes all the MediaTypes as a string instead of a AVMediaTypes enum and there appears to be no convenient alternative.

Steps to Reproduce

Can just look at the docs:

AVAssetWriter:

https://developer.apple.com/documentation/avfoundation/avassetwriter/1426663-assetwriterwithurl?language=objc

https://learn.microsoft.com/en-us/dotnet/api/avfoundation.avassetwriter.-ctor?view=xamarin-ios-sdk-12#avfoundation-avassetwriter-ctor(foundation-nsurl-system-string-foundation-nserror@)

https://learn.microsoft.com/en-us/dotnet/api/avfoundation.avfiletypes?view=xamarin-ios-sdk-12

AVAssetWriterInput:

https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1385912-initwithmediatype?language=objc

https://learn.microsoft.com/en-us/dotnet/api/avfoundation.avassetwriterinput.-ctor?view=xamarin-ios-sdk-12#avfoundation-avassetwriterinput-ctor(system-string-avfoundation-audiosettings)

https://learn.microsoft.com/en-us/dotnet/api/avfoundation.avmediatypes?view=xamarin-ios-sdk-12

Did you find any workaround?

AVFileTypesExtensions.GetConstant()
AVFileTypesExtensions.GetValue()

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions