mirror of
https://github.com/videojs/video.js.git
synced 2024-12-12 11:15:04 +02:00
fix: error message should not be localized in the player class (#7776)
This commit is contained in:
parent
18bad57322
commit
75ea699273
@ -3408,7 +3408,7 @@ class Player extends Component {
|
|||||||
// show an error
|
// show an error
|
||||||
if (!sources.length) {
|
if (!sources.length) {
|
||||||
this.setTimeout(function() {
|
this.setTimeout(function() {
|
||||||
this.error({ code: 4, message: this.localize(this.options_.notSupportedMessage) });
|
this.error({ code: 4, message: this.options_.notSupportedMessage });
|
||||||
}, 0);
|
}, 0);
|
||||||
return;
|
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
|
// We need to wrap this in a timeout to give folks a chance to add error event handlers
|
||||||
this.setTimeout(function() {
|
this.setTimeout(function() {
|
||||||
this.error({ code: 4, message: this.localize(this.options_.notSupportedMessage) });
|
this.error({ code: 4, message: this.options_.notSupportedMessage });
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
||||||
// we could not find an appropriate tech, but let's still notify the delegate that this is it
|
// we could not find an appropriate tech, but let's still notify the delegate that this is it
|
||||||
|
Loading…
Reference in New Issue
Block a user