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

Unified Diff: public/platform/WebMediaPlayer.h

Issue 284513003: Implement AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 6 years, 6 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
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | public/platform/WebMediaPlayerClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMediaPlayer.h
diff --git a/public/platform/WebMediaPlayer.h b/public/platform/WebMediaPlayer.h
index 734f7c2b37b1d73aef0465933101235c9cc60a91..edff006aa209347b51dce68800dfbb9c639ddf0a 100644
--- a/public/platform/WebMediaPlayer.h
+++ b/public/platform/WebMediaPlayer.h
@@ -95,6 +95,8 @@ public:
LoadTypeMediaStream,
};
+ typedef unsigned TrackId;
+
virtual ~WebMediaPlayer() { }
virtual void load(LoadType, const WebURL&, CORSMode) = 0;
@@ -162,6 +164,10 @@ public:
virtual void exitFullscreen() { }
// Returns true if the player can enter fullscreen.
virtual bool canEnterFullscreen() const { return false; }
+
+ virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrackIds) { }
+ // |selectedTrackId| is null if no track is selected.
+ virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
};
} // namespace blink
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.cpp ('k') | public/platform/WebMediaPlayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698