/* * Copyright (c) 2019 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"test/pc/e2e/test_peer.h"
auto observer = rtc::make_ref_counted<SetRemoteDescriptionCallback>(); // We're assuming (and asserting) that the PeerConnection implementation of // SetRemoteDescription is synchronous when called on the signaling thread.
pc()->SetRemoteDescription(std::move(desc), observer);
RTC_CHECK(observer->is_called()); if (!observer->error().ok()) {
RTC_LOG(LS_ERROR) << *params_.name << ": Failed to set remote description: "
<< observer->error().message(); if (error_out) {
*error_out = observer->error().message();
}
} return observer->error().ok();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.