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

Unified Diff: ui/file_manager/video_player/js/cast/cast_video_element.js

Issue 517963002: Video Player: Fix the condition of 'ended' property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | 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/cast/cast_video_element.js
diff --git a/ui/file_manager/video_player/js/cast/cast_video_element.js b/ui/file_manager/video_player/js/cast/cast_video_element.js
index f436c9a0a0febe3d33aa01af3f8ac2b802262aec..2364e3cb2eae74423c4a11b8bf832a52968b76ae 100644
--- a/ui/file_manager/video_player/js/cast/cast_video_element.js
+++ b/ui/file_manager/video_player/js/cast/cast_video_element.js
@@ -119,7 +119,8 @@ CastVideoElement.prototype = {
if (!this.castMedia_)
return true;
- return this.castMedia_.idleReason === chrome.cast.media.IdleReason.FINISHED;
+ return !this.playInProgress &&
+ this.castMedia_.idleReason === chrome.cast.media.IdleReason.FINISHED;
},
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698