Developer Guide Javascript API Reference Developer Tools Release Notes

A Custom Error Message

A demo of how users can control player behavior when an error occurs.

const playerInstance = jwplayer('player').setup({
  file: 'not-a-real-video-file.mp4',
  displaytitle: false,
  displaydescription: false

const handleError = () => {

// Load custom video file on error
playerInstance.on('error', handleError);

let debounce;

// Also load custom video file on buffer
playerInstance.on('buffer', function() {
  debounce = setTimeout(handleError, 5000);

playerInstance.on('play', function() {
This player implementation is a Proof of Concept only provided to show the possibilities of the JW Player and Platform and should not be taken as an offer to create, edit or maintain custom integration or development.