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

Side by Side Diff: webrtc/api/peerconnectioninterface.h

Issue 2877933004: objc wrapper for PeerConnection::SetBitrate (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
OLDNEW
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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 const std::vector<cricket::Candidate>& candidates) { 724 const std::vector<cricket::Candidate>& candidates) {
725 return false; 725 return false;
726 } 726 }
727 727
728 // Register a metric observer (used by chromium). 728 // Register a metric observer (used by chromium).
729 // 729 //
730 // There can only be one observer at a time. Before the observer is 730 // There can only be one observer at a time. Before the observer is
731 // destroyed, RegisterUMAOberver(nullptr) should be called. 731 // destroyed, RegisterUMAOberver(nullptr) should be called.
732 virtual void RegisterUMAObserver(UMAObserver* observer) = 0; 732 virtual void RegisterUMAObserver(UMAObserver* observer) = 0;
733 733
734 struct BitrateParameters {
735 rtc::Optional<int> min_bitrate_bps;
736 rtc::Optional<int> current_bitrate_bps;
737 rtc::Optional<int> max_bitrate_bps;
738 };
739
740 virtual RTCError SetBitrate(const BitrateParameters& bitrate) = 0;
741
734 // Returns the current SignalingState. 742 // Returns the current SignalingState.
735 virtual SignalingState signaling_state() = 0; 743 virtual SignalingState signaling_state() = 0;
736 virtual IceConnectionState ice_connection_state() = 0; 744 virtual IceConnectionState ice_connection_state() = 0;
737 virtual IceGatheringState ice_gathering_state() = 0; 745 virtual IceGatheringState ice_gathering_state() = 0;
738 746
739 // Starts RtcEventLog using existing file. Takes ownership of |file| and 747 // Starts RtcEventLog using existing file. Takes ownership of |file| and
740 // passes it on to Call, which will take the ownership. If the 748 // passes it on to Call, which will take the ownership. If the
741 // operation fails the file will be closed. The logging will stop 749 // operation fails the file will be closed. The logging will stop
742 // automatically after 10 minutes have passed, or when the StopRtcEventLog 750 // automatically after 10 minutes have passed, or when the StopRtcEventLog
743 // function is called. 751 // function is called.
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 cricket::WebRtcVideoEncoderFactory* encoder_factory, 1115 cricket::WebRtcVideoEncoderFactory* encoder_factory,
1108 cricket::WebRtcVideoDecoderFactory* decoder_factory) { 1116 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
1109 return CreatePeerConnectionFactory( 1117 return CreatePeerConnectionFactory(
1110 worker_and_network_thread, worker_and_network_thread, signaling_thread, 1118 worker_and_network_thread, worker_and_network_thread, signaling_thread,
1111 default_adm, encoder_factory, decoder_factory); 1119 default_adm, encoder_factory, decoder_factory);
1112 } 1120 }
1113 1121
1114 } // namespace webrtc 1122 } // namespace webrtc
1115 1123
1116 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ 1124 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/peerconnectionproxy.h » ('j') | webrtc/sdk/objc/Framework/UnitTests/RTCPeerConnectionTest.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698