Adaptive Media Player

AmpCore Docs

Protocols

The following protocols are available globally.

  • This protocol receives the AmpLogger events

    See more

    Declaration

    Swift

    public protocol AmpLoggerInspector
  • Protocol for external playback awareness, e.g. Chromecast

    Declaration

    Swift

    public protocol ExternalPlaybackDelegate
  • This is the protocol to create a custom implementation of fullscreen handling management

    See more

    Declaration

    Swift

    public protocol FullscreenManager
  • This is the protocol to create a custom implementation of fullscreen handling

    See more

    Declaration

    Swift

    public protocol FullscreenHandler
  • Protocol used to receive player events.

    See more

    Declaration

    Swift

    @objc
    public protocol PlayerEventObserver
  • Protocol used to receive SharePlay events.

    See more

    Declaration

    Swift

    @available(iOS 15, tvOS 15, *)
    @objc
    public protocol SharePlayEventObserver
  • This protocol needs to be implemented for creating a handler for a specific AmpCore/StreamType

    See more

    Declaration

    Swift

    @objc
    public protocol StreamHandler