1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-04 10:34:51 +02:00

fix: error message should not be localized in the player class (#7776)

This commit is contained in:
Grzegorz Blaszczyk 2022-05-31 21:50:27 +02:00 committed by GitHub
parent 18bad57322
commit 75ea699273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3408,7 +3408,7 @@ class Player extends Component {
// show an error
if (!sources.length) {
this.setTimeout(function() {
this.error({ code: 4, message: this.localize(this.options_.notSupportedMessage) });
this.error({ code: 4, message: this.options_.notSupportedMessage });
}, 0);
return;
}
@ -3447,7 +3447,7 @@ class Player extends Component {
// We need to wrap this in a timeout to give folks a chance to add error event handlers
this.setTimeout(function() {
this.error({ code: 4, message: this.localize(this.options_.notSupportedMessage) });
this.error({ code: 4, message: this.options_.notSupportedMessage });
}, 0);
// we could not find an appropriate tech, but let's still notify the delegate that this is it