Index: public/platform/WebMediaPlayerClient.h |
diff --git a/public/platform/WebMediaPlayerClient.h b/public/platform/WebMediaPlayerClient.h |
index 4c6c4e1efc39041ebf3e6bfe3ef92b20b466f66b..454078b13c68965d0ed5cc45d982c9e1a165ec98 100644 |
--- a/public/platform/WebMediaPlayerClient.h |
+++ b/public/platform/WebMediaPlayerClient.h |
@@ -54,6 +54,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; |
@@ -71,6 +91,11 @@ public: |
virtual void keyNeeded(const WebString& contentType, const unsigned char* initData, unsigned initDataLength) = 0; |
virtual bool needsWebLayerForVideo() const = 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; |