diff options
author | wu@webrtc.org <wu@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-04-24 20:33:08 +0000 |
---|---|---|
committer | wu@webrtc.org <wu@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-04-24 20:33:08 +0000 |
commit | 47e54ba67fc3931152c7358c3008b26a847db615 (patch) | |
tree | 1d232e78136a31ff87da4c53ada22b0da5c11990 /voice_engine/channel.cc | |
parent | 1ca1e171947513f6ec70173aa74443f8a9c4dc22 (diff) | |
download | webrtc-47e54ba67fc3931152c7358c3008b26a847db615.tar.gz |
* Add webrtc::VoERTP_RTCP::SetReceiveAudioLevelIndicationStatus.
* Cast rtp header extension to int in log in rtp_utility.cc.
BUG=3237
TEST=try bots
R=stefan@webrtc.org, xians@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/12129004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5975 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/channel.cc')
-rw-r--r-- | voice_engine/channel.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/voice_engine/channel.cc b/voice_engine/channel.cc index fb73c139..5f6de0e3 100644 --- a/voice_engine/channel.cc +++ b/voice_engine/channel.cc @@ -3237,6 +3237,17 @@ int Channel::SetSendAudioLevelIndicationStatus(bool enable, unsigned char id) { return SetSendRtpHeaderExtension(enable, kRtpExtensionAudioLevel, id); } +int Channel::SetReceiveAudioLevelIndicationStatus(bool enable, + unsigned char id) { + rtp_header_parser_->DeregisterRtpHeaderExtension( + kRtpExtensionAudioLevel); + if (enable && !rtp_header_parser_->RegisterRtpHeaderExtension( + kRtpExtensionAudioLevel, id)) { + return -1; + } + return 0; +} + int Channel::SetSendAbsoluteSenderTimeStatus(bool enable, unsigned char id) { return SetSendRtpHeaderExtension(enable, kRtpExtensionAbsoluteSendTime, id); } |