Adding RidDescription to StreamParams that will contain the list of rids for the track. Adding receive_stream to MediaContentDescription to allow identifying the stream that originates from the answerer (but is referenced by the sender). For example, to signal that it will be received in Simulcast. Bug: webrtc:10073. Change-Id: Icd9a6b0a69d42bef51f525e673ce447255584334 Reviewed-on: https://webrtc-review.googlesource.com/c/113794 Commit-Queue: Amit Hilbuch <amithi@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Seth Hampson <shampson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25978}
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
/*
|
|
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "media/base/riddescription.h"
|
|
|
|
namespace cricket {
|
|
|
|
RidDescription::RidDescription() = default;
|
|
RidDescription::RidDescription(const std::string& rid, RidDirection direction)
|
|
: rid{rid}, direction{direction} {}
|
|
RidDescription::RidDescription(const RidDescription& other) = default;
|
|
RidDescription::~RidDescription() = default;
|
|
RidDescription& RidDescription::operator=(const RidDescription& other) =
|
|
default;
|
|
bool RidDescription::operator==(const RidDescription& other) const {
|
|
return rid == other.rid && direction == other.direction &&
|
|
payload_types == other.payload_types &&
|
|
restrictions == other.restrictions;
|
|
}
|
|
|
|
} // namespace cricket
|