API reference

Overview

This is the API reference which presents every RxPlayer API in a single page.

The point of this page is to provide an easier-to-navigate page than the API documentation for when you're already familiar with it.

API are splitted here in multiple categories depending on if they are properties, methods, events and so on.

Constructor

Constructor options

  • videoElement: specifies the media element on which the content will play.

  • baseBandwidth: Base value for the bandwidth calculated by the RxPlayer.

  • wantedBufferAhead: Set the default buffering goal.

  • maxBufferAhead: Set the default maximum kept buffer ahead of the current position, in seconds.

  • maxBufferBehind: Set the default maximum kept buffer before the current position, in seconds.

  • maxVideoBufferSize: Set the default maximum size the video buffer can take in the memory, in kilobytes (kb).

  • videoResolutionLimit: Limit the maximum video resolution according to the element's or screen's resolution.

  • throttleVideoBitrateWhenHidden: Limit the maximum video bitrate when the current video is hidden to the user.

loadVideo options

Static methods

  • addFeatures: Add features to the RxPlayer (e.g.: multithreading, offline playback etc.).

Methods

Static Properties

  • version: The current version of the RxPlayer.

  • LogLevel: Update the verbosity of the RxPlayer logger.

  • ErrorTypes: All Error types that can be encountered.

  • ErrorCodes: All Error codes that can be encountered.

Events

Error types

Tools

Page List