AVPlayerItem.FromAsset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromAsset(AVAsset) |
Factory method that creates an AVPlayerItem for the given |
FromAsset(AVAsset, NSString[]) |
Factory method that creates an AVPlayerItem for the given |
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
Returns
- Attributes
Applies to
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
Returns
- Attributes