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

Unified Diff: media/base/demuxer_stream.h

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporate aaron's comments (10/16) Created 7 years, 2 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_stream.h
diff --git a/media/base/demuxer_stream.h b/media/base/demuxer_stream.h
index bb4534475ed14099c92a2cfec0ffb75e2f18584a..60cb91a075041e00d129c415f3ce1d74e5ebf1c0 100644
--- a/media/base/demuxer_stream.h
+++ b/media/base/demuxer_stream.h
@@ -13,6 +13,7 @@ namespace media {
class AudioDecoderConfig;
class DecoderBuffer;
+class TextTrackConfig;
class VideoDecoderConfig;
class MEDIA_EXPORT DemuxerStream {
@@ -21,6 +22,7 @@ class MEDIA_EXPORT DemuxerStream {
UNKNOWN,
AUDIO,
VIDEO,
+ TEXT,
NUM_TYPES, // Always keep this entry as the last one!
};
@@ -62,6 +64,10 @@ class MEDIA_EXPORT DemuxerStream {
// if type() != VIDEO.
virtual VideoDecoderConfig video_decoder_config() = 0;
+ // Returns the text track configuration. It is an error to call this method
+ // if type() != TEXT.
+ virtual TextTrackConfig text_track_config() = 0;
acolwell GONE FROM CHROMIUM 2013/10/21 20:10:40 nit: Is this really needed on the DemuxerStream in
Matthew Heaney (Chromium) 2013/10/23 05:09:01 Done.
+
// Returns the type of stream.
virtual Type type() = 0;

Powered by Google App Engine
This is Rietveld 408576698