Protocols

The following protocols are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    public protocol MediaTailorPlayer : PALSessionClient, AdPlayer
  • Undocumented

    See more

    Declaration

    Swift

    public protocol MediaTailorPlayerBuilder : AnyObject
  • Communicate to MediaTailor for session initialization and ad tracking via network requests.

    This protocol defines the methods required for a MediaTailor session.

    • Manifest URL and tracking URL are fetched from MediaTailor server. and tracking metadata is updated periodically.
    • Manifest URL is used to fetch the playback URL for the media content, and tracking URL is used to fetch ad metadata for ad breaks.

    Note

    This protocol is designed to be used with MediaTailor’s ad insertion service, which provides dynamic ad insertion capabilities for media content.

    Note

    Manifest URL will be expired every 24 hours, so mediatailor session need to reinitialize the session after that period.
    See more

    Declaration

    Swift

    public protocol MediaTailorSession