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

Unified Diff: media/base/demuxer.h

Issue 1812543003: Allow muting/unmuting audio through media track API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-sb-tracks6
Patch Set: Avoid ChunkDemuxer/PipelineImpl deadlock Created 4 years, 8 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/media_tracks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 027264ba79fb916f0359a983d4f4dc4519ccba80..e2c68ebe4b437be2ce5cb9d877bb71c9c73425fd 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -67,7 +67,7 @@ class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider {
EncryptedMediaInitDataCB;
// Notifies demuxer clients that media track configuration has been updated
- // (e.g. the inital stream metadata has been parsed successfully, or a new
+ // (e.g. the initial stream metadata has been parsed successfully, or a new
// init segment has been parsed successfully in MSE case).
typedef base::Callback<void(scoped_ptr<MediaTracks>)> MediaTracksUpdatedCB;
@@ -134,6 +134,18 @@ class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider {
// Returns the memory usage in bytes for the demuxer.
virtual int64_t GetMemoryUsage() const = 0;
+ // Notifies the demuxer that blink track ids have been assigned to |tracks|.
+ // The |track_ids| collection must contain blink track ids in the same
+ // sequence as media tracks in |tracks|. The collection sizes must be the
+ // same.
+ virtual void OnTrackIdsAssigned(const MediaTracks& tracks,
+ const std::vector<unsigned>& track_ids) = 0;
+
+ // Finds a DemuxerStream corresponding to the given blink |track_id|. Note
+ // that the input track id is blink track id and not bytestream track id.
+ virtual const DemuxerStream* GetDemuxerStreamByTrackId(
+ unsigned track_id) const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(Demuxer);
};
« no previous file with comments | « no previous file | media/base/media_tracks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698