PlayerCacheLoaderManager

public class PlayerCacheLoaderManager : NSObject, AVAssetResourceLoaderDelegate, PlayerCacheLoaderDelegate

多媒体边下边播缓存管理器

VIMediaCache

  • Undocumented

    Declaration

    Swift

    public static let playerCacheScheme: String
  • Undocumented

    Declaration

    Swift

    public weak var delegate: PlayerCacheLoaderManagerDelegate?
  • Undocumented

    Declaration

    Swift

    override public init()
  • Undocumented

    Declaration

    Swift

    public func cleanCache()
  • Undocumented

    Declaration

    Swift

    public func cancelLoaders()
  • Undocumented

    Declaration

    Swift

    public static func assetURL(url: URL) -> URL
  • Undocumented

    Declaration

    Swift

    public func urlAsset(url: URL) -> AVURLAsset
  • Undocumented

    Declaration

    Swift

    public func playerItem(url: URL) -> AVPlayerItem

AVAssetResourceLoaderDelegate

  • Undocumented

    Declaration

    Swift

    public func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) -> Bool
  • Undocumented

    Declaration

    Swift

    public func resourceLoader(_ resourceLoader: AVAssetResourceLoader, didCancel loadingRequest: AVAssetResourceLoadingRequest)

PlayerCacheLoaderDelegate