Share via


AVPlayerItem.FromAsset 方法

定义

重载

FromAsset(AVAsset)

为给定 assetAVPlayerItem 创建 的工厂方法。

FromAsset(AVAsset, NSString[])

工厂方法,用于为给定 asset 创建 AVPlayerItem 并加载指定的 automaticallyLoadedAssetKeys

FromAsset(AVAsset)

为给定 assetAVPlayerItem 创建 的工厂方法。

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

参数

asset
AVAsset

内容待定。

此参数可以为 null

返回

属性

适用于

FromAsset(AVAsset, NSString[])

工厂方法,用于为给定 asset 创建 AVPlayerItem 并加载指定的 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

参数

asset
AVAsset

内容待定。

此参数可以为 null

automaticallyLoadedAssetKeys
NSString[]

内容待定。

此参数可以为 null

返回

属性

适用于