Skip to content

v1.15.5

Choose a tag to compare

@hps1978 hps1978 released this 29 Aug 11:23
dfc5b73

New onHttpError callback prop to report HTTP errors related to playback.

/**

  • @callback OTVPlayer.props.onHttpError
  • @summary Callback set by application to handle event onHttpError.
  • @PARAM {Object} event The event object.
  • @PARAM {string} event.url URL on which the error was detected.
  • @PARAM {Date} event.date Timestamp of the response / error.
  • @PARAM {number} event.statusCode Status code (>= 400) of the error.
  • @PARAM {string} event.message Error message in response.
  • @PARAM {Object} event.platform Optional platform specific error details
  • @PARAM {string} event.platform.name Name of the platform. Android | iOS | Web.
  • @PARAM {Array} event.platform.data String Array of additional error data.
    */

Limitations
Web: No support for Safari browser and HLS stream errors

iOS: Due to the black box nature of this environment, it is not possible to report the exact URL that error was triggered against. Instead the url field will contain the current source .m3u8 playlist.