tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RtpRtcpConfig.h (938B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef __RTPRTCP_CONFIG_H__
      6 #define __RTPRTCP_CONFIG_H__
      7 #include "api/rtp_headers.h"
      8 
      9 namespace mozilla {
     10 class RtpRtcpConfig {
     11 public:
     12  RtpRtcpConfig() = delete;
     13  explicit RtpRtcpConfig(const webrtc::RtcpMode aMode,
     14                         const bool aExtmapAllowMixed)
     15      : mRtcpMode(aMode), mExtmapAllowMixed(aExtmapAllowMixed) {}
     16  webrtc::RtcpMode GetRtcpMode() const { return mRtcpMode; }
     17  bool GetExtmapAllowMixed() const { return mExtmapAllowMixed; }
     18 
     19  bool operator==(const RtpRtcpConfig& aOther) const {
     20    return mRtcpMode == aOther.mRtcpMode &&
     21           mExtmapAllowMixed == aOther.mExtmapAllowMixed;
     22  }
     23 
     24 private:
     25  webrtc::RtcpMode mRtcpMode;
     26  bool mExtmapAllowMixed;
     27 };
     28 }  // namespace mozilla
     29 #endif