Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVFoundationMBS class.

Previous items Next items

AVFoundationMBS.AVURLAssetHTTPCookiesKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 14.4 ✅ Yes ❌ No ❌ No ✅ Yes All
HTTP cookies that the AVURLAsset may send with HTTP requests.

Standard cross-site policy still applies: cookies will only be sent to domains to which they apply.

By default, an AVURLAsset will only have access to cookies in the client's default cookie storage that apply to the AVURLAsset's URL. You can supplement the cookies available to the assetvia use of this initialization option

HTTP cookies do not apply to non-HTTP(S) URLS.
In HLS, many HTTP requests (e.g., media, crypt key, variant index) might be issued to different paths or hosts.
In both of these cases, HTTP requests will be missing any cookies that do not apply to the AVURLAsset's URL.
This init option allows the AVURLAsset to use additional HTTP cookies for those HTTP(S) requests.

AVFoundationMBS.AVURLAssetPreferPreciseDurationAndTimingKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for AVAsset creations.
Example
dim options as new Dictionary
options.value(AVFoundationMBS.AVURLAssetPreferPreciseDurationAndTimingKey) = true
dim f as FolderItem = SpecialFolder.Desktop.Child("test.mov")
dim a as AVAssetMBS = AVURLAssetMBS.URLAssetWithFile(f, options)

MsgBox str(a.duration.Seconds)+" seconds with precision: "+str(a.providesPreciseDurationAndTiming)

The corresponding value is a boolean, contained in an NSValue object, that indicates whether the asset should be prepared to indicate a precise duration and provide precise random access by time.
True indicates that longer loading times are acceptable in cases in which precise timing is required. Such precision, however, may require additional parsing of the resource in advance of operations that make use of any portion of it, depending on the specifics of its container format.
Many container formats provide sufficient summary information for precise timing and do not require additional parsing to prepare for it; QuickTime movie files and MPEG-4 files are examples of such formats. Other formats do not provide sufficient summary information, and precise random access for them is possible only after a preliminary examination of a file's contents.
If you only intend that the asset be played, the default value of false will suffice (because AVPlayer supports approximate random access by time when full precision isn't available). If you intend to insert the asset into an AVMutableComposition object, precise random access is typically desirable, and the value of true is recommended.

AVFoundationMBS.AVURLAssetReferenceRestrictionsKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for AVAsset creations.

The corresponding value is a number wrapping an "AVAssetReferenceRestrictions" enum value—or the logical combination of multiple such values—that indicates the restrictions used by the asset when resolving references to external media data.
Some assets can contain references to media data stored outside the asset's container file, for example in another file. This key can be used to specify a policy to use when these references are encountered. If an asset contains one or more references of a type that is forbidden by the reference restrictions, loading of asset properties will fail. In addition, such an asset cannot be used with other AVFoundation modules, such as AVPlayerItem or AVAssetExportSession.

AVFoundationMBS.AVVideoAverageBitRateKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the average bit rate (as bits per second) used in encoding.
The corresponding value is a number.
Apple documentation says H.264 only.

Some examples using this method:

AVFoundationMBS.AVVideoCleanApertureHeightKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the clean aperture height.
The corresponding value is a number.

AVFoundationMBS.AVVideoCleanApertureHorizontalOffsetKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the clean aperture horizontal offset.
The corresponding value is a number.

AVFoundationMBS.AVVideoCleanApertureKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the clean aperture.
The corresponding value is a dictionary.

AVFoundationMBS.AVVideoCleanApertureVerticalOffsetKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the clean aperture vertical offset.
The corresponding value is a number.

AVFoundationMBS.AVVideoCleanApertureWidthKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the clean aperture width.
The corresponding value is a number.

AVFoundationMBS.AVVideoCodecAppleProRes422 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies that the video was encoded using the ProRes 422 Standard Definition encoder.
Files are identified with the .apcn extension.

AVFoundationMBS.AVVideoCodecAppleProRes4444 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies that the video was encoded using the Apple ProRes 4444 encoder.
Files are identified with the .ap4h extension.

Some examples using this method:

AVFoundationMBS.AVVideoCodecH264 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies that the video was encoded using H264.

Some examples using this method:

AVFoundationMBS.AVVideoCodecJPEG as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies that the video was encoded using the JPEG encoder.

Some examples using this method:

AVFoundationMBS.AVVideoCodecKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the name of the codec used to encode the video.
The corresponding value is a string; equivalent to CMVideoCodecType.

Some examples using this method:

AVFoundationMBS.AVVideoCodecTypeAppleProRes422 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values used to describe codecs for video capture.

The Apple ProRes422 video codec.

AVFoundationMBS.AVVideoCodecTypeAppleProRes4444 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values used to describe codecs for video capture.

The Apple ProRes4444 video codec.

AVFoundationMBS.AVVideoCodecTypeH264 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values used to describe codecs for video capture.

The H.264 video codec.

AVFoundationMBS.AVVideoCodecTypeHEVC as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values used to describe codecs for video capture.

The HEVC video codec.

AVFoundationMBS.AVVideoCodecTypeJPEG as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values used to describe codecs for video capture.

The JPEG video codec.

AVFoundationMBS.AVVideoColorPrimariesKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The key to identify color primaries in a color properties dictionary.

AVFoundationMBS.AVVideoColorPrimaries_EBU_3213 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values to use with AVVideoColorPrimariesKey.

AVFoundationMBS.AVVideoColorPrimaries_ITU_R_709_2 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values to use with AVVideoColorPrimariesKey.

AVFoundationMBS.AVVideoColorPrimaries_SMPTE_C as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the values to use with AVVideoColorPrimariesKey.

AVFoundationMBS.AVVideoColorPropertiesKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The key for a dictionary that contains properties specifying video color.

The dictionary must contain the keys AVVideoColorPrimariesKey, AVVideoTransferFunctionKey, and AVVideoYCbCrMatrixKey.

AVFoundationMBS.AVVideoCompressionPropertiesKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the compression properties.
The corresponding value is a Dictionary.

Some examples using this method:

AVFoundationMBS.AVVideoHeightKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the height of the video in pixels.
The corresponding value is a number.

Some examples using this method:

AVFoundationMBS.AVVideoMaxKeyFrameIntervalDurationKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Number (1 means key frames only, H.264 only)

AVFoundationMBS.AVVideoMaxKeyFrameIntervalKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the maximum interval between key frames.
The corresponding value is a number. 1 means key frames only.

AVFoundationMBS.AVVideoPixelAspectRatioHorizontalSpacingKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the pixel aspect ratio horizontal spacing.
The corresponding value is a number.

AVFoundationMBS.AVVideoPixelAspectRatioKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for the dictionary with video settings.

Specifies a key to access the pixel aspect ratio.
The corresponding value is a dictionary.

Previous items Next items

The items on this page are in the following plugins: MBS AVFoundation Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...