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

Unified Diff: chrome/renderer/media/cast_session.cc

Issue 2307653002: Adding CastRemotingSender for media remoting. (Closed)
Patch Set: Rebased. Created 4 years, 3 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: chrome/renderer/media/cast_session.cc
diff --git a/chrome/renderer/media/cast_session.cc b/chrome/renderer/media/cast_session.cc
index c9fc3a6b9e49effe9fb3d4c8c12567cfa78ea681..2f564c900d107b60934a7007bddb75f09d02893b 100644
--- a/chrome/renderer/media/cast_session.cc
+++ b/chrome/renderer/media/cast_session.cc
@@ -85,6 +85,18 @@ void CastSession::StartVideo(const media::cast::FrameSenderConfig& config,
base::Bind(&CreateVideoEncodeMemory))));
}
+void CastSession::StartRemotingStream(
+ int32_t stream_id,
+ const media::cast::FrameSenderConfig& config,
+ const ErrorCallback& error_callback) {
+ DCHECK(content::RenderThread::Get());
+
+ io_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&CastSessionDelegate::StartRemotingStream,
+ base::Unretained(delegate_.get()), stream_id,
+ config, media::BindToCurrentLoop(error_callback)));
+}
+
void CastSession::StartUDP(const net::IPEndPoint& remote_endpoint,
std::unique_ptr<base::DictionaryValue> options,
const ErrorCallback& error_callback) {

Powered by Google App Engine
This is Rietveld 408576698