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

Side by Side Diff: webrtc/media/base/mediachannel.h

Issue 1847353004: Allow applications to control audio send bitrate through RtpParameters. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Redesigned to keep the logic inside WebRtcVoiceMediaChannel Created 4 years, 8 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 (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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 ERROR_PLAY_SRTP_ERROR, // Generic SRTP failure. 897 ERROR_PLAY_SRTP_ERROR, // Generic SRTP failure.
898 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets. 898 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets.
899 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected. 899 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected.
900 }; 900 };
901 901
902 VoiceMediaChannel() {} 902 VoiceMediaChannel() {}
903 VoiceMediaChannel(const MediaConfig& config) : MediaChannel(config) {} 903 VoiceMediaChannel(const MediaConfig& config) : MediaChannel(config) {}
904 virtual ~VoiceMediaChannel() {} 904 virtual ~VoiceMediaChannel() {}
905 virtual bool SetSendParameters(const AudioSendParameters& params) = 0; 905 virtual bool SetSendParameters(const AudioSendParameters& params) = 0;
906 virtual bool SetRecvParameters(const AudioRecvParameters& params) = 0; 906 virtual bool SetRecvParameters(const AudioRecvParameters& params) = 0;
907 virtual webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const = 0;
908 virtual bool SetRtpParameters(uint32_t ssrc,
909 const webrtc::RtpParameters& parameters) = 0;
907 // Starts or stops playout of received audio. 910 // Starts or stops playout of received audio.
908 virtual bool SetPlayout(bool playout) = 0; 911 virtual bool SetPlayout(bool playout) = 0;
909 // Starts or stops sending (and potentially capture) of local audio. 912 // Starts or stops sending (and potentially capture) of local audio.
910 virtual void SetSend(bool send) = 0; 913 virtual void SetSend(bool send) = 0;
911 // Configure stream for sending. 914 // Configure stream for sending.
912 virtual bool SetAudioSend(uint32_t ssrc, 915 virtual bool SetAudioSend(uint32_t ssrc,
913 bool enable, 916 bool enable,
914 const AudioOptions* options, 917 const AudioOptions* options,
915 AudioSource* source) = 0; 918 AudioSource* source) = 0;
916 // Gets current energy levels for all incoming streams. 919 // Gets current energy levels for all incoming streams.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 // Signal when the media channel is ready to send the stream. Arguments are: 1123 // Signal when the media channel is ready to send the stream. Arguments are:
1121 // writable(bool) 1124 // writable(bool)
1122 sigslot::signal1<bool> SignalReadyToSend; 1125 sigslot::signal1<bool> SignalReadyToSend;
1123 // Signal for notifying that the remote side has closed the DataChannel. 1126 // Signal for notifying that the remote side has closed the DataChannel.
1124 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1127 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1125 }; 1128 };
1126 1129
1127 } // namespace cricket 1130 } // namespace cricket
1128 1131
1129 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 1132 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698