mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-16 15:20:42 +01:00

CreateOffer and CreateAnswer will now examine the layers on the transceiver to determine if multiple layers are requested (Simulcast). In this scenario RIDs will be used in the layers (instead of SSRCs). When the offer is created, only RIDs are signalled in the offer. When the offer is set locally SetLocalDescription() SSRCs will be generated for each layer by the Channel and sent downstream to the MediaChannel. The MediaChannel receives configuration that looks identical to that of legacy simulcast, and should be able to integrate the streams correctly regardless of how they were signalled. Setting multiple layers on the transciever is still not supported through the API. Bug: webrtc:10075 Change-Id: Id4ad3637b87b68ef6ca7eec69166fee2d9dfa36f Reviewed-on: https://webrtc-review.googlesource.com/c/119780 Reviewed-by: Seth Hampson <shampson@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Commit-Queue: Amit Hilbuch <amithi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26428}
50 lines
1.8 KiB
C++
50 lines
1.8 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.
|
|
*/
|
|
|
|
#ifndef PC_TEST_MOCK_CHANNEL_INTERFACE_H_
|
|
#define PC_TEST_MOCK_CHANNEL_INTERFACE_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "pc/channel_interface.h"
|
|
#include "test/gmock.h"
|
|
|
|
namespace cricket {
|
|
|
|
// Mock class for BaseChannel.
|
|
// Use this class in unit tests to avoid dependecy on a specific
|
|
// implementation of BaseChannel.
|
|
class MockChannelInterface : public cricket::ChannelInterface {
|
|
public:
|
|
MOCK_CONST_METHOD0(media_type, cricket::MediaType());
|
|
MOCK_CONST_METHOD0(media_channel, MediaChannel*());
|
|
MOCK_CONST_METHOD0(transport_name, const std::string&());
|
|
MOCK_CONST_METHOD0(content_name, const std::string&());
|
|
MOCK_CONST_METHOD0(enabled, bool());
|
|
MOCK_METHOD1(Enable, bool(bool));
|
|
MOCK_METHOD0(SignalFirstPacketReceived,
|
|
sigslot::signal1<ChannelInterface*>&());
|
|
MOCK_METHOD3(SetLocalContent,
|
|
bool(const cricket::MediaContentDescription*,
|
|
webrtc::SdpType,
|
|
std::string*));
|
|
MOCK_METHOD3(SetRemoteContent,
|
|
bool(const cricket::MediaContentDescription*,
|
|
webrtc::SdpType,
|
|
std::string*));
|
|
MOCK_CONST_METHOD0(local_streams, const std::vector<StreamParams>&());
|
|
MOCK_CONST_METHOD0(remote_streams, const std::vector<StreamParams>&());
|
|
MOCK_METHOD1(SetRtpTransport, bool(webrtc::RtpTransportInternal*));
|
|
};
|
|
|
|
} // namespace cricket
|
|
|
|
#endif // PC_TEST_MOCK_CHANNEL_INTERFACE_H_
|