/src/avfoundation.cs
https://github.com/kjpou1/maccore · C# · 4350 lines · 3143 code · 1130 blank · 77 comment · 0 complexity · d48d3104850950554269f19cd73a22d0 MD5 · raw file
Large files are truncated click here to view the full file
- //
- // AVFoundation.cs: This file describes the API that the generator will produce for AVFoundation
- //
- // Authors:
- // Miguel de Icaza
- // Marek Safar (marek.safar@gmail.com)
- //
- // Copyright 2009, Novell, Inc.
- // Copyright 2010, Novell, Inc.
- // Copyright 2011-2012, Xamarin, Inc.
- //
- // Permission is hereby granted, free of charge, to any person obtaining
- // a copy of this software and associated documentation files (the
- // "Software"), to deal in the Software without restriction, including
- // without limitation the rights to use, copy, modify, merge, publish,
- // distribute, sublicense, and/or sell copies of the Software, and to
- // permit persons to whom the Software is furnished to do so, subject to
- // the following conditions:
- //
- // The above copyright notice and this permission notice shall be
- // included in all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
- // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- //
- using MonoMac.ObjCRuntime;
- using MonoMac.Foundation;
- using MonoMac.CoreFoundation;
- using MonoMac.CoreMedia;
- using MonoMac.CoreGraphics;
- using MonoMac.CoreAnimation;
- using MonoMac.CoreVideo;
- using System;
- using System.Drawing;
- #if !MONOMAC
- using MonoTouch.MediaToolbox;
- #endif
- namespace MonoMac.AVFoundation {
- delegate void AVAssetImageGeneratorCompletionHandler (CMTime requestedTime, IntPtr imageRef, CMTime actualTime, AVAssetImageGeneratorResult result, NSError error);
- delegate void AVCompletion (bool finished);
-
- [Since (4,0)]
- [BaseType (typeof (NSObject))][Static]
- interface AVMediaType {
- [Field ("AVMediaTypeVideo")]
- NSString Video { get; }
-
- [Field ("AVMediaTypeAudio")]
- NSString Audio { get; }
- [Field ("AVMediaTypeText")]
- NSString Text { get; }
- [Field ("AVMediaTypeClosedCaption")]
- NSString ClosedCaption { get; }
- [Field ("AVMediaTypeSubtitle")]
- NSString Subtitle { get; }
- [Field ("AVMediaTypeTimecode")]
- NSString Timecode { get; }
- [Field ("AVMediaTypeTimedMetadata")]
- [Obsolete ("Deprecated in iOS 6.0, see Metadata")]
- NSString TimedMetadata { get; }
- [Field ("AVMediaTypeMuxed")]
- NSString Muxed { get; }
- #if !MONOMAC
- [Since (6,0)]
- [Field ("AVMediaTypeMetadata")]
- NSString Metadata { get; }
- #endif
- }
- [Since (4,0)]
- [BaseType (typeof (NSObject))][Static]
- interface AVMediaCharacteristic {
- [Field ("AVMediaCharacteristicVisual")]
- NSString Visual { get; }
- [Field ("AVMediaCharacteristicAudible")]
- NSString Audible { get; }
- [Field ("AVMediaCharacteristicLegible")]
- NSString Legible { get; }
- [Field ("AVMediaCharacteristicFrameBased")]
- NSString FrameBased { get; }
- [MountainLion]
- [Field ("AVMediaCharacteristicIsMainProgramContent")]
- NSString IsMainProgramContent { get; }
- [MountainLion]
- [Field ("AVMediaCharacteristicIsAuxiliaryContent")]
- NSString IsAuxiliaryContent { get; }
- [MountainLion]
- [Field ("AVMediaCharacteristicContainsOnlyForcedSubtitles")]
- NSString ContainsOnlyForcedSubtitles { get; }
- [MountainLion]
- [Field ("AVMediaCharacteristicTranscribesSpokenDialogForAccessibility")]
- NSString TranscribesSpokenDialogForAccessibility { get; }
- [MountainLion]
- [Field ("AVMediaCharacteristicDescribesMusicAndSoundForAccessibility")]
- NSString DescribesMusicAndSoundForAccessibility { get; }
- [MountainLion]
- [Field ("AVMediaCharacteristicDescribesVideoForAccessibility")]
- NSString DescribesVideoForAccessibility { get; }
- #if !MONOMAC
- [Since (6,0)]
- [Field ("AVMediaCharacteristicEasyToRead")]
- NSString EasyToRead { get; }
- #endif
- }
- [Since (4,0)]
- [BaseType (typeof (NSObject))][Static]
- interface AVFileType {
- [Field ("AVFileTypeQuickTimeMovie")]
- NSString QuickTimeMovie { get; }
-
- [Field ("AVFileTypeMPEG4")]
- NSString Mpeg4 { get; }
-
- [Field ("AVFileTypeAppleM4V")]
- NSString AppleM4V { get; }
-
- [Field ("AVFileType3GPP")]
- NSString ThreeGpp { get; }
-
- [Field ("AVFileTypeAppleM4A")]
- NSString AppleM4A { get; }
-
- [Field ("AVFileTypeCoreAudioFormat")]
- NSString CoreAudioFormat { get; }
-
- [Field ("AVFileTypeWAVE")]
- NSString Wave { get; }
-
- [Field ("AVFileTypeAIFF")]
- NSString Aiff { get; }
-
- [Field ("AVFileTypeAIFC")]
- NSString Aifc { get; }
-
- [Field ("AVFileTypeAMR")]
- NSString Amr { get; }
- }
- [Since (4,0)]
- [BaseType (typeof (NSObject))][Static]
- interface AVVideo {
- [Field ("AVVideoCodecKey")]
- NSString CodecKey { get; }
-
- [Field ("AVVideoCodecH264")]
- NSString CodecH264 { get; }
-
- [Field ("AVVideoCodecJPEG")]
- NSString CodecJPEG { get; }
-
- [Field ("AVVideoWidthKey")]
- NSString WidthKey { get; }
-
- [Field ("AVVideoHeightKey")]
- NSString HeightKey { get; }
- [Since (5,0)]
- [Field ("AVVideoScalingModeKey")]
- NSString ScalingModeKey { get; }
-
- [Field ("AVVideoCompressionPropertiesKey")]
- NSString CompressionPropertiesKey { get; }
-
- [Field ("AVVideoAverageBitRateKey")]
- NSString AverageBitRateKey { get; }
-
- [Field ("AVVideoMaxKeyFrameIntervalKey")]
- NSString MaxKeyFrameIntervalKey { get; }
-
- [Field ("AVVideoProfileLevelKey")]
- NSString ProfileLevelKey { get; }
- [Since (5,0)]
- [Field ("AVVideoQualityKey")]
- NSString QualityKey { get; }
-
- [Field ("AVVideoProfileLevelH264Baseline30")]
- NSString ProfileLevelH264Baseline30 { get; }
-
- [Field ("AVVideoProfileLevelH264Baseline31")]
- NSString ProfileLevelH264Baseline31 { get; }
- [Field ("AVVideoProfileLevelH264Main30")]
- NSString ProfileLevelH264Main30 { get; }
-
- [Field ("AVVideoProfileLevelH264Main31")]
- NSString ProfileLevelH264Main31 { get; }
- [Since (5,0)]
- [Field ("AVVideoProfileLevelH264Baseline41")]
- NSString ProfileLevelH264Baseline41 { get; }
- [Since (5,0)][MountainLion]
- [Field ("AVVideoProfileLevelH264Main32")]
- NSString ProfileLevelH264Main32 { get; }
- [Since (5,0)]
- [Field ("AVVideoProfileLevelH264Main41")]
- NSString ProfileLevelH264Main41 { get; }
- #if !MONOMAC
- [Since (6,0)]
- [Field ("AVVideoProfileLevelH264High40")]
- NSString ProfileLevelH264High40 { get; }
- [Since (6,0)]
- [Field ("AVVideoProfileLevelH264High41")]
- NSString ProfileLevelH264High41 { get; }
- #endif
- [Field ("AVVideoPixelAspectRatioKey")]
- NSString PixelAspectRatioKey { get; }
-
- [Field ("AVVideoPixelAspectRatioHorizontalSpacingKey")]
- NSString PixelAspectRatioHorizontalSpacingKey { get; }
-
- [Field ("AVVideoPixelAspectRatioVerticalSpacingKey")]
- NSString PixelAspectRatioVerticalSpacingKey { get; }
-
- [Field ("AVVideoCleanApertureKey")]
- NSString CleanApertureKey { get; }
-
- [Field ("AVVideoCleanApertureWidthKey")]
- NSString CleanApertureWidthKey { get; }
-
- [Field ("AVVideoCleanApertureHeightKey")]
- NSString CleanApertureHeightKey { get; }
-
- [Field ("AVVideoCleanApertureHorizontalOffsetKey")]
- NSString CleanApertureHorizontalOffsetKey { get; }
-
- [Field ("AVVideoCleanApertureVerticalOffsetKey")]
- NSString CleanApertureVerticalOffsetKey { get; }
- }
- [Since (5,0)]
- [Static]
- interface AVVideoScalingModeKey
- {
- [Field ("AVVideoScalingModeFit")]
- NSString Fit { get; }
- [Field ("AVVideoScalingModeResize")]
- NSString Resize { get; }
- [Field ("AVVideoScalingModeResizeAspect")]
- NSString ResizeAspect { get; }
- [Field ("AVVideoScalingModeResizeAspectFill")]
- NSString ResizeAspectFill { get; }
- }
-
- [BaseType (typeof (NSObject))]
- [DisableDefaultCtor]
- interface AVAudioPlayer {
- [Export ("initWithContentsOfURL:error:")][Internal]
- IntPtr Constructor (NSUrl url, IntPtr outError);
-
- [Export ("initWithData:error:")][Internal]
- IntPtr Constructor (NSData data, IntPtr outError);
-
- [Export ("prepareToPlay")]
- bool PrepareToPlay ();
-
- [Export ("play")]
- bool Play ();
-
- [Export ("pause")]
- void Pause ();
-
- [Export ("stop")]
- void Stop ();
-
- [Export ("playing")]
- bool Playing { [Bind ("isPlaying")] get; }
-
- [Export ("numberOfChannels")]
- uint NumberOfChannels { get; }
-
- [Export ("duration")]
- double Duration { get; }
-
- [Export ("delegate", ArgumentSemantic.Assign)]
- NSObject WeakDelegate { get; set; }
- [Wrap ("WeakDelegate")]
- AVAudioPlayerDelegate Delegate { get; set; }
-
- [Export ("url")]
- NSUrl Url { get; }
-
- [Export ("data")]
- NSData Data { get; }
-
- [Export ("volume")]
- float Volume { get; set; }
-
- [Export ("currentTime")]
- double CurrentTime { get; set; }
-
- [Export ("numberOfLoops")]
- int NumberOfLoops { get; set; }
-
- [Export ("meteringEnabled")]
- bool MeteringEnabled { [Bind ("isMeteringEnabled")] get; set; }
-
- [Export ("updateMeters")]
- void UpdateMeters ();
-
- [Export ("peakPowerForChannel:")]
- float PeakPower (uint channelNumber);
-
- [Export ("averagePowerForChannel:")]
- float AveragePower (uint channelNumber);
- [Since (4,0)]
- [Export ("deviceCurrentTime")]
- double DeviceCurrentTime { get; }
- [Since (4,0)]
- [Export ("pan")]
- float Pan { get; set; }
- [Since (4,0)]
- [Export ("playAtTime:")]
- bool PlayAtTime (double time);
- [Since (4,0)]
- [Export ("settings")][Protected]
- NSDictionary WeakSettings { get; }
- [Wrap ("WeakSettings")]
- AudioSettings SoundSetting { get; }
- [Since (5,0)]
- [Export ("enableRate")]
- bool EnableRate { get; set; }
- [Since (5,0)]
- [Export ("rate")]
- float Rate { get; set; }
- #if !MONOMAC
- [Since (6,0)]
- [Export ("channelAssignments")]
- AVAudioSessionChannelDescription [] ChannelAssignments { get; set; }
- #endif
- }
-
- [BaseType (typeof (NSObject))]
- [Model]
- [Protocol]
- interface AVAudioPlayerDelegate {
- [Export ("audioPlayerDidFinishPlaying:successfully:"), CheckDisposed]
- void FinishedPlaying (AVAudioPlayer player, bool flag);
-
- [Export ("audioPlayerDecodeErrorDidOccur:error:")]
- void DecoderError (AVAudioPlayer player, NSError error);
-
- #if !MONOMAC
- [Export ("audioPlayerBeginInterruption:")]
- void BeginInterruption (AVAudioPlayer player);
-
- [Export ("audioPlayerEndInterruption:")]
- [Obsolete ("Deprecated in iOS 6.0")]
- void EndInterruption (AVAudioPlayer player);
- // Deprecated in iOS 6.0 but we have same C# signature
- [Since (4,0)]
- [Export ("audioPlayerEndInterruption:withFlags:")]
- void EndInterruption (AVAudioPlayer player, AVAudioSessionInterruptionFlags flags);
- //[Since (6,0)]
- //[Export ("audioPlayerEndInterruption:withOptions:")]
- //void EndInterruption (AVAudioPlayer player, AVAudioSessionInterruptionFlags flags);
- #endif
- }
- [BaseType (typeof (NSObject))]
- interface AVAudioRecorder {
- [Export ("initWithURL:settings:error:")][Internal]
- IntPtr Constructor (NSUrl url, NSDictionary settings, IntPtr outError);
-
- [Export ("prepareToRecord")]
- bool PrepareToRecord ();
-
- [Export ("record")]
- bool Record ();
-
- [Export ("recordForDuration:")]
- bool RecordFor (double duration);
-
- [Export ("pause")]
- void Pause ();
-
- [Export ("stop")]
- void Stop ();
-
- [Export ("deleteRecording")]
- bool DeleteRecording ();
-
- [Export ("recording")]
- bool Recording { [Bind ("isRecording")] get; }
-
- [Export ("url")]
- NSUrl Url { get; }
-
- [Advice ("Use AudioSettings")]
- [Export ("settings")]
- NSDictionary Settings { get; }
- [Wrap ("Settings")]
- AudioSettings AudioSettings { get; }
- [Export ("delegate")]
- NSObject WeakDelegate { get; set; }
- [Wrap ("WeakDelegate")]
- AVAudioRecorderDelegate Delegate { get; set; }
-
- [Export ("currentTime")]
- double currentTime { get; }
-
- [Export ("meteringEnabled")]
- bool MeteringEnabled { [Bind ("isMeteringEnabled")] get; set; }
-
- [Export ("updateMeters")]
- void UpdateMeters ();
-
- [Export ("peakPowerForChannel:")]
- float PeakPower (uint channelNumber);
-
- [Export ("averagePowerForChannel:")]
- float AveragePower (uint channelNumber);
- #if !MONOMAC
- [Since (6,0)]
- [Export ("channelAssignments")]
- AVAudioSessionChannelDescription [] ChannelAssignments { get; set; }
- [Since (6,0)]
- [Export ("recordAtTime:")]
- bool RecordAt (double time);
- [Since (6,0)]
- [Export ("recordAtTime:forDuration:")]
- bool RecordAt (double time, double duration);
- [Since (6,0)]
- [Export ("deviceCurrentTime")]
- double DeviceCurrentTime { get; }
- #endif
- }
-
- [BaseType (typeof (NSObject))]
- [Model]
- [Protocol]
- interface AVAudioRecorderDelegate {
- [Export ("audioRecorderDidFinishRecording:successfully:"), CheckDisposed]
- void FinishedRecording (AVAudioRecorder recorder, bool flag);
-
- [Export ("audioRecorderEncodeErrorDidOccur:error:")]
- void EncoderError (AVAudioRecorder recorder, NSError error);
- #if !MONOMAC
- [Export ("audioRecorderBeginInterruption:")]
- void BeginInterruption (AVAudioRecorder recorder);
-
- [Obsolete ("Deprecated in iOS 6.0")]
- [Export ("audioRecorderEndInterruption:")]
- void EndInterruption (AVAudioRecorder recorder);
- // Deprecated in iOS 6.0 but we have same C# signature
- [Since (4,0)]
- [Export ("audioRecorderEndInterruption:withFlags:")]
- void EndInterruption (AVAudioRecorder recorder, AVAudioSessionInterruptionFlags flags);
- //[Since (6,0)]
- //[Export ("audioRecorderEndInterruption:withOptions:")]
- //void EndInterruption (AVAudioRecorder recorder, AVAudioSessionInterruptionFlags flags);
- #endif
- }
- #if !MONOMAC
- [BaseType (typeof (NSObject))]
- interface AVAudioSession {
- [Export ("sharedInstance"), Static]
- AVAudioSession SharedInstance ();
-
- [Export ("delegate")]
- NSObject WeakDelegate { get; set; }
- [Wrap ("WeakDelegate")]
- [Obsolete ("Deprecated in iOS 6.0. Use AVAudioSession.Notification.Observe* methods instead")]
- AVAudioSessionDelegate Delegate { get; set; }
-
- [Export ("setActive:error:")]
- bool SetActive (bool beActive, out NSError outError);
- [Since (4,0)]
- [Export ("setActive:withFlags:error:")]
- [Obsolete ("Deprecated in iOS 6.0. Use SetActive (bool, AVAudioSessionSetActiveOptions, out NSError) instead")]
- bool SetActive (bool beActive, AVAudioSessionFlags flags, out NSError outError);
- [Export ("setCategory:error:")]
- bool SetCategory (NSString theCategory, out NSError outError);
-
- [Obsolete ("Deprecated in iOS 6.0, use SetPreferredSampleRate")]
- [Export ("setPreferredHardwareSampleRate:error:")]
- bool SetPreferredHardwareSampleRate (double sampleRate, out NSError outError);
-
- [Export ("setPreferredIOBufferDuration:error:")]
- bool SetPreferredIOBufferDuration (double duration, out NSError outError);
-
- [Export ("category")]
- NSString Category { get; }
- [Export ("mode")]
- NSString Mode { get; }
- [Export ("setMode:error:")]
- bool SetMode (NSString mode, out NSError error);
-
- [Export ("preferredHardwareSampleRate")]
- [Obsolete ("Deprecated in iOS 6.0")]
- double PreferredHardwareSampleRate { get; }
-
- [Export ("preferredIOBufferDuration")]
- double PreferredIOBufferDuration { get; }
-
- [Export ("inputIsAvailable")]
- [Obsolete ("Deprecated in iOS 6.0")]
- bool InputIsAvailable { get; }
-
- [Export ("currentHardwareSampleRate")]
- [Obsolete ("Deprecated in iOS 6.0, use SampleRate instead")]
- double CurrentHardwareSampleRate { get; }
-
- [Export ("currentHardwareInputNumberOfChannels")]
- [Obsolete ("Deprecated in iOS 6.0, use InputNumberOfChannels instead")]
- int CurrentHardwareInputNumberOfChannels { get; }
-
- [Export ("currentHardwareOutputNumberOfChannels")]
- [Obsolete ("Deprecated in iOS 6.0, use OutputNumberOfChannels instead")]
- int CurrentHardwareOutputNumberOfChannels { get; }
- [Field ("AVAudioSessionCategoryAmbient")]
- NSString CategoryAmbient { get; }
- [Field ("AVAudioSessionCategorySoloAmbient")]
- NSString CategorySoloAmbient { get; }
- [Field ("AVAudioSessionCategoryPlayback")]
- NSString CategoryPlayback { get; }
- [Field ("AVAudioSessionCategoryRecord")]
- NSString CategoryRecord { get; }
- [Field ("AVAudioSessionCategoryPlayAndRecord")]
- NSString CategoryPlayAndRecord { get; }
- [Field ("AVAudioSessionCategoryAudioProcessing")]
- NSString CategoryAudioProcessing { get; }
- [Field ("AVAudioSessionModeDefault")]
- NSString ModeDefault { get; }
- [Field ("AVAudioSessionModeVoiceChat")]
- NSString ModeVoiceChat { get; }
- [Field ("AVAudioSessionModeVideoRecording")]
- NSString ModeVideoRecording { get; }
- [Field ("AVAudioSessionModeMeasurement")]
- NSString ModeMeasurement { get; }
- [Field ("AVAudioSessionModeGameChat")]
- NSString ModeGameChat { get; }
- [Since (6,0)]
- [Export ("setActive:withOptions:error:")]
- bool SetActive (bool active, AVAudioSessionSetActiveOptions options, out NSError outError);
- [Since (6,0)]
- [Export ("setCategory:withOptions:error:")]
- bool SetCategory (string category, AVAudioSessionCategoryOptions options, out NSError outError);
- [Since (6,0)]
- [Export ("categoryOptions")]
- AVAudioSessionCategoryOptions CategoryOptions { get; }
- [Since (6,0)]
- [Export ("overrideOutputAudioPort:error:")]
- bool OverrideOutputAudioPort (AVAudioSessionPortOverride portOverride, out NSError outError);
- [Since (6,0)]
- [Export ("otherAudioPlaying")]
- bool OtherAudioPlaying { [Bind ("isOtherAudioPlaying")] get; }
- [Since (6,0)]
- [Export ("currentRoute")]
- AVAudioSessionRouteDescription CurrentRoute { get; }
- [Since (6,0)]
- [Export ("setPreferredSampleRate:error:")]
- bool SetPreferredSampleRate (double sampleRate, out NSError error);
-
- [Since (6,0)]
- [Export ("preferredSampleRate")]
- double PreferredSampleRate { get; }
- [Since (6,0)]
- [Export ("inputGain")]
- float InputGain { get; }
- [Since (6,0)]
- [Export ("inputGainSettable")]
- bool InputGainSettable { [Bind ("isInputGainSettable")] get; }
- [Since (6,0)]
- [Export ("inputAvailable")]
- bool InputAvailable { [Bind ("isInputAvailable")] get; }
- [Since (6,0)]
- [Export ("sampleRate")]
- double SampleRate { get; }
- [Since (6,0)]
- [Export ("inputNumberOfChannels")]
- int InputNumberOfChannels { get; }
- [Since (6,0)]
- [Export ("outputNumberOfChannels")]
- int OutputNumberOfChannels { get; }
- [Since (6,0)]
- [Export ("outputVolume")]
- float OutputVolume { get; }
- [Since (6,0)]
- [Export ("inputLatency")]
- double InputLatency { get; }
- [Since (6,0)]
- [Export ("outputLatency")]
- double OutputLatency { get; }
- [Since (6,0)]
- [Export ("IOBufferDuration")]
- double IOBufferDuration { get; }
- [Since (6,0)]
- [Export ("setInputGain:error:")]
- bool SetInputGain (float gain, out NSError outError);
- [Since (6,0)]
- [Field ("AVAudioSessionInterruptionNotification")]
- [Notification (typeof (AVAudioSessionInterruptionEventArgs))]
- NSString InterruptionNotification { get; }
- [Since (6,0)]
- [Field ("AVAudioSessionRouteChangeNotification")]
- [Notification (typeof (AVAudioSessionRouteChangeEventArgs))]
- NSString RouteChangeNotification { get; }
- [Since (6,0)]
- [Field ("AVAudioSessionMediaServicesWereResetNotification")]
- [Notification]
- NSString MediaServicesWereResetNotification { get; }
- [Since (6,0)]
- [Field ("AVAudioSessionCategoryMultiRoute")]
- NSString CategoryMultiRoute { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionModeMoviePlayback")]
- NSString ModeMoviePlayback { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortLineIn")]
- NSString PortLineIn { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortBuiltInMic")]
- NSString PortBuiltInMic { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortHeadsetMic")]
- NSString PortHeadsetMic { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortLineOut")]
- NSString PortLineOut { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortHeadphones")]
- NSString PortHeadphones { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortBluetoothA2DP")]
- NSString PortBluetoothA2DP { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortBuiltInReceiver")]
- NSString PortBuiltInReceiver { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortBuiltInSpeaker")]
- NSString PortBuiltInSpeaker { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortHDMI")]
- NSString PortHdmi { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortAirPlay")]
- NSString PortAirPlay { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortBluetoothHFP")]
- NSString PortBluetoothHfp { get; }
-
- [Since (6,0)]
- [Field ("AVAudioSessionPortUSBAudio")]
- NSString PortUsbAudio { get; }
- [Since (6,0)]
- [Export ("inputDataSources")]
- AVAudioSessionDataSourceDescription [] InputDataSources { get; }
- [Since (6,0)]
- [Export ("inputDataSource")]
- AVAudioSessionDataSourceDescription InputDataSource { get; }
- [Since (6,0)]
- [Export ("outputDataSources")]
- AVAudioSessionDataSourceDescription [] OutputDataSources { get; }
- [Since (6,0)]
- [Export ("outputDataSource")]
- AVAudioSessionDataSourceDescription OutputDataSource { get; }
-
- [Since (6,0)]
- [Export ("setInputDataSource:error:")]
- [PostGet ("InputDataSource")]
- bool SetInputDataSource (AVAudioSessionDataSourceDescription dataSource, out NSError outError);
- [Since (6,0)]
- [Export ("setOutputDataSource:error:")]
- [PostGet ("OutputDataSource")]
- bool SetOutputDataSource (AVAudioSessionDataSourceDescription dataSource, out NSError outError);
- }
- [Since (6,0)]
- [BaseType (typeof (NSObject))]
- interface AVAudioSessionDataSourceDescription {
- [Export ("dataSourceID")]
- NSNumber DataSourceID { get; }
- [Export ("dataSourceName")]
- string DataSourceName { get; }
- }
- interface AVAudioSessionInterruptionEventArgs {
- [Export ("AVAudioSessionInterruptionTypeKey")]
- AVAudioSessionInterruptionType InterruptionType { get; }
- [Export ("AVAudioSessionInterruptionOptionKey")]
- AVAudioSessionInterruptionOptions Option { get; }
- }
- interface AVAudioSessionRouteChangeEventArgs {
- [Export ("AVAudioSessionRouteChangeReasonKey")]
- AVAudioSessionRouteChangeReason Reason { get; }
-
- [Export ("AVAudioSessionRouteChangePreviousRouteKey")]
- AVAudioSessionRouteDescription PreviousRoute { get; }
- }
-
- [BaseType (typeof (NSObject))]
- [Model]
- [Protocol]
- interface AVAudioSessionDelegate {
- [Export ("beginInterruption")]
- void BeginInterruption ();
-
- [Export ("endInterruption")]
- void EndInterruption ();
- [Export ("inputIsAvailableChanged:")]
- void InputIsAvailableChanged (bool isInputAvailable);
-
- [Since (4,0)]
- [Export ("endInterruptionWithFlags:")]
- void EndInterruption (AVAudioSessionInterruptionFlags flags);
- }
- [Since (6,0)]
- [BaseType (typeof (NSObject))]
- interface AVAudioSessionChannelDescription {
- [Export ("channelName")]
- string ChannelName { get; }
- [Export ("owningPortUID")]
- string OwningPortUID { get; }
- [Export ("channelNumber")]
- int ChannelNumber { get; }
- }
- [Since (6,0)]
- [BaseType (typeof (NSObject))]
- interface AVAudioSessionPortDescription {
- [Export ("portType")]
- NSString PortType { get; }
- [Export ("portName")]
- string PortName { get; }
- [Export ("UID")]
- string UID { get; }
- [Export ("channels")]
- AVAudioSessionChannelDescription [] Channels { get; }
- }
- [Since (6,0)]
- [BaseType (typeof (NSObject))]
- interface AVAudioSessionRouteDescription {
- [Export ("inputs")]
- AVAudioSessionPortDescription [] Inputs { get; }
- [Export ("outputs")]
- AVAudioSessionPortDescription [] Outputs { get; }
- }
- #endif
- [Since (4,0)]
- [BaseType (typeof (NSObject))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** initialization method -init cannot be sent to an abstract object of class AVAsset: Create a concrete instance!
- [DisableDefaultCtor]
- interface AVAsset {
- [Export ("duration")]
- CMTime Duration { get; }
- [Export ("preferredRate")]
- float PreferredRate { get; }
- [Export ("preferredVolume")]
- float PreferredVolume { get; }
- [Export ("preferredTransform")]
- CGAffineTransform PreferredTransform { get; }
- [Export ("naturalSize"), Obsolete ("Deprecated in iOS 5.0. Use NaturalSize/PreferredTransform as appropriate on the video track")]
- SizeF NaturalSize { get; }
- [Export ("providesPreciseDurationAndTiming")]
- bool ProvidesPreciseDurationAndTiming { get; }
- [Export ("cancelLoading")]
- void CancelLoading ();
- [Export ("tracks")]
- AVAssetTrack [] Tracks { get; }
- [Export ("trackWithTrackID:")]
- AVAssetTrack TrackWithTrackID (int trackID);
- [Export ("tracksWithMediaType:")]
- AVAssetTrack [] TracksWithMediaType (string mediaType);
- [Export ("tracksWithMediaCharacteristic:")]
- AVAssetTrack [] TracksWithMediaCharacteristic (string mediaCharacteristic);
- [Export ("lyrics")]
- string Lyrics { get; }
- [Export ("commonMetadata")]
- AVMetadataItem [] CommonMetadata { get; }
- [Export ("availableMetadataFormats")]
- string [] AvailableMetadataFormats { get; }
- [Export ("metadataForFormat:")]
- AVMetadataItem [] MetadataForFormat (string format);
- [Since (4,2)]
- [Export ("hasProtectedContent")]
- bool ProtectedContent { get; }
- [Since (4,3)]
- [Export ("availableChapterLocales")]
- NSLocale [] AvailableChapterLocales { get; }
- [Since (4,3)]
- [Export ("chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:")]
- AVMetadataItem [] ChapterMetadataGroups (NSLocale forLocale, [NullAllowed] AVMetadataItem [] commonKeys);
- [Since (4,3)]
- [Export ("isPlayable")]
- bool Playable { get; }
- [Since (4,3)]
- [Export ("isExportable")]
- bool Exportable { get; }
- [Since (4,3)]
- [Export ("isReadable")]
- bool Readable { get; }
- [Since (4,3)]
- [Export ("isComposable")]
- bool Composable { get; }
- // 5.0 APIs:
- [Since (5,0)]
- [Static, Export ("assetWithURL:")]
- AVAsset FromUrl (NSUrl url);
- #if !MONOMAC
- [Since (5,0)]
- [Export ("availableMediaCharacteristicsWithMediaSelectionOptions")]
- string [] AvailableMediaCharacteristicsWithMediaSelectionOptions { get; }
- [Since (5,0)]
- [Export ("compatibleWithSavedPhotosAlbum")]
- bool CompatibleWithSavedPhotosAlbum { [Bind ("isCompatibleWithSavedPhotosAlbum")] get; }
- [Since (5,0)]
- [Export ("creationDate")]
- AVMetadataItem CreationDate { get; }
- #endif
- [Since (5,0)]
- [Export ("referenceRestrictions")]
- AVAssetReferenceRestrictions ReferenceRestrictions { get; }
- #if !MONOMAC
- [Since (5,0)]
- [Export ("mediaSelectionGroupForMediaCharacteristic:")]
- AVMediaSelectionGroup MediaSelectionGroupForMediaCharacteristic (string avMediaCharacteristic);
- #endif
- [Export ("statusOfValueForKey:error:")]
- AVKeyValueStatus StatusOfValue (string key, out NSError error);
- [Export ("loadValuesAsynchronouslyForKeys:completionHandler:")]
- [Async ("LoadValuesTaskAsync")]
- void LoadValuesAsynchronously (string [] keys, NSAction handler);
- #if !MONOMAC
- [Since (6,0)]
- [Export ("chapterMetadataGroupsBestMatchingPreferredLanguages:")]
- AVTimedMetadataGroup [] GetChapterMetadataGroupsBestMatchingPreferredLanguages (string [] languages);
- #endif
- }
- [BaseType (typeof (NSObject))]
- // <quote>You create an asset generator using initWithAsset: or assetImageGeneratorWithAsset:</quote> http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAssetImageGenerator_Class/Reference/Reference.html
- // calling 'init' returns a NIL handle
- [DisableDefaultCtor]
- interface AVAssetImageGenerator {
- [Export ("maximumSize")]
- SizeF MaximumSize { get; set; }
- [Export ("apertureMode")]
- NSString ApertureMode { get; set; }
- [Export ("videoComposition", ArgumentSemantic.Copy)]
- AVVideoComposition VideoComposition { get; set; }
- [Export ("appliesPreferredTrackTransform")]
- bool AppliesPreferredTrackTransform { get; set; }
- [Static]
- [Export ("assetImageGeneratorWithAsset:")]
- AVAssetImageGenerator FromAsset (AVAsset asset);
- [Export ("initWithAsset:")]
- IntPtr Constructor (AVAsset asset);
- [Export ("copyCGImageAtTime:actualTime:error:")]
- CGImage CopyCGImageAtTime (CMTime requestedTime, out CMTime actualTime, out NSError outError);
- [Export ("generateCGImagesAsynchronouslyForTimes:completionHandler:")]
- void GenerateCGImagesAsynchronously (NSValue[] cmTimesRequestedTimes, AVAssetImageGeneratorCompletionHandler handler);
- [Export ("cancelAllCGImageGeneration")]
- void CancelAllCGImageGeneration ();
- [Field ("AVAssetImageGeneratorApertureModeCleanAperture")]
- NSString ApertureModeCleanAperture { get; }
- [Field ("AVAssetImageGeneratorApertureModeProductionAperture")]
- NSString ApertureModeProductionAperture { get; }
- [Field ("AVAssetImageGeneratorApertureModeEncodedPixels")]
- NSString ApertureModeEncodedPixels { get; }
- // 5.0 APIs
- [Since (5,0)]
- [Export ("requestedTimeToleranceBefore")]
- CMTime RequestedTimeToleranceBefore { get; set; }
- [Since (5,0)]
- [Export ("requestedTimeToleranceAfter")]
- CMTime RequestedTimeToleranceAfter { get; set; }
- #if !MONOMAC
- [Since (6,0)]
- [Export ("asset")]
- AVAsset Asset { get; }
- #endif
- }
-
- [Since (4,1)]
- [BaseType (typeof (NSObject))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetReader initWithAsset:error:] invalid parameter not satisfying: asset != ((void*)0)
- [DisableDefaultCtor]
- interface AVAssetReader {
- [Export ("asset")]
- AVAsset Asset { get; }
- [Export ("status")]
- AVAssetReaderStatus Status { get; }
- [Export ("error")]
- NSError Error { get; }
- [Export ("timeRange")]
- CMTimeRange TimeRange { get; set; }
- [Export ("outputs")]
- AVAssetReaderOutput [] Outputs { get; }
- [Static, Export ("assetReaderWithAsset:error:")]
- AVAssetReader FromAsset (AVAsset asset, out NSError error);
- [Export ("initWithAsset:error:")]
- IntPtr Constructor (AVAsset asset, out NSError error);
- [Export ("canAddOutput:")]
- bool CanAddOutput (AVAssetReaderOutput output);
- [Export ("addOutput:")]
- void AddOutput (AVAssetReaderOutput output);
- [Export ("startReading")]
- bool StartReading ();
- [Export ("cancelReading")]
- void CancelReading ();
- }
- [Since (4,1)]
- [BaseType (typeof (NSObject))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** initialization method -init cannot be sent to an abstract object of class AVAssetReaderOutput: Create a concrete instance!
- [DisableDefaultCtor]
- interface AVAssetReaderOutput {
- [Export ("mediaType")]
- string MediaType { get; }
- [Export ("copyNextSampleBuffer")]
- CMSampleBuffer CopyNextSampleBuffer ();
- [Export ("alwaysCopiesSampleData")]
- bool AlwaysCopiesSampleData { get; set; }
- }
- [Since (4,1)]
- [BaseType (typeof (AVAssetReaderOutput))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetReaderTrackOutput initWithTrack:outputSettings:] invalid parameter not satisfying: track != ((void*)0)
- [DisableDefaultCtor]
- interface AVAssetReaderTrackOutput {
- [Export ("track")]
- AVAssetTrack Track { get; }
- [Advice ("Use Create method")]
- [Static, Export ("assetReaderTrackOutputWithTrack:outputSettings:")]
- AVAssetReaderTrackOutput FromTrack (AVAssetTrack track, [NullAllowed] NSDictionary outputSettings);
- [Static, Wrap ("FromTrack (track, settings == null ? null : settings.Dictionary)")]
- AVAssetReaderTrackOutput Create (AVAssetTrack track, [NullAllowed] AudioSettings settings);
- [Static, Wrap ("FromTrack (track, settings == null ? null : settings.Dictionary)")]
- AVAssetReaderTrackOutput Create (AVAssetTrack track, [NullAllowed] AVVideoSettingsUncompressed settings);
- [Export ("initWithTrack:outputSettings:")]
- IntPtr Constructor (AVAssetTrack track, [NullAllowed] NSDictionary outputSettings);
- [Wrap ("this (track, settings == null ? null : settings.Dictionary)")]
- IntPtr Constructor (AVAssetTrack track, [NullAllowed] AudioSettings settings);
- [Wrap ("this (track, settings == null ? null : settings.Dictionary)")]
- IntPtr Constructor (AVAssetTrack track, [NullAllowed] AVVideoSettingsUncompressed settings);
- [Export ("outputSettings")]
- NSDictionary OutputSettings { get; }
- }
- [Since (4,1)]
- [BaseType (typeof (AVAssetReaderOutput))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetReaderAudioMixOutput initWithAudioTracks:audioSettings:] invalid parameter not satisfying: audioTracks != ((void*)0)
- [DisableDefaultCtor]
- interface AVAssetReaderAudioMixOutput {
- [Export ("audioTracks")]
- AVAssetTrack [] AudioTracks { get; }
- [Export ("audioMix", ArgumentSemantic.Copy)]
- AVAudioMix AudioMix { get; set; }
- [Advice ("Use Create method")]
- [Static, Export ("assetReaderAudioMixOutputWithAudioTracks:audioSettings:")]
- AVAssetReaderAudioMixOutput FromTracks (AVAssetTrack [] audioTracks, [NullAllowed] NSDictionary audioSettings);
- [Wrap ("FromTracks (audioTracks, settings == null ? null : settings.Dictionary)")]
- AVAssetReaderAudioMixOutput Create (AVAssetTrack [] audioTracks, [NullAllowed] AudioSettings settings);
- [Export ("initWithAudioTracks:audioSettings:")]
- IntPtr Constructor (AVAssetTrack [] audioTracks, [NullAllowed] NSDictionary audioSettings);
- [Wrap ("this (audioTracks, settings == null ? null : settings.Dictionary)")]
- IntPtr Constructor (AVAssetTrack [] audioTracks, [NullAllowed] AudioSettings settings);
- [Advice ("Use Settings property")]
- [Export ("audioSettings")]
- NSDictionary AudioSettings { get; }
- [Wrap ("AudioSettings")]
- AudioSettings Settings { get; }
- }
- [Since (4,1)]
- [BaseType (typeof (AVAssetReaderOutput))]
- // crash application if 'init' is called
- [DisableDefaultCtor]
- interface AVAssetReaderVideoCompositionOutput {
- [Export ("videoTracks")]
- AVAssetTrack [] VideoTracks { get; }
- [Export ("videoComposition", ArgumentSemantic.Copy)]
- AVVideoComposition VideoComposition { get; set; }
- [Advice ("Use Create method")]
- [Static]
- [Export ("assetReaderVideoCompositionOutputWithVideoTracks:videoSettings:")]
- AVAssetReaderVideoCompositionOutput WeakFromTracks (AVAssetTrack [] videoTracks, [NullAllowed] NSDictionary videoSettings);
- [Wrap ("WeakFromTracks (videoTracks, settings == null ? null : settings.Dictionary)")]
- [Static]
- AVAssetReaderVideoCompositionOutput Create (AVAssetTrack [] videoTracks, [NullAllowed] CVPixelBufferAttributes settings);
- [Export ("initWithVideoTracks:videoSettings:")]
- IntPtr Constructor (AVAssetTrack [] videoTracks, [NullAllowed] NSDictionary videoSettings);
- [Wrap ("this (videoTracks, settings == null ? null : settings.Dictionary)")]
- IntPtr Constructor (AVAssetTrack [] videoTracks, [NullAllowed] CVPixelBufferAttributes settings);
- [Export ("videoSettings")]
- NSDictionary WeakVideoSettings { get; }
- [Wrap ("WeakVideoSettings")]
- CVPixelBufferAttributes UncompressedVideoSettings { get; }
- }
- #if !MONOMAC
- [Since (6,0)]
- [BaseType (typeof (NSObject))]
- interface AVAssetResourceLoader {
- [Export ("delegate")]
- AVAssetResourceLoaderDelegate Delegate { get; }
- [Export ("delegateQueue")]
- DispatchQueue DelegateQueue { get; }
- [Export ("setDelegate:queue:")]
- void SetDelegate (AVAssetResourceLoaderDelegate resourceLoaderDelegate, DispatchQueue delegateQueue);
- }
- [Since (6,0)]
- [BaseType (typeof (NSObject))]
- [Model]
- [Protocol]
- interface AVAssetResourceLoaderDelegate {
- [Abstract]
- [Export ("resourceLoader:shouldWaitForLoadingOfRequestedResource:")]
- bool ShouldWaitForLoadingOfRequestedResource (AVAssetResourceLoader resourceLoader, AVAssetResourceLoadingRequest loadingRequest);
- }
- [Since (6,0)]
- [BaseType (typeof (NSObject))]
- interface AVAssetResourceLoadingRequest {
- [Export ("request")]
- NSUrlRequest Request { get; }
- [Export ("finished")]
- bool Finished { get; }
- [Export ("finishLoadingWithResponse:data:redirect:")]
- void FinishLoading (NSUrlResponse usingResponse, [NullAllowed] NSData data, [NullAllowed] NSUrlRequest redirect);
- [Export ("finishLoadingWithError:")]
- void FinishLoadingWithError (NSError error);
- [Export ("streamingContentKeyRequestDataForApp:contentIdentifier:options:error:")]
- NSData GetStreamingContentKey (NSData appIdentifier, NSData contentIdentifier, [NullAllowed] NSDictionary options, out NSError error);
- }
- #endif
- [Since (4,1)]
- [BaseType (typeof (NSObject))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetWriter initWithURL:fileType:error:] invalid parameter not satisfying: outputURL != ((void*)0)
- [DisableDefaultCtor]
- interface AVAssetWriter {
- [Export ("outputURL", ArgumentSemantic.Copy)]
- NSUrl OutputURL { get; }
- [Export ("outputFileType")]
- string OutputFileType { get; }
- [Export ("status")]
- AVAssetWriterStatus Status { get; }
- [Export ("error")]
- NSError Error { get; }
- [Export ("movieFragmentInterval")]
- CMTime MovieFragmentInterval { get; set; }
- [Export ("shouldOptimizeForNetworkUse")]
- bool ShouldOptimizeForNetworkUse { get; set; }
- [Export ("inputs")]
- AVAssetWriterInput [] inputs { get; }
- [Export ("metadata")]
- AVMetadataItem [] Metadata { get; set; }
- [Static, Export ("assetWriterWithURL:fileType:error:")]
- AVAssetWriter FromUrl (NSUrl outputUrl, string outputFileType, out NSError error);
- [Export ("initWithURL:fileType:error:")]
- IntPtr Constructor (NSUrl outputUrl, string outputFileType, out NSError error);
- [Export ("canApplyOutputSettings:forMediaType:")]
- bool CanApplyOutputSettings (NSDictionary outputSettings, string mediaType);
- [Wrap ("CanApplyOutputSettings (outputSettings == null ? null : outputSettings.Dictionary, mediaType)")]
- bool CanApplyOutputSettings (AudioSettings outputSettings, string mediaType);
- [Wrap ("CanApplyOutputSettings (outputSettings == null ? null : outputSettings.Dictionary, mediaType)")]
- bool CanApplyOutputSettings (AVVideoSettingsCompressed outputSettings, string mediaType);
- [Export ("canAddInput:")]
- bool CanAddInput (AVAssetWriterInput input);
- [Export ("addInput:")]
- void AddInput (AVAssetWriterInput input);
- [Export ("startWriting")]
- bool StartWriting ();
- [Export ("startSessionAtSourceTime:")]
- void StartSessionAtSourceTime (CMTime startTime);
- [Export ("endSessionAtSourceTime:")]
- void EndSessionAtSourceTime (CMTime endTime);
- [Export ("cancelWriting")]
- void CancelWriting ();
- [Export ("finishWriting")]
- [Obsolete ("Deprecated in iOS 6.0. Use the asynchronous FinishWriting(NSAction completionHandler) instead")]
- bool FinishWriting ();
- #if !MONOMAC
- [Since (6,0)]
- [Export ("finishWritingWithCompletionHandler:")]
- [Async]
- void FinishWriting (NSAction completionHandler);
- #endif
- [Export ("movieTimeScale")]
- int MovieTimeScale { get; set; }
- }
- [Since (4,1)]
- [BaseType (typeof (NSObject))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetWriterInput initWithMediaType:outputSettings:] invalid parameter not satisfying: mediaType != ((void*)0)
- [DisableDefaultCtor]
- interface AVAssetWriterInput {
- #if !MONOMAC
- [Since (6,0)]
- [Protected]
- [Export ("initWithMediaType:outputSettings:sourceFormatHint:")]
- IntPtr Constructor (string mediaType, [NullAllowed] NSDictionary outputSettings, CMFormatDescription sourceFormatHint);
- [Since (6,0)]
- [Wrap ("this (mediaType, outputSettings == null ? null : outputSettings.Dictionary, sourceFormatHint)")]
- IntPtr Constructor (string mediaType, [NullAllowed] AudioSettings outputSettings, CMFormatDescription sourceFormatHint);
- [Since (6,0)]
- [Wrap ("this (mediaType, outputSettings == null ? null : outputSettings.Dictionary, sourceFormatHint)")]
- IntPtr Constructor (string mediaType, [NullAllowed] AVVideoSettingsCompressed outputSettings, CMFormatDescription sourceFormatHint);
- [Since (6,0)]
- [Static, Internal]
- [Export ("assetWriterInputWithMediaType:outputSettings:sourceFormatHint:")]
- AVAssetWriterInput Create (string mediaType, [NullAllowed] NSDictionary outputSettings, CMFormatDescription sourceFormatHint);
- [Since (6,0)]
- [Static]
- [Wrap ("Create(mediaType, outputSettings == null ? null : outputSettings.Dictionary, sourceFormatHint)")]
- AVAssetWriterInput Create (string mediaType, [NullAllowed] AudioSettings outputSettings, CMFormatDescription sourceFormatHint);
- [Since (6,0)]
- [Static]
- [Wrap ("Create(mediaType, outputSettings == null ? null : outputSettings.Dictionary, sourceFormatHint)")]
- AVAssetWriterInput Create (string mediaType, [NullAllowed] AVVideoSettingsCompressed outputSettings, CMFormatDescription sourceFormatHint);
- #endif
- [Export ("mediaType")]
- string MediaType { get; }
- [Export ("outputSettings")]
- NSDictionary OutputSettings { get; }
- [Export ("transform")]
- CGAffineTransform Transform { get; set; }
- [Export ("metadata")]
- AVMetadataItem [] Metadata { get; set; }
- [Export ("readyForMoreMediaData")]
- bool ReadyForMoreMediaData { [Bind ("isReadyForMoreMediaData")] get; }
- [Export ("expectsMediaDataInRealTime")]
- bool ExpectsMediaDataInRealTime { get; set; }
- [Advice ("Use constructor or Create method")]
- [Static, Export ("assetWriterInputWithMediaType:outputSettings:")]
- AVAssetWriterInput FromType (string mediaType, [NullAllowed] NSDictionary outputSettings);
- [Static, Wrap ("FromType (mediaType, outputSettings == null ? null : outputSettings.Dictionary)")]
- AVAssetWriterInput Create (string mediaType, [NullAllowed] AudioSettings outputSettings);
- [Static, Wrap ("FromType (mediaType, outputSettings == null ? null : outputSettings.Dictionary)")]
- AVAssetWriterInput Create (string mediaType, [NullAllowed] AVVideoSettingsCompressed outputSettings);
- // Should be protected
- [Export ("initWithMediaType:outputSettings:")]
- IntPtr Constructor (string mediaType, [NullAllowed] NSDictionary outputSettings);
- [Wrap ("this (mediaType, outputSettings == null ? null : outputSettings.Dictionary)")]
- IntPtr Constructor (string mediaType, [NullAllowed] AudioSettings outputSettings);
- [Wrap ("this (mediaType, outputSettings == null ? null : outputSettings.Dictionary)")]
- IntPtr Constructor (string mediaType, [NullAllowed] AVVideoSettingsCompressed outputSettings);
- [Export ("requestMediaDataWhenReadyOnQueue:usingBlock:")]
- void RequestMediaData (DispatchQueue queue, NSAction action);
- [Export ("appendSampleBuffer:")]
- bool AppendSampleBuffer (CMSampleBuffer sampleBuffer);
- [Export ("markAsFinished")]
- void MarkAsFinished ();
- [Export ("mediaTimeScale")]
- int MediaTimeScale { get; set; }
- #if !MONOMAC
- [Since (6,0)]
- [Export ("sourceFormatHint")]
- CMFormatDescription SourceFormatHint { get; }
- #endif
- }
- [Since (4,1)]
- [BaseType (typeof (NSObject))]
- // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetWriterInputPixelBufferAdaptor initWithAssetWriterInput:sourcePixelBufferAttributes:] invalid parameter not satisfying: input != ((void*)0)
- [DisableDefaultCtor]
- interface AVAssetWriterInputPixelBufferAdaptor {
- [Export ("assetWriterInput")]
- AVAssetWriterInput AssetWriterInput { get; }
- [Export ("sourcePixelBufferAttributes")]
- NSDictionary SourcePixelBufferAttributes { get; }
- [Wrap ("SourcePixelBufferAttributes")]
- CVPixelBufferAttributes Attributes { get; }
- [Export ("pixelBufferPool")]
- CVPixelBufferPool PixelBufferPool { get; }
- [Advice ("Use Create method")]
- [Static, Export ("assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:")]
- AVAssetWriterInputPixelBufferAdaptor FromInput (AVAssetWriterInput input, [NullAllowed] NSDictionary sourcePixelBufferAttributes);
- [Static, Wrap ("FromInput (input, attributes == null ? null : attributes.Dictionary)")]
- AVAssetWriterInputPixelBufferAdaptor Create (AVAssetWriterInput input, [NullAllowed] CVPixelBufferAttributes attributes);
- [Export ("initWithAssetWriterInput:sourcePixelBufferAttributes:")]
- IntPtr Constructor (AVAssetWriterInput input, [NullAllowed] NSDictionary sourcePixelBufferAttributes);
- [Wrap ("this (input, attributes == null ? null : attributes.Dictionary)")]
- IntPtr Constructor (AVAssetWriterInput input, [NullAllowed] CVPixelBufferAttributes attributes);
- [Export ("appendPixelBuffer:withPresentationTime:")]
- bool AppendPixelBufferWithPresentationTime (CVPixelBuffer pixelBuffer, CMTime presentationTime);
- }
- [Since (4,0)]
- [BaseType (typeof (AVAsset), Name="AVURLAsset")]
- // 'init' returns NIL
- [DisableDefaultCtor]
- interface AVUrlAsset {
- [Export ("URL", ArgumentSemantic.Copy)]
- NSUrl Url { get; }
- [Advice ("Use Create or constructor")]
- [Static, Export ("URLAssetWithURL:options:")]
- AVUrlAsset FromUrl (NSUrl URL, [NullAllowed] NSDictionary options);
- [Static]
- [Wrap ("FromUrl (url, options == null ? null : options.Dictionary)")]
- AVUrlAsset Create (NSUrl url, [NullAllowed] AVUrlAssetOptions options);
- [Export ("initWithURL:options:")]
- IntPtr Constructor (NSUrl URL, [NullAllowed] NSDictionary options);
- [Wrap ("this (url, options == null ? null : options.Dictionary)")]
- IntPtr Constructor (NSUrl url, [NullAllowed] AVUrlAssetOptions options);
- [Export ("compatibleTrackForCompositionTrack:")]
- AVAssetTrack CompatibleTrack (AVCompositionTrack forCompositionTrack);
- [Field ("AVURLAssetPreferPreciseDurationAndTimingKey")]
- NSString PreferPreciseDurationAndTimingKey { get; }
- [Field ("AVURLAssetReferenceRestrictionsKey")]
- NSString ReferenceRestrictionsKey { get; }
- [Since (5,0)]
- [Static, Export ("audiovisualMIMETypes")]
- string [] AudiovisualMimeTypes { get; }
- [Since (5,0)]
- [Static, Export ("audiovisualTypes")]
- string [] AudiovisualTypes { get; }
- [Since (5,0)]
- [Static, Export ("isPlayableExtendedMIMEType:")]
- bool IsPlayable (string extendedMimeType);
- #if !MONOMAC
- [Since (6,0)]
- [Export ("resourceLoader")]
- AVAssetResourceLoader ResourceLoader { get; }
- #endif
- }
- [BaseType (typeof (NSObject))]
- // 'init' returns NIL
- [DisableDefaultCtor]
- interface AVAssetTrack {
- [Export ("trackID")]
- int TrackID { get; }
- [Export ("asset")]
- AVAsset Asset { get; }
- [Export ("mediaType")]
- string MediaType { get; }
- // Weak version
- [Export ("formatDescriptions")]
- NSObject [] FormatDescriptionsAsObjects { get; }
- [Wrap ("Array.ConvertAll (FormatDescriptionsAsObjects, l => CMFormatDescription.Create (l.Handle, false))")]
- CMFormatDescription[] FormatDescriptions { get; }
- [Export ("enabled")]
- bool Enabled { [Bind ("isEnabled")] get; }
- [Export ("selfContained")]
- bool SelfContained { [Bind ("isSelfContained")] get; }
- [Export ("totalSampleDataLength")]
- long TotalSampleDataLength { get; }
- [Export ("hasMediaCharacteristic:")]
- bool HasMediaCharacteristic (string mediaCharacteristic);
- [Export ("timeRange")]
- CMTimeRange TimeRange { get; }
- [Export ("naturalTimeScale")]
- int NaturalTimeScale { get; }
- [Export ("estimatedDataRate")]
- float EstimatedDataRate { get; }
- [Export ("languageCode")]
- string LanguageCode { get; }
- [Export ("extendedLanguageTag")]
- string ExtendedLanguageTag { get; }
- [Export ("naturalSize")]
- SizeF NaturalSize { get; }
- [Export ("preferredVolume")]
- float PreferredVolume { get; }
- [Export ("preferredTransform")]
- CGAffineTransform PreferredTransform { get; }
- [Export ("nominalFrameRate")]
- float NominalFrameRate { get; }
- [Export ("segments", ArgumentSemantic.Copy)]
- AVAssetTrackSegment [] Segments { get; }
- [Export ("segmentForTrackTime:")]
- AVAssetTrackSegment SegmentForTrackTime (CMTime trackTime);
- [Export ("samplePresentationTimeForTrackTime:")]
- CMTime SamplePresentationTimeForTrackTime (CMTime trackTime);
- [Export ("availableMetadataFormats")]
- string [] AvailableMetadataFormats { get; }
- [Export ("commonMetadata")]
- AVMetadataItem [] CommonMetadata { get; }
- [Export ("metadataForFormat:")]
- AVMetadataItem [] MetadataForFormat (string format);
- [Export ("isPlayable")]
- bool Playable { get; }
- }
- #if !MONOMAC
- [BaseType (typeof (NSObject))]
- interface AVMediaSelectionGroup {
- [Export ("options")]
- AVMediaSelectionOption [] Options { get; }
-
- [Export ("allowsEmptySelection")]
- bool AllowsEmptySelection { get; }
- [Export ("mediaSelectionOptionWithPropertyList:")]
- AVMediaSelectionOption GetMediaSelectionOptionForPropertyList (NSObject propertyList);
- [Static]
- [Export ("playableMediaSelectionOptionsFromArray:")]
- AVMediaSelectionOption [] PlayableMediaSelectionOptions (AVMediaSelectionOption [] source);
- [Static]
- [Export ("mediaSelectionOptionsFromArray:withLocale:")]
- AVMediaSelectionOption [] MediaSelectionOptions (AVMediaSelectionOption [] source, NSLocale locale);
- [Static]
- [Export ("mediaSelectionOptionsFromArray:withMediaCharacteristics:")]
- AVMediaSelectionOption [] MediaSelectionOptions (AVMediaSelectionOption [] source, NSString [] avmediaCharacteristics);
- [Static]
- [Export ("mediaSelectionOptionsFromArray:withoutMediaCharacteristics:")]
- AVMediaSelectionOption [] MediaSelectionOptionsExcludingCharacteristics (AVMediaSelectionOption [] source, NSString [] avmediaCharacteristics);
- }
- [BaseType (typeof (NSObject))]
- interface AVMediaSelectionOption {
- [Export ("mediaType")]
- string MediaType { get; }
- [Export ("mediaSubTypes")]
- NSNumber [] MediaSubTypes { get; }
- [Export ("playable")]
- bool Playable { [Bind ("isPlayable")] get; }
- [Export ("locale")]
- NSLocale Locale { get; }
- [Export ("commonMetadata")]
- AVMetadataItem [] CommonMetadata { get; }
- [Export ("availableMetadataFormats")]
- string [] AvailableMetadataFormats { get; }
- [Export ("hasMediaCharacteristic:")]
- bool HasMediaCharacteristic (string mediaCharacteristic);
- [Export ("metadataForFormat:")]
- AVMetadataItem [] GetMetadataForFormat (string format);
- [Export ("associatedMediaSelectionOptionInMediaSelectionGroup:")]
- AVMediaSelectionOption AssociatedMediaSelectionOptionInMediaSelectionGroup (AVMediaSelectionGroup mediaSelectionGroup);
- [Export ("propertyList")]
- NSObject PropertyList { get; }
- }
- #endif
- [Static]
- interface AVMetadata {
- [Field ("AVMetadataKeySpaceCommon")]
- NSString KeySpaceCommon { get; }
-
- [Field ("AVMetadataCommonKeyTitle")]
- NSString CommonKeyTitle { g…