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

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: incorporated Frank's comments 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/base/stream_parser.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 {
acolwell GONE FROM CHROMIUM 2013/04/05 16:29:23 nit: This doesn't seem like the right home for thi
Matthew Heaney (Chromium) 2013/05/08 19:53:00 Done.
+ 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;
acolwell GONE FROM CHROMIUM 2013/04/05 16:29:23 nit:s/TextTrackCB/AddTextTrackCB It seems like th
Matthew Heaney (Chromium) 2013/05/08 19:53:00 Can you elaborate a bit on this? We're still a li
acolwell GONE FROM CHROMIUM 2013/05/08 20:51:29 Sure. At this point I think the return type should
+
} // namespace media
#endif // MEDIA_BASE_PIPELINE_STATUS_H_
« no previous file with comments | « no previous file | media/base/stream_parser.h » ('j') | media/base/stream_parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698