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

Unified Diff: Source/platform/graphics/media/MediaPlayer.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: Created 6 years, 10 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: Source/platform/graphics/media/MediaPlayer.h
diff --git a/Source/platform/graphics/media/MediaPlayer.h b/Source/platform/graphics/media/MediaPlayer.h
index db3d3b030f93f5d026a0fe064ccebf98bd261376..a4d1e295dcb06894864df376ab2cfc0efae27666 100644
--- a/Source/platform/graphics/media/MediaPlayer.h
+++ b/Source/platform/graphics/media/MediaPlayer.h
@@ -29,6 +29,7 @@
#include "platform/PlatformExport.h"
#include "platform/graphics/GraphicsTypes3D.h"
#include "public/platform/WebMediaPlayer.h"
+#include "public/platform/WebMediaPlayerClient.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
@@ -103,8 +104,12 @@ public:
virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0;
virtual void mediaPlayerSetOpaque(bool) = 0;
- virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0;
- virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0;
+ virtual void mediaPlayerDidAddVideoTrack(const AtomicString& id, const AtomicString& kind, const AtomicString& label, const AtomicString& language, bool selected) = 0;
+ virtual void mediaPlayerDidRemoveVideoTrack(const AtomicString& id) = 0;
+ virtual void mediaPlayerDidAddAudioTrack(const AtomicString& id, const AtomicString& kind, const AtomicString& label, const AtomicString& language, bool enabled) = 0;
+ virtual void mediaPlayerDidRemoveAudioTrack(const AtomicString& id) = 0;
+ virtual void mediaPlayerDidAddTextTrack(blink::WebInbandTextTrack*) = 0;
+ virtual void mediaPlayerDidRemoveTextTrack(blink::WebInbandTextTrack*) = 0;
virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0;
};
@@ -197,6 +202,8 @@ public:
virtual MediaKeyException generateKeyRequest(const String&, const unsigned char*, unsigned) = 0;
virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0;
virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0;
+
+ virtual blink::WebMediaPlayer* webMediaPlayer() const = 0;
};
}

Powered by Google App Engine
This is Rietveld 408576698