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

Unified Diff: components/copresence/mediums/audio/audio_player_impl.cc

Issue 704923002: Add polling and audio check to copresence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/copresence/mediums/audio/audio_player_impl.cc
diff --git a/components/copresence/mediums/audio/audio_player_impl.cc b/components/copresence/mediums/audio/audio_player_impl.cc
index d84d6a1f9fab6a3ad672c3c442d8ecbf80a59e9f..dcc41b332944eb79809ce02c6613c365eed696fd 100644
--- a/components/copresence/mediums/audio/audio_player_impl.cc
+++ b/components/copresence/mediums/audio/audio_player_impl.cc
@@ -110,6 +110,7 @@ void AudioPlayerImpl::PlayOnAudioThread(
return;
}
+ VLOG(3) << "Starting playback.";
is_playing_ = true;
stream_->Start(this);
}
@@ -119,6 +120,7 @@ void AudioPlayerImpl::StopOnAudioThread() {
if (!stream_)
return;
+ VLOG(3) << "Stopping playback.";
stream_->Stop();
is_playing_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698