-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Description
plugin initializing with video js options is not working.
Steps to reproduce
just do:
import videojs from 'video.js';
import 'videojs-errors';
const options = {
plugins: {
errors: {
errors: {
FOO: {
headline: 'headline',
message: 'This is a custom error message'
}
}
}
}
};
const player = videojs(element, options, () => {
setTimeout(() => {
console.log(player.errors.getAll()); // contains FOO error
player.error({code: 'FOO'}); // empty error screen appears
},2000);
});
Results
Expected
custom error should be visible
Actual
error screen appears empty (except a white X)
Error output
Additional Information
videojs
6.8
errors plugin
4.1
Metadata
Metadata
Assignees
Labels
No labels