Chromium Code Reviews| 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; |