FLBrightcoveFactory

public enum FLBrightcoveFactory

Undocumented

  • Build Player call back type alias

    Declaration

    Swift

    public typealias BuilderResponse = (Result<BrightcoveAdPlayer, Error>) -> Void
  • API to build brightcove adplayer.

    Declaration

    Swift

    public static func buildPlayer(
        contentUrl: URL,
        adMetaDataUrl: String,
        adPlaybackPolicy: AdPlaybackPolicy?,
        palConfiguration: PALSessionConfiguration?,
        dataCollectionConfig: BrightcoveDataCollectionConfig? = nil,
        _ completion: @escaping FLBrightcoveFactory.BuilderResponse
    )

    Parameters

    contentUrl

    Play back url

    adMetaDataUrl

    AdMetaData url fetch ads meta data and thumbnail key frame data for the player

    adPlaybackPolicy

    Provide pollicy handler customize your ad play back.

    palConfiguration

    PAL session configuration to load nonce value with the player.

    dataCollectionConfig

    BrightcoveDataCollectionConfig to configure the Brightcove Data Collection API for tracking video and ad events.

    completion

    Return the call back either BrightcoveAdPlayer or Error.