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

Unified Diff: media/base/demuxer.h

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 4 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: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 853a21a2a7557de19768dc430e19613560c52dee..618b560b029e4c4fb486f0c9704b4947c2788ff0 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -69,9 +69,16 @@ class MEDIA_EXPORT Demuxer {
// TODO(scherkus): this might not be needed http://crbug.com/234708
virtual void OnAudioRendererDisabled();
- // Returns the given stream type, or NULL if that type is not present.
+ // Returns the first stream of the given stream type, or NULL if that type
+ // of stream is not present.
virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;
+ // Returns the total number of streams in the media.
+ virtual int GetStreamCount() const;
+
+ // Returns the media stream with the given |index|.
+ virtual DemuxerStream* GetStreamByIndex(int index);
acolwell GONE FROM CHROMIUM 2013/09/12 00:15:15 I think this API can be problematic for the MSE ca
Matthew Heaney (Chromium) 2013/09/13 19:51:54 It looks like the only class that inherits Demuxer
acolwell GONE FROM CHROMIUM 2013/09/13 20:57:30 Yes. At this point I think signatures along the li
Matthew Heaney (Chromium) 2013/09/20 23:53:54 I made this change, but haven't introduced a separ
+
// Returns the starting time for the media file.
virtual base::TimeDelta GetStartTime() const = 0;

Powered by Google App Engine
This is Rietveld 408576698