OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
861 struct VideoMediaInfo { | 861 struct VideoMediaInfo { |
862 void Clear() { | 862 void Clear() { |
863 senders.clear(); | 863 senders.clear(); |
864 receivers.clear(); | 864 receivers.clear(); |
865 bw_estimations.clear(); | 865 bw_estimations.clear(); |
866 send_codecs.clear(); | 866 send_codecs.clear(); |
867 receive_codecs.clear(); | 867 receive_codecs.clear(); |
868 } | 868 } |
869 std::vector<VideoSenderInfo> senders; | 869 std::vector<VideoSenderInfo> senders; |
870 std::vector<VideoReceiverInfo> receivers; | 870 std::vector<VideoReceiverInfo> receivers; |
871 // Deprecated. | |
872 // TODO(holmer): Remove once upstream projects no longer use this. | |
871 std::vector<BandwidthEstimationInfo> bw_estimations; | 873 std::vector<BandwidthEstimationInfo> bw_estimations; |
hbos
2017/06/02 10:37:51
You've still removed filling in the bw_estimations
holmer
2017/06/02 11:34:26
Yes, that should be fine according to Noah.
| |
872 RtpCodecParametersMap send_codecs; | 874 RtpCodecParametersMap send_codecs; |
873 RtpCodecParametersMap receive_codecs; | 875 RtpCodecParametersMap receive_codecs; |
874 }; | 876 }; |
875 | 877 |
876 struct DataMediaInfo { | 878 struct DataMediaInfo { |
877 void Clear() { | 879 void Clear() { |
878 senders.clear(); | 880 senders.clear(); |
879 receivers.clear(); | 881 receivers.clear(); |
880 } | 882 } |
881 std::vector<DataSenderInfo> senders; | 883 std::vector<DataSenderInfo> senders; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1075 // The |ssrc| must correspond to a registered send stream. | 1077 // The |ssrc| must correspond to a registered send stream. |
1076 virtual bool SetVideoSend( | 1078 virtual bool SetVideoSend( |
1077 uint32_t ssrc, | 1079 uint32_t ssrc, |
1078 bool enable, | 1080 bool enable, |
1079 const VideoOptions* options, | 1081 const VideoOptions* options, |
1080 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) = 0; | 1082 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) = 0; |
1081 // Sets the sink object to be used for the specified stream. | 1083 // Sets the sink object to be used for the specified stream. |
1082 // If SSRC is 0, the sink is used for the 'default' stream. | 1084 // If SSRC is 0, the sink is used for the 'default' stream. |
1083 virtual bool SetSink(uint32_t ssrc, | 1085 virtual bool SetSink(uint32_t ssrc, |
1084 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) = 0; | 1086 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) = 0; |
1087 // This fills the "bitrate parts" (rtx, video bitrate) of the | |
1088 // BandwidthEstimationInfo, since that part that isn't possible to get | |
1089 // through webrtc::Call::GetStats, as they are statistics of the send | |
1090 // streams. | |
1091 // TODO(holmer): We should change this so that either BWE graphs doesn't | |
1092 // need access to bitrates of the streams, or change the (RTC)StatsCollector | |
1093 // so that it's getting the send stream stats separately by calling | |
1094 // GetStats(), and merges with BandwidthEstimationInfo by itself. | |
1095 virtual void FillBitrateInfo(BandwidthEstimationInfo* bwe_info) = 0; | |
1085 // Gets quality stats for the channel. | 1096 // Gets quality stats for the channel. |
1086 virtual bool GetStats(VideoMediaInfo* info) = 0; | 1097 virtual bool GetStats(VideoMediaInfo* info) = 0; |
1087 }; | 1098 }; |
1088 | 1099 |
1089 enum DataMessageType { | 1100 enum DataMessageType { |
1090 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID | 1101 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID |
1091 // values. | 1102 // values. |
1092 DMT_NONE = 0, | 1103 DMT_NONE = 0, |
1093 DMT_CONTROL = 1, | 1104 DMT_CONTROL = 1, |
1094 DMT_BINARY = 2, | 1105 DMT_BINARY = 2, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1204 const char*, | 1215 const char*, |
1205 size_t> SignalDataReceived; | 1216 size_t> SignalDataReceived; |
1206 // Signal when the media channel is ready to send the stream. Arguments are: | 1217 // Signal when the media channel is ready to send the stream. Arguments are: |
1207 // writable(bool) | 1218 // writable(bool) |
1208 sigslot::signal1<bool> SignalReadyToSend; | 1219 sigslot::signal1<bool> SignalReadyToSend; |
1209 }; | 1220 }; |
1210 | 1221 |
1211 } // namespace cricket | 1222 } // namespace cricket |
1212 | 1223 |
1213 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1224 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |