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

Side by Side 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: nit Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/WebMediaPlayer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebSourceBufferClient_h 5 #ifndef WebSourceBufferClient_h
6 #define WebSourceBufferClient_h 6 #define WebSourceBufferClient_h
7 7
8 #include "WebMediaPlayer.h"
9 #include "WebString.h"
10
11 #include <tuple>
12 #include <vector>
13
8 namespace blink { 14 namespace blink {
9 15
10 class WebSourceBufferClient { 16 class WebSourceBufferClient {
11 public: 17 public:
12 virtual ~WebSourceBufferClient() { } 18 virtual ~WebSourceBufferClient() { }
13 19
14 // FIXME: Add a track collection parameter here. 20 // Complete media track info: track type, bytestream id, kind, label, langua ge.
15 virtual void initializationSegmentReceived() = 0; 21 typedef std::tuple<WebMediaPlayer::TrackType, WebString, WebString, WebStrin g, WebString> MediaTrackInfo;
esprehn 2016/04/12 18:44:10 please define structs instead of making huge tuple
servolk 2016/04/15 20:34:26 Ok, but this CL has already been merged, so I've c
22
23 // Notifies SourceBuffer that parsing of a new init segment has been complet ed successfully. The input parameter is a collection
24 // of information about media tracks found in the new init segment. The retu rn value is a vector of blink WebMediaPlayer track ids
25 // assigned to each track of the input collection (the order of output track ids must match the input track information).
26 virtual std::vector<WebMediaPlayer::TrackId> initializationSegmentReceived(c onst std::vector<MediaTrackInfo>& tracks) = 0;
esprehn 2016/04/12 18:44:10 This should be WebVector, not std::vector.
servolk 2016/04/15 20:34:26 Done: https://codereview.chromium.org/1897533002
16 }; 27 };
17 28
18 } // namespace blink 29 } // namespace blink
19 30
20 #endif // WebSourceBufferClient_h 31 #endif // WebSourceBufferClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebMediaPlayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698