The doc
Here you can find the documentation of the media player.
Embedded integration
Installation
Include the following files in your project:
Usage
Include the following code in your project:
Function list
Below you can find a list of functions that are available for the media player:
Function | Description |
---|---|
Player.load(sources or data from the API call) |
Loads the source(s) into the media player |
Player.setTitle(title) |
Set the player title |
Player.setPoster(poster URL) |
Set the player poster image |
Player.dispose() |
Disposes the media player |
Player.enableDRM(extraData) |
Enables DRM for the media player |
Player.plugin.play() |
Play video |
Player.plugin.pause() |
Pause video |
Player.plugin.currentTime(time) |
Get or set the current time in seconds of the video |
Player.plugin.duration() |
Get the duration of the video in seconds |
Player.plugin.volume(volume) |
Get or set the volume of the video |
Player.plugin.muted(muted) |
Get or set the muted state of the video |
Global player reference
The player is available globally in the window object window.Player
.
VideoJS reference
The videoJS object is available in the window.Player.plugin
object.
VideoJS Documentation
Please refer to the videoJS documentation for more information.
Remote integration
This integration allows for controlling the default Maxx-XS media player from a remote control script.
Installation
Include the following files in your project:
Optional branding, update the iframe URL with the media player CSS URL location.
Demo branding CSS: https://media.maxx-xs.nl/mediaplayer/videojs/css/custom-demo.css
Adding the CSS using the ?style=. The value must be URL-encoded: https://media.maxx-xs.nl/mediaplayer/?style={CSS URL}
Usage
Include the following code in your project:
Function list
Below you can find a list of functions that are available for the player remote:
Function | Description |
---|---|
playerRemote.load(data from the API call) |
Loads the source(s) into the media player |
playerRemote.play() |
Play video |
playerRemote.pause() |
Pause video |