Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: media/blink/webmediaplayer_impl.cc

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Rebase, addressed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 } 1357 }
1358 1358
1359 void WebMediaPlayerImpl::requestRemotePlayback() { 1359 void WebMediaPlayerImpl::requestRemotePlayback() {
1360 cast_impl_.requestRemotePlayback(); 1360 cast_impl_.requestRemotePlayback();
1361 } 1361 }
1362 1362
1363 void WebMediaPlayerImpl::requestRemotePlaybackControl() { 1363 void WebMediaPlayerImpl::requestRemotePlaybackControl() {
1364 cast_impl_.requestRemotePlaybackControl(); 1364 cast_impl_.requestRemotePlaybackControl();
1365 } 1365 }
1366 1366
1367 void WebMediaPlayerImpl::requestRemotePlaybackStop() {
1368 cast_impl_.requestRemotePlaybackStop();
1369 }
1370
1367 void WebMediaPlayerImpl::OnRemotePlaybackEnded() { 1371 void WebMediaPlayerImpl::OnRemotePlaybackEnded() {
1368 DVLOG(1) << __func__; 1372 DVLOG(1) << __func__;
1369 DCHECK(main_task_runner_->BelongsToCurrentThread()); 1373 DCHECK(main_task_runner_->BelongsToCurrentThread());
1370 1374
1371 ended_ = true; 1375 ended_ = true;
1372 client_->timeChanged(); 1376 client_->timeChanged();
1373 } 1377 }
1374 1378
1375 void WebMediaPlayerImpl::OnDisconnectedFromRemoteDevice(double t) { 1379 void WebMediaPlayerImpl::OnDisconnectedFromRemoteDevice(double t) {
1376 DoSeek(base::TimeDelta::FromSecondsD(t), false); 1380 DoSeek(base::TimeDelta::FromSecondsD(t), false);
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 pipeline_metadata_.natural_size, 1911 pipeline_metadata_.natural_size,
1908 base::Bind(&GetCurrentTimeInternal, this))); 1912 base::Bind(&GetCurrentTimeInternal, this)));
1909 watch_time_reporter_->OnVolumeChange(volume_); 1913 watch_time_reporter_->OnVolumeChange(volume_);
1910 if (delegate_ && delegate_->IsHidden()) 1914 if (delegate_ && delegate_->IsHidden())
1911 watch_time_reporter_->OnHidden(); 1915 watch_time_reporter_->OnHidden();
1912 else 1916 else
1913 watch_time_reporter_->OnShown(); 1917 watch_time_reporter_->OnShown();
1914 } 1918 }
1915 1919
1916 } // namespace media 1920 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698