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

Unified Diff: content/renderer/media/media_stream_audio_renderer.h

Issue 1122393004: Add support for switching the audio output device for HTMLMediaElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to MediaPlayers so that they invoke callbacks in the correct threads. First complete implem… Created 5 years, 7 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: content/renderer/media/media_stream_audio_renderer.h
diff --git a/content/renderer/media/media_stream_audio_renderer.h b/content/renderer/media/media_stream_audio_renderer.h
index 41e32239115c3aae8cb9f43f034cbb06d6969979..7a99b59727f8f1ad2639c1540200575c28315fa4 100644
--- a/content/renderer/media/media_stream_audio_renderer.h
+++ b/content/renderer/media/media_stream_audio_renderer.h
@@ -5,8 +5,12 @@
#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_
#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_
+#include <string>
+
+#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
+#include "url/gurl.h"
namespace content {
@@ -29,6 +33,12 @@ class MediaStreamAudioRenderer
// Sets the output volume.
virtual void SetVolume(float volume) = 0;
+ // Set the audio output device.
+ virtual void SwitchOutputDevice(
+ const std::string &device_id,
+ const GURL &security_origin,
+ const base::Callback<void(int)>& callback) = 0;
+
// Time stamp that reflects the current render time. Should not be updated
// when paused.
virtual base::TimeDelta GetCurrentRenderTime() const = 0;

Powered by Google App Engine
This is Rietveld 408576698