Chromium Code Reviews| 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 856 std::vector<VoiceSenderInfo> senders; | 856 std::vector<VoiceSenderInfo> senders; |
| 857 std::vector<VoiceReceiverInfo> receivers; | 857 std::vector<VoiceReceiverInfo> receivers; |
| 858 RtpCodecParametersMap send_codecs; | 858 RtpCodecParametersMap send_codecs; |
| 859 RtpCodecParametersMap receive_codecs; | 859 RtpCodecParametersMap receive_codecs; |
| 860 }; | 860 }; |
| 861 | 861 |
| 862 struct VideoMediaInfo { | 862 struct VideoMediaInfo { |
| 863 void Clear() { | 863 void Clear() { |
| 864 senders.clear(); | 864 senders.clear(); |
| 865 receivers.clear(); | 865 receivers.clear(); |
| 866 bw_estimations.clear(); | |
| 867 send_codecs.clear(); | 866 send_codecs.clear(); |
| 868 receive_codecs.clear(); | 867 receive_codecs.clear(); |
| 869 } | 868 } |
| 870 std::vector<VideoSenderInfo> senders; | 869 std::vector<VideoSenderInfo> senders; |
| 871 std::vector<VideoReceiverInfo> receivers; | 870 std::vector<VideoReceiverInfo> receivers; |
| 872 std::vector<BandwidthEstimationInfo> bw_estimations; | |
| 873 RtpCodecParametersMap send_codecs; | 871 RtpCodecParametersMap send_codecs; |
| 874 RtpCodecParametersMap receive_codecs; | 872 RtpCodecParametersMap receive_codecs; |
| 875 }; | 873 }; |
| 876 | 874 |
| 877 struct DataMediaInfo { | 875 struct DataMediaInfo { |
| 878 void Clear() { | 876 void Clear() { |
| 879 senders.clear(); | 877 senders.clear(); |
| 880 receivers.clear(); | 878 receivers.clear(); |
| 881 } | 879 } |
| 882 std::vector<DataSenderInfo> senders; | 880 std::vector<DataSenderInfo> senders; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1076 // The |ssrc| must correspond to a registered send stream. | 1074 // The |ssrc| must correspond to a registered send stream. |
| 1077 virtual bool SetVideoSend( | 1075 virtual bool SetVideoSend( |
| 1078 uint32_t ssrc, | 1076 uint32_t ssrc, |
| 1079 bool enable, | 1077 bool enable, |
| 1080 const VideoOptions* options, | 1078 const VideoOptions* options, |
| 1081 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) = 0; | 1079 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) = 0; |
| 1082 // Sets the sink object to be used for the specified stream. | 1080 // Sets the sink object to be used for the specified stream. |
| 1083 // If SSRC is 0, the sink is used for the 'default' stream. | 1081 // If SSRC is 0, the sink is used for the 'default' stream. |
| 1084 virtual bool SetSink(uint32_t ssrc, | 1082 virtual bool SetSink(uint32_t ssrc, |
| 1085 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) = 0; | 1083 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) = 0; |
| 1084 virtual bool FillBitrateInfo(BandwidthEstimationInfo* bwe_info) = 0; | |
|
Taylor Brandstetter
2017/05/07 21:30:44
nit: Why not "FillBandwidthEstimationInfo(Bandwidt
stefan-webrtc
2017/05/08 07:12:56
It only fills the "bitrate parts" (rtx, video bitr
Taylor Brandstetter
2017/05/08 17:47:41
Can you describe this in a comment above FillBitra
| |
| 1086 // Gets quality stats for the channel. | 1085 // Gets quality stats for the channel. |
| 1087 virtual bool GetStats(VideoMediaInfo* info) = 0; | 1086 virtual bool GetStats(VideoMediaInfo* info) = 0; |
| 1088 }; | 1087 }; |
| 1089 | 1088 |
| 1090 enum DataMessageType { | 1089 enum DataMessageType { |
| 1091 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID | 1090 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID |
| 1092 // values. | 1091 // values. |
| 1093 DMT_NONE = 0, | 1092 DMT_NONE = 0, |
| 1094 DMT_CONTROL = 1, | 1093 DMT_CONTROL = 1, |
| 1095 DMT_BINARY = 2, | 1094 DMT_BINARY = 2, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1205 const char*, | 1204 const char*, |
| 1206 size_t> SignalDataReceived; | 1205 size_t> SignalDataReceived; |
| 1207 // Signal when the media channel is ready to send the stream. Arguments are: | 1206 // Signal when the media channel is ready to send the stream. Arguments are: |
| 1208 // writable(bool) | 1207 // writable(bool) |
| 1209 sigslot::signal1<bool> SignalReadyToSend; | 1208 sigslot::signal1<bool> SignalReadyToSend; |
| 1210 }; | 1209 }; |
| 1211 | 1210 |
| 1212 } // namespace cricket | 1211 } // namespace cricket |
| 1213 | 1212 |
| 1214 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1213 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
| OLD | NEW |