OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 const std::vector<cricket::Candidate>& candidates) { | 721 const std::vector<cricket::Candidate>& candidates) { |
722 return false; | 722 return false; |
723 } | 723 } |
724 | 724 |
725 // Register a metric observer (used by chromium). | 725 // Register a metric observer (used by chromium). |
726 // | 726 // |
727 // There can only be one observer at a time. Before the observer is | 727 // There can only be one observer at a time. Before the observer is |
728 // destroyed, RegisterUMAOberver(nullptr) should be called. | 728 // destroyed, RegisterUMAOberver(nullptr) should be called. |
729 virtual void RegisterUMAObserver(UMAObserver* observer) = 0; | 729 virtual void RegisterUMAObserver(UMAObserver* observer) = 0; |
730 | 730 |
| 731 // Parameters that are not set will not be changed. |
| 732 struct BitrateUpdate { |
| 733 rtc::Optional<int> min_bitrate_bps; |
| 734 rtc::Optional<int> start_bitrate_bps; |
| 735 rtc::Optional<int> max_bitrate_bps; |
| 736 }; |
| 737 |
| 738 // Updates the Call level bitrate parameters. |
| 739 virtual void UpdateCallBitrate(const BitrateUpdate&) = 0; |
| 740 |
731 // Returns the current SignalingState. | 741 // Returns the current SignalingState. |
732 virtual SignalingState signaling_state() = 0; | 742 virtual SignalingState signaling_state() = 0; |
733 virtual IceConnectionState ice_connection_state() = 0; | 743 virtual IceConnectionState ice_connection_state() = 0; |
734 virtual IceGatheringState ice_gathering_state() = 0; | 744 virtual IceGatheringState ice_gathering_state() = 0; |
735 | 745 |
736 // Starts RtcEventLog using existing file. Takes ownership of |file| and | 746 // Starts RtcEventLog using existing file. Takes ownership of |file| and |
737 // passes it on to Call, which will take the ownership. If the | 747 // passes it on to Call, which will take the ownership. If the |
738 // operation fails the file will be closed. The logging will stop | 748 // operation fails the file will be closed. The logging will stop |
739 // automatically after 10 minutes have passed, or when the StopRtcEventLog | 749 // automatically after 10 minutes have passed, or when the StopRtcEventLog |
740 // function is called. | 750 // function is called. |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 1108 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
1099 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | 1109 cricket::WebRtcVideoDecoderFactory* decoder_factory) { |
1100 return CreatePeerConnectionFactory( | 1110 return CreatePeerConnectionFactory( |
1101 worker_and_network_thread, worker_and_network_thread, signaling_thread, | 1111 worker_and_network_thread, worker_and_network_thread, signaling_thread, |
1102 default_adm, encoder_factory, decoder_factory); | 1112 default_adm, encoder_factory, decoder_factory); |
1103 } | 1113 } |
1104 | 1114 |
1105 } // namespace webrtc | 1115 } // namespace webrtc |
1106 | 1116 |
1107 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 1117 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |