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

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

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comments. 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
« no previous file with comments | « chrome/renderer/media/cast_ipc_dispatcher.h ('k') | chrome/renderer/media/cast_transport_sender_ipc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_ipc_dispatcher.cc
diff --git a/chrome/renderer/media/cast_ipc_dispatcher.cc b/chrome/renderer/media/cast_ipc_dispatcher.cc
index 406bd6018d7dcbbf3d7cc8398e06f5a53f8bf809..61cdd948db11dc33fc2bccdd820a271d215ec46e 100644
--- a/chrome/renderer/media/cast_ipc_dispatcher.cc
+++ b/chrome/renderer/media/cast_ipc_dispatcher.cc
@@ -53,6 +53,7 @@ bool CastIPCDispatcher::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(CastMsg_RawEvents, OnRawEvents)
IPC_MESSAGE_HANDLER(CastMsg_Rtt, OnRtt)
IPC_MESSAGE_HANDLER(CastMsg_RtcpCastMessage, OnRtcpCastMessage)
+ IPC_MESSAGE_HANDLER(CastMsg_Pli, OnReceivedPli);
IPC_MESSAGE_HANDLER(CastMsg_ReceivedPacket, OnReceivedPacket)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -125,6 +126,16 @@ void CastIPCDispatcher::OnRtcpCastMessage(
}
}
+void CastIPCDispatcher::OnReceivedPli(int32_t channel_id, int32_t ssrc) {
+ CastTransportSenderIPC* sender = id_map_.Lookup(channel_id);
+ if (sender) {
+ sender->OnReceivedPli(ssrc);
+ } else {
+ DVLOG(1) << "CastIPCDispatcher::OnReceivedPli on non-existing "
+ "channel.";
+ }
+}
+
void CastIPCDispatcher::OnReceivedPacket(int32_t channel_id,
const media::cast::Packet& packet) {
CastTransportSenderIPC* sender = id_map_.Lookup(channel_id);
« no previous file with comments | « chrome/renderer/media/cast_ipc_dispatcher.h ('k') | chrome/renderer/media/cast_transport_sender_ipc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698