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

Unified Diff: media/blink/webmediaplayer_cast_android.h

Issue 1570043002: Implement MediaSession on top of the WebMediaPlayerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session
Patch Set: Rebase yet again. Created 4 years, 11 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: media/blink/webmediaplayer_cast_android.h
diff --git a/media/blink/webmediaplayer_cast_android.h b/media/blink/webmediaplayer_cast_android.h
index 2707e885fedfdb85f584d747e789f81bbae46146..7e77f423b964b5ff7895c11af1d2a5fdec79d123 100644
--- a/media/blink/webmediaplayer_cast_android.h
+++ b/media/blink/webmediaplayer_cast_android.h
@@ -106,6 +106,8 @@ class WebMediaPlayerCast : public RendererMediaPlayerInterface {
scoped_refptr<VideoFrame> GetCastingBanner();
private:
+ base::TimeDelta GetDuration();
+
WebMediaPlayerImpl* webmediaplayer_;
blink::WebMediaPlayerClient* client_;
WebMediaPlayerParams::Context3DCB context_3d_cb_;
@@ -128,6 +130,7 @@ class WebMediaPlayerCast : public RendererMediaPlayerInterface {
// Last reported playout time.
base::TimeDelta remote_time_;
base::TimeTicks remote_time_at_;
+ base::TimeDelta duration_;
// Whether the media player has been initialized.
bool is_player_initialized_ = false;

Powered by Google App Engine
This is Rietveld 408576698