| Index: ui/file_manager/video_player/js/video_player.js
|
| diff --git a/ui/file_manager/video_player/js/video_player.js b/ui/file_manager/video_player/js/video_player.js
|
| index b941805ccdc13c36163bf96b1d00ac8921ec3a69..ba8a8a5bf42fe8dcc65e8c808b5a02e51974d7f1 100644
|
| --- a/ui/file_manager/video_player/js/video_player.js
|
| +++ b/ui/file_manager/video_player/js/video_player.js
|
| @@ -112,10 +112,10 @@ FullWindowVideoControls.prototype.onPlaybackError_ = function(error) {
|
| if (this.casting)
|
| this.showErrorMessage('VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST');
|
| else
|
| - this.showErrorMessage('GALLERY_VIDEO_ERROR');
|
| + this.showErrorMessage('VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED');
|
| this.decodeErrorOccured = false;
|
| } else {
|
| - this.showErrorMessage('GALLERY_VIDEO_DECODING_ERROR');
|
| + this.showErrorMessage('VIDEO_PLAYER_PLAYBACK_ERROR');
|
| this.decodeErrorOccured = true;
|
| }
|
|
|
| @@ -406,7 +406,8 @@ VideoPlayer.prototype.loadVideo_ = function(video, opt_callback) {
|
| videoPlayerElement.removeAttribute('loading');
|
| console.error('Failed to initialize the video element.',
|
| error.stack || error);
|
| - this.controls_.showErrorMessage('GALLERY_VIDEO_ERROR');
|
| + this.controls_.showErrorMessage(
|
| + 'VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED');
|
| callback();
|
| }.bind(this));
|
| }.wrap(this));
|
| @@ -618,7 +619,7 @@ VideoPlayer.prototype.onCurrentCastDisappear_ = function() {
|
| this.currentSession_.removeUpdateListener(this.onCastSessionUpdateBound_);
|
| this.currentSession_ = null;
|
| }
|
| - this.controls.showErrorMessage('GALLERY_VIDEO_DECODING_ERROR');
|
| + this.controls.showErrorMessage('VIDEO_PLAYER_PLAYBACK_ERROR');
|
| this.unloadVideo();
|
| };
|
|
|
|
|