Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1469)

Unified Diff: ui/file_manager/video_player/js/media_controls.js

Issue 611953002: Video Player: Don't show the loop message in unexpected timing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/video_player/css/media_controls.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/video_player/js/media_controls.js
diff --git a/ui/file_manager/video_player/js/media_controls.js b/ui/file_manager/video_player/js/media_controls.js
index 8d63495b2e60d3e47deef5da9cfb806d94d8ee51..3623772015fdd357c7d99e138ba1be5f05690c85 100644
--- a/ui/file_manager/video_player/js/media_controls.js
+++ b/ui/file_manager/video_player/js/media_controls.js
@@ -1028,7 +1028,15 @@ VideoControls.prototype.showIconFeedback_ = function() {
VideoControls.prototype.showTextBanner_ = function(identifier) {
this.textBanner_.removeAttribute('visible');
this.textBanner_.textContent = this.stringFunction_(identifier);
+
setTimeout(function() {
+ var onAnimationEnd = function(event) {
+ this.textBanner_.removeEventListener(
+ 'webkitAnimationEnd', onAnimationEnd);
+ this.textBanner_.removeAttribute('visible');
+ }.bind(this);
+ this.textBanner_.addEventListener('webkitAnimationEnd', onAnimationEnd);
+
this.textBanner_.setAttribute('visible', 'true');
}.bind(this), 0);
};
« no previous file with comments | « ui/file_manager/video_player/css/media_controls.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698