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

Unified Diff: third_party/WebKit/public/platform/WebSourceBufferClient.h

Issue 1659653002: Pass MSE media track info from ChunkDemuxer to blink::SourceBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-media-tracks-in-media
Patch Set: rebase Created 4 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
Index: third_party/WebKit/public/platform/WebSourceBufferClient.h
diff --git a/third_party/WebKit/public/platform/WebSourceBufferClient.h b/third_party/WebKit/public/platform/WebSourceBufferClient.h
index 849f2824bac215a5f44ac48dda0319e928ed3d7f..824ccc0754060282bb7729275aad47701c3786b8 100644
--- a/third_party/WebKit/public/platform/WebSourceBufferClient.h
+++ b/third_party/WebKit/public/platform/WebSourceBufferClient.h
@@ -5,14 +5,25 @@
#ifndef WebSourceBufferClient_h
#define WebSourceBufferClient_h
+#include "WebMediaPlayer.h"
+#include "WebString.h"
+#include "WebVector.h"
+
namespace blink {
class WebSourceBufferClient {
public:
virtual ~WebSourceBufferClient() { }
- // FIXME: Add a track collection parameter here.
- virtual void initializationSegmentReceived() = 0;
+ // Creates a new media track of a given type with given properties (id, kind, label, language) for this SourceBuffer and
+ // places it into a collection of pending SB tracks. This notifies SourceBuffer to expect the newly created track to be
+ // used in a new init segment.
wolenetz 2016/03/23 19:34:13 What is the retval's meaning / usage? (Please docu
servolk 2016/03/24 01:31:56 Done.
+ virtual WebMediaPlayer::TrackId createMediaTrack(WebMediaPlayer::TrackType, WebString, WebString, WebString, WebString) = 0;
+
+ // Notifies SourceBuffer that parsing of a new init segment has been completed successfully. The media tracks encountered
+ // in the new init segment has been created via createMediaTrack above. The input parameter is a vector of TrackIds
+ // specifying media track order in the init segment.
+ virtual void initializationSegmentReceived(const WebVector<WebMediaPlayer::TrackId>&) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698