AVPlayerItem.FromAsset Method

Definition

Overloads

FromAsset(AVAsset)

Factory method that creates an AVPlayerItem for the given asset.

FromAsset(AVAsset, NSString[])

Factory method that creates an AVPlayerItem for the given asset and loads the specified automaticallyLoadedAssetKeys.

FromAsset(AVAsset)

Factory method that creates an AVPlayerItem for the given asset.

[Foundation.Export("playerItemWithAsset:")]
public static AVFoundation.AVPlayerItem FromAsset (AVFoundation.AVAsset asset);
static member FromAsset : AVFoundation.AVAsset -> AVFoundation.AVPlayerItem

Parameters

asset
AVAsset

To be added.

This parameter can be null.

Returns

AVPlayerItem
Attributes

FromAsset(AVAsset, NSString[])

Factory method that creates an AVPlayerItem for the given asset and loads the specified automaticallyLoadedAssetKeys.

[Foundation.Export("playerItemWithAsset:automaticallyLoadedAssetKeys:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public static AVFoundation.AVPlayerItem FromAsset (AVFoundation.AVAsset asset, Foundation.NSString[] automaticallyLoadedAssetKeys);
static member FromAsset : AVFoundation.AVAsset * Foundation.NSString[] -> AVFoundation.AVPlayerItem

Parameters

asset
AVAsset

To be added.

This parameter can be null.

automaticallyLoadedAssetKeys
NSString[]

To be added.

This parameter can be null.

Returns

AVPlayerItem
Attributes

Applies to