PhoenixMediaProvider

@objc
public class PhoenixMediaProvider : NSObject, MediaEntryProvider

Undocumented

  • Undocumented

    Declaration

    Swift

    @objc
    public var sessionProvider: SessionProvider?
  • Undocumented

    Declaration

    Swift

    @objc
    public var assetId: String?
  • Undocumented

    Declaration

    Swift

    @objc
    public var type: AssetType
  • Undocumented

    Declaration

    Swift

    @objc
    public var refType: AssetReferenceType
  • Undocumented

    Declaration

    Swift

    @objc
    public var formats: [String]?
  • Undocumented

    Declaration

    Swift

    @objc
    public var fileIds: [String]?
  • Undocumented

    Declaration

    Swift

    @objc
    public var playbackContextType: PlaybackContextType
  • Undocumented

    Declaration

    Swift

    @objc
    public var networkProtocol: String?
  • Undocumented

    Declaration

    Swift

    @objc
    public var referrer: String?
  • Undocumented

    Declaration

    Swift

    public weak var responseDelegate: PKMediaEntryProviderResponseDelegate?
  • Undocumented

    Declaration

    Swift

    public var executor: RequestExecutor?
  • Undocumented

    Declaration

    Swift

    public override init()
  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(sessionProvider: SessionProvider?) -> Self

    Parameters

    sessionProvider

    This provider provider the ks for all wroking request. If ks is nil, the provider will load the meida with anonymous ks

    Return Value

    Self ( so you con continue set other parameters after it )

  • Required parameter

    Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(assetId: String?) -> Self

    Parameters

    assetId

    asset identifier

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(type: AssetType) -> Self

    Parameters

    type

    Asset Object type if it is Media Or EPG

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(refType: AssetReferenceType) -> Self

    Parameters

    refType

    Asset reference type

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(playbackContextType: PlaybackContextType) -> Self

    Parameters

    playbackContextType

    Trailer/Playback/StartOver/Catchup

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(formats: [String]?) -> Self

    Parameters

    formats

    Asset’s requested file formats, According to this formats array order the sources will be ordered in the mediaEntry According to this formats sources will be filtered when creating the mediaEntry

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(fileIds: [String]?) -> Self

    Parameters

    formats

    Asset’s requested file ids, According to this files array order the sources will be ordered in the mediaEntry According to this ids sources will be filtered when creating the mediaEntry

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(networkProtocol: String?) -> Self

    Parameters

    networkProtocol

    http/https

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(referrer: String?) -> Self

    Parameters

    referrer

    the referrer

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(executor: RequestExecutor?) -> Self

    Parameters

    executor

    executor which will be used to send request. default is USRExecutor

    Return Value

    Self

  • Declaration

    Swift

    @discardableResult
    @nonobjc
    public func set(responseDelegate: PKMediaEntryProviderResponseDelegate?) -> Self

    Parameters

    responseDelegate

    responseDelegate which will be used to get the response of the requests are being sent by the mediaProvider default is nil

    Return Value

    Self

  • This object is created before loading the media in order to make sure all required attributes are set and we are ready to load

    Declaration

    Swift

    public struct LoaderInfo
  • Declaration

    Swift

    @objc
    public func loadMedia(callback: @escaping (PKMediaEntry?, Error?) -> Void)
  • Undocumented

    Declaration

    Swift

    public func cancel()
  • Undocumented

    Declaration

    Swift

    public static func createMediaEntry(loaderInfo: LoaderInfo, context: OTTPlaybackContext, asset: OTTMediaAsset?) -> (PKMediaEntry?, NSError?)