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

Side by Side Diff: chrome/browser/media/cast_remoting_sender.h

Issue 2861053002: Periodically send RTCP report during Media Remoting. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/media/cast_remoting_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_CAST_REMOTING_SENDER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_CAST_REMOTING_SENDER_H_
6 #define CHROME_BROWSER_MEDIA_CAST_REMOTING_SENDER_H_ 6 #define CHROME_BROWSER_MEDIA_CAST_REMOTING_SENDER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 void RecordLatestFrameTimestamps(media::cast::FrameId frame_id, 117 void RecordLatestFrameTimestamps(media::cast::FrameId frame_id,
118 media::cast::RtpTimeTicks rtp_timestamp); 118 media::cast::RtpTimeTicks rtp_timestamp);
119 media::cast::RtpTimeTicks GetRecordedRtpTimestamp( 119 media::cast::RtpTimeTicks GetRecordedRtpTimestamp(
120 media::cast::FrameId frame_id) const; 120 media::cast::FrameId frame_id) const;
121 121
122 // If |frame_event_cb_| is not null, this calls |frame_event_cb_| to 122 // If |frame_event_cb_| is not null, this calls |frame_event_cb_| to
123 // periodically send the frame events to renderer process for logging. 123 // periodically send the frame events to renderer process for logging.
124 void SendFrameEvents(); 124 void SendFrameEvents();
125 125
126 // Schedule and execute periodic sending of RTCP report to prevent keepalive
127 // timeouts on receiver side during media pause.
128 void ScheduleNextRtcpReport();
129 void SendRtcpReport();
130
126 // Unique identifier for the RTP stream and this CastRemotingSender. 131 // Unique identifier for the RTP stream and this CastRemotingSender.
127 const int32_t rtp_stream_id_; 132 const int32_t rtp_stream_id_;
128 133
129 // Sends encoded frames over the configured transport (e.g., UDP). It outlives 134 // Sends encoded frames over the configured transport (e.g., UDP). It outlives
130 // this class. 135 // this class.
131 media::cast::CastTransport* const transport_; 136 media::cast::CastTransport* const transport_;
132 137
133 const uint32_t ssrc_; 138 const uint32_t ssrc_;
134 139
135 const bool is_audio_; 140 const bool is_audio_;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 214
210 // NOTE: Weak pointers must be invalidated before all other member variables. 215 // NOTE: Weak pointers must be invalidated before all other member variables.
211 base::WeakPtrFactory<CastRemotingSender> weak_factory_; 216 base::WeakPtrFactory<CastRemotingSender> weak_factory_;
212 217
213 DISALLOW_COPY_AND_ASSIGN(CastRemotingSender); 218 DISALLOW_COPY_AND_ASSIGN(CastRemotingSender);
214 }; 219 };
215 220
216 } // namespace cast 221 } // namespace cast
217 222
218 #endif // CHROME_BROWSER_MEDIA_CAST_REMOTING_SENDER_H_ 223 #endif // CHROME_BROWSER_MEDIA_CAST_REMOTING_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/cast_remoting_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698