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

Unified Diff: public/platform/WebMediaPlayerClient.h

Issue 170233009: Initial implementation of AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@blink-master
Patch Set: Addressed IDL comments. Created 6 years, 9 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
« Source/core/html/track/TrackListBase.h ('K') | « public/platform/WebMediaPlayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMediaPlayerClient.h
diff --git a/public/platform/WebMediaPlayerClient.h b/public/platform/WebMediaPlayerClient.h
index 92e2c1ea730588e0fdef78430f2afee52fa1ac5c..dfc0f10441abaccca9516db647171b795a70ff54 100644
--- a/public/platform/WebMediaPlayerClient.h
+++ b/public/platform/WebMediaPlayerClient.h
@@ -53,6 +53,26 @@ public:
MediaKeyErrorCodeDomain,
};
+ enum VideoTrackKind {
+ VideoTrackKindNone,
+ VideoTrackKindAlternative,
+ VideoTrackKindCaptions,
+ VideoTrackKindMain,
+ VideoTrackKindSign,
+ VideoTrackKindSubtitles,
+ VideoTrackKindCommentary
+ };
+
+ enum AudioTrackKind {
+ AudioTrackKindNone,
+ AudioTrackKindAlternative,
+ AudioTrackKindDescriptions,
+ AudioTrackKindMain,
+ AudioTrackKindMainDescriptions,
+ AudioTrackKindTranslation,
+ AudioTrackKindCommentary
+ };
+
virtual void networkStateChanged() = 0;
virtual void readyStateChanged() = 0;
virtual void timeChanged() = 0;
@@ -69,6 +89,11 @@ public:
virtual void keyMessage(const WebString& keySystem, const WebString& sessionId, const unsigned char* message, unsigned messageLength, const WebURL& defaultURL) = 0;
virtual void keyNeeded(const WebString& contentType, const unsigned char* initData, unsigned initDataLength) = 0;
virtual void setWebLayer(WebLayer*) = 0;
+
+ virtual void addVideoTrack(const WebString& id, VideoTrackKind, const WebString& label, const WebString& language, bool selected) = 0;
+ virtual void removeVideoTrack(const WebString& id) = 0;
+ virtual void addAudioTrack(const WebString& id, AudioTrackKind, const WebString& label, const WebString& language, bool enabled) = 0;
+ virtual void removeAudioTrack(const WebString& id) = 0;
virtual void addTextTrack(WebInbandTextTrack*) = 0;
virtual void removeTextTrack(WebInbandTextTrack*) = 0;
virtual void mediaSourceOpened(WebMediaSource*) = 0;
« Source/core/html/track/TrackListBase.h ('K') | « public/platform/WebMediaPlayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698