Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVPlayerItemMBS class.
AVPlayerItemMBS.accessLog as AVPlayerItemAccessLogMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An object that represents a snapshot of the network access log. The returned value can be nil.
If the method returns nil, there is no logging information currently available for the player item.
AVPlayerItemMBS.addOutput(output as AVPlayerItemOutputMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
output: The player item output object to associate with the item.
When you add an AVPlayerItemOutput object to an item, the samples associated with that output object are processed according to the rules for mixing, composing, or excluding content that the AVPlayer object honors for the specific media type. For example, video media is composed according to the instructions provided by the player item's video composition object and audio media is mixed according to the parameters of its audio mix object.
Available in OS X v10.8 and later.
AVPlayerItemMBS.automaticallyLoadedAssetKeys as String()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The value of each key in automaticallyLoadedAssetKeys will be automatically be loaded by the asset before the receiver achieves the status AVPlayerItemStatusReadyToPlay; i.e. when the item is ready to play, the value of invoking statusOfValueForKey on the asset property value will be AVKeyValueStatusLoaded. If loading of any of the values fails, the status property of the receiver will change to AVPlayerItemStatusFailed.
Available in OS X v10.9 and later.
AVPlayerItemMBS.cancelContentAuthorizationRequest
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Calling this method while a content authorization request is pending will cause that request to be cancelled and its completion handler to be invoked with a status of AVContentAuthorizationCancelled.
This method does not block.
AVPlayerItemMBS.cancelPendingSeeks
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Use this method to cancel and release the completion handlers of pending seeks.
The finished parameter of the completion handlers will be set to false.
AVPlayerItemMBS.Constructor(asset as AVAssetMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
AVPlayerItemMBS.Constructor(asset as AVAssetMBS, automaticallyLoadedAssetKeys() as string)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
asset: An instance of AVAsset.
automaticallyLoadedAssetKeys: An array of strings, each representing a property defined by AVAsset.
Returns an initialized instance of AVPlayerItem.
The value of each key in automaticallyLoadedAssetKeys will be automatically be loaded by the underlying AVAsset before the receiver achieves the status AVPlayerItemStatusReadyToPlay; i.e. when the item is ready to play, the value returned by invoking the asset property's statusOfValueForKey method will be one of the terminal status values, either AVKeyValueStatusLoaded, AVKeyValueStatusFailed, or AVKeyValueStatusCancelled.
Important: The asset property keys "playable" and "compatibleWithSavedPhotosAlbum" are not eligible for automatic loading by AVPlayerItem. You must use the AVAsset method loadValuesAsynchronouslyForKeys:completionHandler: to load the values of those properties asynchronously.
Available in OS X v10.9 and later.
See also:
AVPlayerItemMBS.Constructor(file as folderitem)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
file: A folderitem.
This method immediately returns the item, but with the status AVPlayerItemStatusUnknown.
If the URL contains valid data that can be used by the player item, the status later changes to AVPlayerItemStatusReadyToPlay.
If the URL contains no valid data or otherwise can't be used by the player item, the status later changes to AVPlayerItemStatusFailed.
See also:
AVPlayerItemMBS.Constructor(URL as string)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
URL: An URL.
This method immediately returns the item, but with the status AVPlayerItemStatusUnknown.
If the URL contains valid data that can be used by the player item, the status later changes to AVPlayerItemStatusReadyToPlay.
If the URL contains no valid data or otherwise can't be used by the player item, the status later changes to AVPlayerItemStatusFailed.
See also:
AVPlayerItemMBS.copy as AVPlayerItemMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVPlayerItemMBS.errorLog as AVPlayerItemErrorLogMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An object that represents a snapshot of the error log. The returned value can be nil.
If the method returns nil, there is no logging information currently available for the player item.
AVPlayerItemMBS.loadedTimeRanges as CMTimeRangeMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVPlayerItemMBS.outputs as AVPlayerItemOutputMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This property contains the collection of AVPlayerItemOutput objects used to transfer media data to the player object.
Available in OS X v10.8 and later.
AVPlayerItemMBS.removeOutput(output as AVPlayerItemOutputMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
output: The player item output object to remove.
Available in OS X v10.8 and later.
AVPlayerItemMBS.requestContentAuthorizationAsynchronously(timeoutInterval as Double, tag as Variant = nil)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
timeoutInterval: The maximum amount of time in seconds to wait for the user to authorize the content before calling the handler block with a timeout result.
Calling this method will present the user with the opportunity to authorize the content (for example, by launching iTunes and prompting the user to enter their Apple ID and password).
When the user has taken action (or the timeout has elapsed), the AVFoundationMBS.requestContentAuthorizationCompleted event is invoked. You determine the status of the authorization attempt by checking the value of the contentAuthorizationRequestStatus property.
Even if the status indicates a completed authorization, the content may still not be authorized (for example, if the user authorizes an Apple ID other than that associated with the content). You should re-check the value of contentAuthorizationRequestStatus to verify whether the content has actually been authorized before continuing. It is not necessary to call this method if the value of contentAuthorizationRequestStatus is already true.
With tag you can pass any value you like to the event later. This can be for example an object reference or a number in an array. Be aware that the reference to this tag value is kept until the event is called and can cause memory reference cycles.
AVPlayerItemMBS.textStyleRules as AVTextStyleRuleMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You can use this property to assign an array of AVTextStyleRule objects to the item. Each rule specifies both the style information and the range of text to which that styling should apply.
Available in OS X v10.9 and later.
AVPlayerItemMBS.timedMetadata as AVMetadataItemMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The array contains instances of AVMetadataItem.
AVPlayerItemMBS.tracks as AVPlayerItemTrackMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This property can change dynamically during playback.
You can observe this property using key-value observing.
The items on this page are in the following plugins: MBS AVFoundation Plugin.