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 20c101c75827a920589e2756d21156bde281c62f..c728b2bb78de5b3abac7e47e16e6a04648a45dc7 100644 |
--- a/ui/file_manager/video_player/js/video_player.js |
+++ b/ui/file_manager/video_player/js/video_player.js |
@@ -105,6 +105,15 @@ FullWindowVideoControls.prototype.toggleFullScreen_ = function() { |
}; |
/** |
+ * Media completion handler. |
+ */ |
+FullWindowVideoControls.prototype.onMediaComplete = function() { |
+ VideoControls.prototype.onMediaComplete.apply(this, arguments); |
+ if (!this.getMedia().loop) |
+ player.advance_(1); |
+}; |
+ |
+/** |
* @constructor |
*/ |
function VideoPlayer() { |