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

Side by Side Diff: webrtc/api/call/audio_send_stream.h

Issue 2503383002: Expose RtpCodecParameters to VoiceMediaInfo stats. (Closed)
Patch Set: Addressed comments, using int Created 4 years, 1 month 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 | « webrtc/api/call/audio_receive_stream.h ('k') | webrtc/api/call/audio_send_stream.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 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_ 11 #ifndef WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_
12 #define WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_ 12 #define WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/optional.h"
18 #include "webrtc/config.h" 19 #include "webrtc/config.h"
19 #include "webrtc/modules/audio_coding/codecs/audio_encoder.h" 20 #include "webrtc/modules/audio_coding/codecs/audio_encoder.h"
20 #include "webrtc/transport.h" 21 #include "webrtc/transport.h"
21 #include "webrtc/typedefs.h" 22 #include "webrtc/typedefs.h"
22 23
23 namespace webrtc { 24 namespace webrtc {
24 25
25 // WORK IN PROGRESS 26 // WORK IN PROGRESS
26 // This class is under development and is not yet intended for for use outside 27 // This class is under development and is not yet intended for for use outside
27 // of WebRtc/Libjingle. Please use the VoiceEngine API instead. 28 // of WebRtc/Libjingle. Please use the VoiceEngine API instead.
28 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=4690 29 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=4690
29 30
30 class AudioSendStream { 31 class AudioSendStream {
31 public: 32 public:
32 struct Stats { 33 struct Stats {
33 Stats(); 34 Stats();
35 ~Stats();
34 36
35 // TODO(solenberg): Harmonize naming and defaults with receive stream stats. 37 // TODO(solenberg): Harmonize naming and defaults with receive stream stats.
36 uint32_t local_ssrc = 0; 38 uint32_t local_ssrc = 0;
37 int64_t bytes_sent = 0; 39 int64_t bytes_sent = 0;
38 int32_t packets_sent = 0; 40 int32_t packets_sent = 0;
39 int32_t packets_lost = -1; 41 int32_t packets_lost = -1;
40 float fraction_lost = -1.0f; 42 float fraction_lost = -1.0f;
41 std::string codec_name; 43 std::string codec_name;
44 rtc::Optional<int> codec_payload_type;
42 int32_t ext_seqnum = -1; 45 int32_t ext_seqnum = -1;
43 int32_t jitter_ms = -1; 46 int32_t jitter_ms = -1;
44 int64_t rtt_ms = -1; 47 int64_t rtt_ms = -1;
45 int32_t audio_level = -1; 48 int32_t audio_level = -1;
46 float aec_quality_min = -1.0f; 49 float aec_quality_min = -1.0f;
47 int32_t echo_delay_median_ms = -1; 50 int32_t echo_delay_median_ms = -1;
48 int32_t echo_delay_std_ms = -1; 51 int32_t echo_delay_std_ms = -1;
49 int32_t echo_return_loss = -100; 52 int32_t echo_return_loss = -100;
50 int32_t echo_return_loss_enhancement = -100; 53 int32_t echo_return_loss_enhancement = -100;
51 float residual_echo_likelihood = -1.0f; 54 float residual_echo_likelihood = -1.0f;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void SetMuted(bool muted) = 0; 136 virtual void SetMuted(bool muted) = 0;
134 137
135 virtual Stats GetStats() const = 0; 138 virtual Stats GetStats() const = 0;
136 139
137 protected: 140 protected:
138 virtual ~AudioSendStream() {} 141 virtual ~AudioSendStream() {}
139 }; 142 };
140 } // namespace webrtc 143 } // namespace webrtc
141 144
142 #endif // WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_ 145 #endif // WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/api/call/audio_receive_stream.h ('k') | webrtc/api/call/audio_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698