Video Player and Audio Player: Make the controls robust while media is not attached
Media controls, which is used by the video player and the audio player, is asynchronously, attached a media to so we need to consider the time while the media is not attached yet. This patch adds following changes for such a time.
Major changes:
- Adds checks of attached media in operations. If no media is attached, just skip it rather than exception.
- Disables the controls at first. User can easily know that no media is attached yet.
BUG=none
TEST=Video player and audio player work
Review URL: https://codereview.chromium.org/
412103002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285238 0039d316-1c4b-4281-b951-d872f2087c98