Correct condition and flag state for skipping PLAY request.
commitaf8a4054eab230950711b506c096a69b5ed162e4
authorfukino <fukino@chromium.org>
Mon, 29 Sep 2014 04:34:01 +0000 (28 21:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Sep 2014 04:35:31 +0000 (29 04:35 +0000)
treeeae30c78b6c81f7a2b81baaaef468b1b0fbb38d0
parent816f98b97b87b84e2e1e6cff7dd1f4da9749cc2c
Correct condition and flag state for skipping PLAY request.

* When PLAY request for casted video is skipped, this.playInProgress_ was not cleared and this inconsistent state prevented the video from being played. I cleared the flag in this case.
* When PAUSE reqeust is in progress, incoming PLAY request should not be skipped. So I added a condition to skip the PLAY request.

BUG=417520,417538
TEST=manually tested the steps described in both bugs.

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

Cr-Commit-Position: refs/heads/master@{#297137}
ui/file_manager/video_player/js/cast/cast_video_element.js