Commit ced81ce9 authored by yoshiki's avatar yoshiki Committed by Commit bot

Video Player: Fix the condition of 'ended' property

Once the user tries starting the video, the video should not be 'ended'.

BUG=none
TEST=none

Review URL: https://codereview.chromium.org/517963002

Cr-Commit-Position: refs/heads/master@{#292617}
parent 39e36781
...@@ -119,7 +119,8 @@ CastVideoElement.prototype = { ...@@ -119,7 +119,8 @@ CastVideoElement.prototype = {
if (!this.castMedia_) if (!this.castMedia_)
return true; return true;
return this.castMedia_.idleReason === chrome.cast.media.IdleReason.FINISHED; return !this.playInProgress &&
this.castMedia_.idleReason === chrome.cast.media.IdleReason.FINISHED;
}, },
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment