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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 1996043002: Split MediaContentType and AudioFocusType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed nits Created 4 years, 4 months 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: content/renderer/media/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index 451ba42f821f644de77ce0911f6da6c4521c8549..3ed9b77d8e0dd2a60a327a1f5f768038369ba9b9 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -39,6 +39,7 @@
#include "media/base/android/media_player_android.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/cdm_context.h"
+#include "media/base/media_content_type.h"
#include "media/base/media_keys.h"
#include "media/base/media_log.h"
#include "media/base/media_switches.h"
@@ -1407,7 +1408,7 @@ void WebMediaPlayerAndroid::UpdatePlayingState(bool is_playing) {
// send audio if we know for sure its audio. The browser side player will
// fill in the correct value later for media sessions.
delegate_->DidPlay(delegate_id_, hasVideo(), !hasVideo(), isRemote(),
- duration_);
+ media::DurationToMediaContentType(duration_));
} else {
// Even if OnPlaybackComplete() has not been called yet, Blink may have
// already fired the ended event based on current time relative to
« no previous file with comments | « content/common/media/media_player_delegate_messages.h ('k') | content/renderer/media/renderer_webmediaplayer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698