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

Unified Diff: media/base/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: media/base/renderer.h
diff --git a/media/base/renderer.h b/media/base/renderer.h
index 75372fba3a1559e39b1aaaab046cc09c1fa7982e..c6038c20368a578b64ecbf715d906b46c3848a36 100644
--- a/media/base/renderer.h
+++ b/media/base/renderer.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_BASE_RENDERER_H_
#define MEDIA_BASE_RENDERER_H_
+#include <string>
+
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
@@ -12,6 +14,7 @@
#include "media/base/cdm_context.h"
#include "media/base/media_export.h"
#include "media/base/pipeline_status.h"
+#include "url/gurl.h"
namespace media {
@@ -70,6 +73,12 @@ class MEDIA_EXPORT Renderer {
// Sets the output volume. The default volume should be 1.
virtual void SetVolume(float volume) = 0;
+ // Switches the audio output device
+ virtual void SwitchAudioOutputDevice(
+ const std::string& device_id,
+ const GURL& security_origin,
+ const base::Callback<void(int)>& callback) = 0;
+
// Returns the current media time.
virtual base::TimeDelta GetMediaTime() = 0;

Powered by Google App Engine
This is Rietveld 408576698