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

Unified Diff: media/base/pipeline.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
Index: media/base/pipeline.h
diff --git a/media/base/pipeline.h b/media/base/pipeline.h
index db326c2928353f2aa9d6080ad650e4ecd56f22fb..07e197b98d772c0767e935c47dd5956eae8e4cf6 100644
--- a/media/base/pipeline.h
+++ b/media/base/pipeline.h
@@ -19,6 +19,7 @@
namespace media {
class Demuxer;
+class DemuxerStream;
class Renderer;
class VideoFrame;
@@ -155,6 +156,15 @@ class MEDIA_EXPORT Pipeline {
virtual void SetCdm(CdmContext* cdm_context,
const CdmAttachedCB& cdm_attached_cb) = 0;
+
+ // Notifies pipeline that the set of enabled audio streams/tracks has changed.
wolenetz 2016/03/30 00:31:32 Would these be better located in PipelineControlle
+ virtual void OnEnabledAudioStreamsChanged(
+ const std::vector<const DemuxerStream*>& enabledAudioStreams) {}
+
+ // Notifies pipeline that the selected video stream has changed. The input
+ // parameter |selectedVideoStream| can be null, which means video is disabled.
+ virtual void OnSelectedVideoStreamChanged(
+ const DemuxerStream* selectedVideoStream) {}
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698