diff options
Diffstat (limited to 'cast/streaming/receiver_session.h')
-rw-r--r-- | cast/streaming/receiver_session.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cast/streaming/receiver_session.h b/cast/streaming/receiver_session.h index fe4f9481..d928da5e 100644 --- a/cast/streaming/receiver_session.h +++ b/cast/streaming/receiver_session.h @@ -67,10 +67,16 @@ class ReceiverSession final : public Environment::SocketSubscriber { // once we get a remoting request from a Sender. struct RemotingNegotiation { // The configured receivers set to be used for handling audio and - // video streams. + // video streams. Unlike in the general streaming case, when we are remoting + // we don't know the codec and other information about the stream until + // the sender provices that information through the + // DemuxerStreamInitializeCallback RPC method. ConfiguredReceivers receivers; // The RPC messenger to be used for subscribing to remoting proto messages. + // Unlike the SenderSession API, the RPC messenger is negotiation specific. + // The messenger is torn down when |OnReceiversDestroying| is called, and + // is owned by the ReceiverSession. RpcMessenger* messenger; }; @@ -303,6 +309,7 @@ class ReceiverSession final : public Environment::SocketSubscriber { // Specific message type handler methods. void OnOffer(SenderMessage message); void OnCapabilitiesRequest(SenderMessage message); + void OnRpcMessage(SenderMessage message); // Selects streams from an offer based on its configuration, and sets // them in the session properties. |