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

Unified Diff: media/base/android/media_player_android.h

Issue 14247018: Implement WebRTC in Chrome for TV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Aaron's comments 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: media/base/android/media_player_android.h
diff --git a/media/base/android/media_player_android.h b/media/base/android/media_player_android.h
index be21581624a0fc4211913e11401ac9a5a9cd5473..2dabbdf6f818c394dd682ba232f09aefa691d309 100644
--- a/media/base/android/media_player_android.h
+++ b/media/base/android/media_player_android.h
@@ -36,18 +36,24 @@ class MEDIA_EXPORT MediaPlayerAndroid {
MEDIA_ERROR_INVALID_CODE,
};
+ // Types of media source that this object will play.
+ enum SourceType {
+ SOURCE_TYPE_URL,
+ SOURCE_TYPE_MSE, // W3C Media Source Extensions
+ SOURCE_TYPE_STREAM, // W3C Media Stream, e.g. getUserMedia().
+ };
+
// Construct a MediaPlayerAndroid object with all the needed media player
// callbacks. This object needs to call |manager_|'s RequestMediaResources()
// before decoding the media stream. This allows |manager_| to track
// unused resources and free them when needed. On the other hand, it needs
// to call ReleaseMediaResources() when it is done with decoding.
- static MediaPlayerAndroid* Create(
- int player_id,
- const GURL& url,
- bool is_media_source,
- const GURL& first_party_for_cookies,
- bool hide_url_log,
- MediaPlayerManager* manager);
+ static MediaPlayerAndroid* Create(int player_id,
+ const GURL& url,
+ SourceType source_type,
+ const GURL& first_party_for_cookies,
+ bool hide_url_log,
+ MediaPlayerManager* manager);
// Passing an external java surface object to the player.
virtual void SetVideoSurface(jobject surface) = 0;

Powered by Google App Engine
This is Rietveld 408576698