Other Protocols

The following protocols are available globally.

  • An AdBreak is an object that represents a collection of ads that are scheduled at a certain time.

    See more

    Declaration

    Swift

    @objc(THEOplayerAdBreak)
    public protocol AdBreak_Objc
  • An Ad is an abstract object that represents a single ad, which is a creative in the VAST specification.

    Remark

    See LinearAd and NonLinearAd
    See more

    Declaration

    Swift

    @objc(THEOplayerAd)
    public protocol Ad_Objc
  • Represents a linear ad in the VAST specification. It extends the properties of the Ad object.

    See more

    Declaration

    Swift

    @objc(THEOplayerLinearAd)
    public protocol LinearAd_Objc : Ad_Objc
  • Represents a non-linear ad in the VAST specification. It extends the properties of the Ad object.

    See more

    Declaration

    Swift

    @objc(THEOplayerNonLinearAd)
    public protocol NonLinearAd_Objc : Ad_Objc
  • An ad that is scheduled to appear at a certain point.

    See more

    Declaration

    Swift

    @objc(THEOplayerScheduledAd)
    public protocol ScheduledAd_Objc
  • A GoogleImaAd is a concrete implementation of an Ad which represents a Google IMA ad.

    See more

    Declaration

    Swift

    @objc(THEOplayerGoogleImaAd)
    public protocol GoogleImaAd_Objc : Ad_Objc
  • Represents the list of universal ad ID information of the selected creative for the ad.

    See more

    Declaration

    Swift

    @objc(THEOplayerUniversalAdId)
    public protocol UniversalAdId
  • The Ads object helps you configure and control ads within THEOplayer.

    See more

    Declaration

    Swift

    @objc(THEOplayerAds)
    public protocol Ads_Objc
  • Represents information regarding content with dynamically inserted advertisements.

    See more

    Declaration

    Swift

    public protocol GoogleDAI
  • Represents information regarding content with dynamically inserted advertisements.

    See more

    Declaration

    Swift

    @objc(THEOplayerGoogleDAI)
    public protocol GoogleDAI_Objc
  • Represents a companion ad which is displayed besides the player.

    Remark

    It doesn’t extend the properties of Ad.
    See more

    Declaration

    Swift

    @objc(THEOplayerCompanionAd)
    public protocol CompanionAd_Objc
  • An error related to content protection.

    See more

    Declaration

    Swift

    @objc(THEOplayerContentProtectionError)
    public protocol ContentProtectionError_Objc : THEOError
  • Exposes the dispatchEvent method

    Declaration

    Swift

    @objc
    public protocol DispatchDispatch
  • Factory pattern to createContentProtectionIntegration.

    Declaration

    Swift

    @objc(THEOplayerContentProtectionIntegrationFactory)
    public protocol ContentProtectionIntegrationFactory_Objc
  • A MediaTrackList lists all available MediaTrack objects that the player can play. It contains MediaTrack objects, which are either AudioTracks or VideoTracks.

    See more

    Declaration

    Swift

    @objc(THEOplayerMediaTrackList)
    public protocol MediaTrackList_Objc
  • A VideoTrackList lists all available VideoTrack objects that the player can play.

    See more

    Declaration

    Swift

    @objc(THEOplayerVideoTrackList)
    public protocol VideoTrackList_Objc : MediaTrackList_Objc
  • An AudioTrackList lists all available AudioTrack objects that the player can play.

    See more

    Declaration

    Swift

    @objc(THEOplayerAudioTrackList)
    public protocol AudioTrackList_Objc : MediaTrackList_Objc
  • A MediaTrack is an element that represents a single video or audio track that can be played by the player.

    See more

    Declaration

    Swift

    @objc(THEOplayerMediaTrack)
    public protocol MediaTrack_Objc : Track_Objc
  • A VideoTrack object is an element that represents a single video track that can be played by the player.

    Declaration

    Swift

    @objc(THEOplayerVideoTrack)
    public protocol VideoTrack_Objc : MediaTrack_Objc
  • An AudioTrack object is an element that represents a single audio track that can be played by the player.

    See more

    Declaration

    Swift

    @objc(THEOplayerAudioTrack)
    public protocol AudioTrack_Objc : MediaTrack_Objc
  • The Network API.

    See more

    Declaration

    Swift

    @objc(THEOplayerNetwork)
    public protocol Network_Objc
  • Helps configure the settings when PresentationMode.pictureInPicture is active.

    See more

    Declaration

    Swift

    @objc(THEOplayerPictureInPicture)
    public protocol PictureInPicture_Objc
  • A TextTrackCue object represents an individual cue and provides methods and properties to access the data and events to act on changes to cue state. Depending on the TextTrack’s type, a cue might have different properties.

    See more

    Declaration

    Swift

    @objc(THEOplayerTextTrackCue)
    public protocol TextTrackCue_Objc
  • Web Video Text Tracks cue.

    Remark

    The content type is String.
    See more

    Declaration

    Swift

    @objc(THEOplayerWebVttCue)
    public protocol WebVttCue_Objc : TextTrackCue_Objc
  • ID3 Text Track cue. Content type is [String:String].

    Declaration

    Swift

    @objc(THEOplayerId3Cue)
    public protocol Id3Cue_Objc : TextTrackCue_Objc
  • Represents the HLS date range cue which is a part of the metadata text track.

    See more

    Declaration

    Swift

    @objc(THEOplayerDateRangeCue)
    public protocol DateRangeCue_Objc : TextTrackCue_Objc
  • A TextTrackList lists all available TextTrack objects that the player can display.

    See more

    Declaration

    Swift

    @objc(THEOplayerTextTrackList)
    public protocol TextTrackList_Objc
  • A TextTrack object is an element that represents a single text track that can be displayed in the player.

    See more

    Declaration

    Swift

    @objc(THEOplayerTextTrack)
    public protocol TextTrack_Objc : Track_Objc
  • A track object.

    Remark

    • Either a TextTrack or a MediaTrack.
    • A specific track type (e.g. TextTrack) will always be used.
    See more

    Declaration

    Swift

    @objc(THEOplayerTrack)
    public protocol Track_Objc
  • The base TextTrackCue Event protocol.

    Declaration

    Swift

    @objc(THEOplayerCueEventProtocol)
    public protocol CueEventProtocol_Objc : EventProtocol
  • The base TextTrack cue Event protocol.

    Declaration

    Swift

    @objc(THEOplayerTextTrackCueEventProtocol)
    public protocol TextTrackCueEventProtocol_Objc : EventProtocol
  • The base Track Event protocol.

    Declaration

    Swift

    @objc(THEOplayerTrackEventProtocol)
    public protocol TrackEventProtocol_Objc : EventProtocol
  • Classes that comform to this protocol can add and remove event listeners.

    See more

    Declaration

    Swift

    @objc(THEOplayerEventDispatcherProtocol)
    public protocol EventDispatcherProtocol_Objc
  • The DRMConfiguration object provides a set of DRM parameters for DRM streaming.

    See more

    Declaration

    Swift

    @objc(THEOplayerDRMConfiguration)
    public protocol DRMConfiguration_Objc
  • The FairPlay DRM configuration.

    Declaration

    Swift

    @objc(THEOplayerFairPlayDRMConfigurationProtocol)
    public protocol FairPlayDRMConfigurationProtocol_Objc : DRMConfiguration_Objc
  • The Widevine DRM configuration.

    Declaration

    Swift

    @objc(THEOplayerWidevineDRMConfigurationProtocol)
    public protocol WidevineDRMConfigurationProtocol_Objc : DRMConfiguration_Objc
  • Chromecast, also known as Google Cast, is a casting device designed by Google.

    See more

    Declaration

    Swift

    public protocol InternalCastIntegration : InternalContentPlayerIntegration
  • The caching API allows to store a streaming source on the user’s device.

    See more

    Declaration

    Swift

    @objc(THEOplayerCache)
    public protocol Cache_Objc
  • Represents a caching task.

    See more

    Declaration

    Swift

    @objc(THEOplayerCachingTask)
    public protocol CachingTask_Objc
  • The caching task license controller which can be used to renew the license.

    See more

    Declaration

    Swift

    @objc(THEOplayerCachingTaskLicense)
    public protocol CachingTaskLicense_Objc
  • The AirPlay API.

    See more

    Declaration

    Swift

    @objc(THEOplayerAirplay)
    public protocol Airplay_Objc
  • The Cast object helps you configure and control casting to external devices with THEOplayer.

    See more

    Declaration

    Swift

    @objc(THEOplayerCast)
    public protocol Cast_Objc
  • Chromecast, also known as Google Cast, is a casting device designed by Google.

    See more

    Declaration

    Swift

    @objc(THEOplayerChromecast)
    public protocol Chromecast_Objc
  • The Related Content API can be used to show new content related to the current content.

    See more

    Declaration

    Swift

    @objc(THEOplayerRelatedContent)
    public protocol RelatedContent_Objc
  • The Fullscreen object helps you configure the settings of the fullscreen mode.

    See more

    Declaration

    Swift

    @objc(THEOplayerFullscreen)
    public protocol Fullscreen_Objc
  • The fullscreen delegate which allows control over the presentation of the fullscreen view controller.

    See more

    Declaration

    Swift

    @objc(THEOplayerFullscreenPresentationDelegate)
    public protocol FullscreenPresentationDelegate
  • API for the Yospace pre-integration.

    See more

    Declaration

    Swift

    @objc(THEOplayerYospace)
    public protocol Yospace_Objc