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

Unified Diff: media/renderers/renderer_impl.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 | « media/filters/media_source_state.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/renderer_impl.h
diff --git a/media/renderers/renderer_impl.h b/media/renderers/renderer_impl.h
index fc17f6cbdf628ee1534e49890275856f156e6300..6345ecf1387838359c91692aeca0e571d2ee377f 100644
--- a/media/renderers/renderer_impl.h
+++ b/media/renderers/renderer_impl.h
@@ -63,6 +63,10 @@ class MEDIA_EXPORT RendererImpl : public Renderer {
base::TimeDelta GetMediaTime() final;
bool HasAudio() final;
bool HasVideo() final;
+ void OnEnabledAudioStreamsChanged(
+ const std::vector<const DemuxerStream*>& enabledAudioStreams) final;
+ void OnSelectedVideoStreamChanged(
+ const DemuxerStream* selectedVideoStream) final;
// Helper functions for testing purposes. Must be called before Initialize().
void DisableUnderflowForTesting();
@@ -151,6 +155,9 @@ class MEDIA_EXPORT RendererImpl : public Renderer {
scoped_ptr<AudioRenderer> audio_renderer_;
scoped_ptr<VideoRenderer> video_renderer_;
+ bool audio_stream_currently_disabled_ = false;
+ float audio_volume_ = 1.0f;
+
// Renderer-provided time source used to control playback.
TimeSource* time_source_;
scoped_ptr<WallClockTimeSource> wall_clock_time_source_;
« no previous file with comments | « media/filters/media_source_state.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698