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

Unified Diff: webkit/renderer/media/android/webmediaplayer_android.h

Issue 14247018: Implement WebRTC in Chrome for TV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 7 years, 7 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: webkit/renderer/media/android/webmediaplayer_android.h
diff --git a/webkit/renderer/media/android/webmediaplayer_android.h b/webkit/renderer/media/android/webmediaplayer_android.h
index 44ff9faefbda4a80c0da631af0bdf135d12e3eae..9c00b015119d140dec7b31a275a065ba60410b2c 100644
--- a/webkit/renderer/media/android/webmediaplayer_android.h
+++ b/webkit/renderer/media/android/webmediaplayer_android.h
@@ -13,6 +13,7 @@
#include "base/message_loop.h"
#include "base/time.h"
#include "cc/layers/video_frame_provider.h"
+#include "media/base/android/media_player_android.h"
#include "media/base/demuxer_stream.h"
#include "media/base/media_keys.h"
#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
@@ -25,6 +26,7 @@
#include "webkit/renderer/media/crypto/proxy_decryptor.h"
namespace media {
+class Demuxer;
class MediaLog;
}
@@ -37,9 +39,15 @@ class WebLayerImpl;
}
namespace webkit_media {
+
+class MediaStreamClient;
class WebMediaPlayerManagerAndroid;
class WebMediaPlayerProxyAndroid;
+#if defined(GOOGLE_TV)
+class MediaStreamAudioRenderer;
+#endif
+
// This class implements WebKit::WebMediaPlayer by keeping the android
// media player in the browser process. It listens to all the status changes
// sent from the browser process and sends playback controls to the media
@@ -211,6 +219,10 @@ class WebMediaPlayerAndroid
const std::string& session_id,
const std::string& message,
const std::string& default_url);
+
+ bool InjectMediaStream(MediaStreamClient* media_stream_client,
+ media::Demuxer* demuxer,
+ const base::Closure& destroy_demuxer_cb);
#endif
void OnNeedKey(const std::string& key_system,
@@ -237,6 +249,10 @@ class WebMediaPlayerAndroid
// Requesting whether the surface texture peer needs to be reestablished.
void SetNeedsEstablishPeer(bool needs_establish_peer);
+ void InitializeMediaPlayer(
+ const WebKit::WebURL& url,
+ media::MediaPlayerAndroid::SourceType source_type);
+
#if defined(GOOGLE_TV)
// Request external surface for out-of-band composition.
void RequestExternalSurface();
@@ -342,6 +358,10 @@ class WebMediaPlayerAndroid
// A rectangle represents the geometry of video frame, when computed last
// time.
gfx::RectF last_computed_rect_;
+
+ // Media Stream related fields.
+ media::Demuxer* demuxer_;
+ base::Closure destroy_demuxer_cb_;
#endif
scoped_ptr<MediaSourceDelegate,
@@ -358,6 +378,7 @@ class WebMediaPlayerAndroid
double current_time_;
media::MediaLog* media_log_;
+ MediaStreamClient* media_stream_client_;
// The currently selected key system. Empty string means that no key system
// has been selected.
« no previous file with comments | « webkit/renderer/media/android/media_source_delegate.cc ('k') | webkit/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698