THEOplayer React Native Connectors
    Preparing search index...

    Main Adapter class. All specific player adapters should extend this class specifying a player class.

    The Adapter works as the 'glue' between the player and YOUBORA acting both as event translator and as proxy for the Plugin to get info from the player.

    Adapter

    youbora

    Either an instance of the player or a string containing an ID.

    Index

    Constructors

    Properties

    player: THEOplayer

    Methods

    • Check readyState video properties

      Parameters

      • readyState: number
      • triggeredEvent: string

      Returns any

    • This function disposes the currend adapter, removes player listeners and drops references.

      Returns any

    • Emits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.

      Parameters

      • Optionalparams: object

        Object of key:value params to add to the request.

      • OptionalconvertFromSeek: boolean

        If true, will convert current seek to buffer.

      • OptionaltriggeredEvent: string
      • OptionaltriggeredByStateProperty: boolean

      Returns any

    • Emits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.

      Parameters

      • Optionalparams: object

        Object of key:value params to add to the request.

      • OptionaltriggeredEvent: string

      Returns any

    • Emits related event and set flags if current status is valid. ie: won't sent init if isStarted is already true.

      Parameters

      • Optionalparams: object

        Object of key:value params to add to the request.

      • OptionaltriggeredEvent: string

      Returns any

    • Emits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.

      Parameters

      • Optionalparams: object

        Object of key:value params to add to the request.

      • OptionaltriggeredEvent: string

      Returns any

    • Emits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.

      Parameters

      • Optionalparams: object

        Object of key:value params to add to the request.

      • OptionaltriggeredEvent: string

      Returns any

    • Emits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.

      Parameters

      • Optionalparams: object

        Object of key:value params to add to the request.

      • OptionaltriggeredEvent: string

      Returns any

    • Emits related event and set flags if current status is valid. ie: won't sent start if isStarted is already true.

      Parameters

      • Optionalparams: object

        Object of key:value params to add to the request.

      • OptionaltriggeredEvent: string

      Returns any

    • Creates a new PlayheadMonitor at this.monitor.

      Parameters

      • monitorBuffers: boolean

        If true, it will monitor buffers.

      • monitorSeeks: boolean

        If true, it will monitor seeks.

      • Optionalinterval: number

        The interval time in ms.

      Returns any

    • Parameters

      • OptionalintervalMilliseconds: number

      Returns any

    • Override to create event binders. It's a good practice when implementing a new Adapter to create intermediate methods and call those when player events are detected instead of just calling the fire* methods. This will allow future users of the Adapter to customize its behaviour by overriding these methods.

      Returns any

      registerListeners: function () {
      this.player.addEventListener('start', this.onStart.bind(this))
      },

      onStart: function (e) {
      this.emit('start')
      }