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

Unified Diff: media/base/pipeline_status.h

Issue 13419002: Media Source dispatches inband text tracks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | media/base/stream_parser.h » ('j') | media/filters/chunk_demuxer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_status.h
diff --git a/media/base/pipeline_status.h b/media/base/pipeline_status.h
index c208d01d583b0b971668ed13c8dd3941782e1adc..494972c180df2e949ec2f8b467e48f527a5e25c7 100644
--- a/media/base/pipeline_status.h
+++ b/media/base/pipeline_status.h
@@ -60,6 +60,21 @@ struct PipelineStatistics {
// Used for updating pipeline statistics.
typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB;
+// Specifies the varieties of text tracks.
+enum TextKind {
+ kTextSubtitles,
+ kTextCaptions,
+ kTextDescriptions,
+ kTextMetadata,
+ kTextNone
+};
+
+// So pipeline can notify media player about presence of text tracks.
+// TODO(matthewjheaney): Might have to also include track number, etc.
+typedef base::Callback<void(TextKind kind,
+ const std::string& label,
+ const std::string& language)> TextTrackCB;
+
} // namespace media
#endif // MEDIA_BASE_PIPELINE_STATUS_H_
« no previous file with comments | « no previous file | media/base/stream_parser.h » ('j') | media/filters/chunk_demuxer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698