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

Side by Side 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, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 MEDIA_BASE_DEMUXER_H_ 5 #ifndef MEDIA_BASE_DEMUXER_H_
6 #define MEDIA_BASE_DEMUXER_H_ 6 #define MEDIA_BASE_DEMUXER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void Stop(const base::Closure& callback); 62 virtual void Stop(const base::Closure& callback);
63 63
64 // This method is called from the pipeline when the audio renderer 64 // This method is called from the pipeline when the audio renderer
65 // is disabled. Demuxers can ignore the notification if they do not 65 // is disabled. Demuxers can ignore the notification if they do not
66 // need to react to this event. 66 // need to react to this event.
67 // 67 //
68 // TODO(acolwell): Change to generic DisableStream(DemuxerStream::Type). 68 // TODO(acolwell): Change to generic DisableStream(DemuxerStream::Type).
69 // TODO(scherkus): this might not be needed http://crbug.com/234708 69 // TODO(scherkus): this might not be needed http://crbug.com/234708
70 virtual void OnAudioRendererDisabled(); 70 virtual void OnAudioRendererDisabled();
71 71
72 // Returns the given stream type, or NULL if that type is not present. 72 // Returns the first stream of the given stream type, or NULL if that type
73 // of stream is not present.
73 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; 74 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;
74 75
76 // Returns the total number of streams in the media.
77 virtual int GetStreamCount() const;
78
79 // Returns the media stream with the given |index|.
80 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
81
75 // Returns the starting time for the media file. 82 // Returns the starting time for the media file.
76 virtual base::TimeDelta GetStartTime() const = 0; 83 virtual base::TimeDelta GetStartTime() const = 0;
77 84
78 private: 85 private:
79 DISALLOW_COPY_AND_ASSIGN(Demuxer); 86 DISALLOW_COPY_AND_ASSIGN(Demuxer);
80 }; 87 };
81 88
82 } // namespace media 89 } // namespace media
83 90
84 #endif // MEDIA_BASE_DEMUXER_H_ 91 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698