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

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: rebase Created 4 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/media_tracks.h » ('j') | media/base/pipeline.h » ('J')
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 6e1344bd2cb1ea2440447d7c17ed7a3e457c08fa..83679ce736a18c6529aa321efef5d0c16ed23e6a 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -22,6 +22,7 @@
namespace media {
class TextTrackConfig;
+class MediaTrack;
class MediaTracks;
class MEDIA_EXPORT DemuxerHost {
@@ -133,6 +134,16 @@ 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 a track id has been assigned to a media track.
wolenetz 2016/03/30 00:31:32 nit: is this a blink track id? Clarify in comment
+ // If |track| is null the association for this |track_id| is removed.
+ virtual void OnTrackIdAssigned(unsigned track_id,
wolenetz 2016/03/30 00:31:32 Question: would these be better in DemuxerHost?
servolk 2016/03/30 01:13:12 Why in DemuxerHost? I was thinking about moving th
+ const MediaTrack* track) = 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') | media/base/pipeline.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698