| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/blink/webmediaplayer_impl.h" | 5 #include "media/blink/webmediaplayer_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 383 |
| 384 #if defined(OS_ANDROID) // WMPI_CAST | 384 #if defined(OS_ANDROID) // WMPI_CAST |
| 385 if (isRemote()) { | 385 if (isRemote()) { |
| 386 cast_impl_.play(); | 386 cast_impl_.play(); |
| 387 return; | 387 return; |
| 388 } | 388 } |
| 389 #endif | 389 #endif |
| 390 paused_ = false; | 390 paused_ = false; |
| 391 is_idle_ = false; | 391 is_idle_ = false; |
| 392 pipeline_.SetPlaybackRate(playback_rate_); | 392 pipeline_.SetPlaybackRate(playback_rate_); |
| 393 background_pause_timer_.Stop(); |
| 393 | 394 |
| 394 if (data_source_) | 395 if (data_source_) |
| 395 data_source_->MediaIsPlaying(); | 396 data_source_->MediaIsPlaying(); |
| 396 | 397 |
| 397 DCHECK(watch_time_reporter_); | 398 DCHECK(watch_time_reporter_); |
| 398 watch_time_reporter_->OnPlaying(); | 399 watch_time_reporter_->OnPlaying(); |
| 399 media_log_->AddEvent(media_log_->CreateEvent(MediaLogEvent::PLAY)); | 400 media_log_->AddEvent(media_log_->CreateEvent(MediaLogEvent::PLAY)); |
| 400 UpdatePlayState(); | 401 UpdatePlayState(); |
| 401 } | 402 } |
| 402 | 403 |
| (...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1784 pipeline_metadata_.natural_size, | 1785 pipeline_metadata_.natural_size, |
| 1785 base::Bind(&GetCurrentTimeInternal, this))); | 1786 base::Bind(&GetCurrentTimeInternal, this))); |
| 1786 watch_time_reporter_->OnVolumeChange(volume_); | 1787 watch_time_reporter_->OnVolumeChange(volume_); |
| 1787 if (delegate_ && delegate_->IsHidden()) | 1788 if (delegate_ && delegate_->IsHidden()) |
| 1788 watch_time_reporter_->OnHidden(); | 1789 watch_time_reporter_->OnHidden(); |
| 1789 else | 1790 else |
| 1790 watch_time_reporter_->OnShown(); | 1791 watch_time_reporter_->OnShown(); |
| 1791 } | 1792 } |
| 1792 | 1793 |
| 1793 } // namespace media | 1794 } // namespace media |
| OLD | NEW |