VideoAsset

@objcMembers
@objc(PESDKVideoAsset)
open class VideoAsset : NSObject

An ImageAsset object can be used together with an AssetManager to cache an AVAsset object and an optional user info dictionary.

Properties

  • An AVAsset object.

    Declaration

    Swift

    open var asset: AVAsset?
  • An optional user info dictionary to associate any metadata with this VideoAsset.

    Declaration

    Swift

    open var userInfo: [String : Any]?
  • Creates a new video asset for the given image and an associated user info dictionary.

    Declaration

    Swift

    public init(asset: AVAsset, userInfo: [String : Any]? = nil)

    Parameters

    asset

    AnAVAsset object.

    userInfo

    An optional user info dictionary.