MCPcopy Create free account
hub / github.com/GrowthEase/LLS-Player / SetLocalDescription

Method SetLocalDescription

src/rtd/src/rtd_engine_impl.cpp:270–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void RtdEngineImpl::SetLocalDescription(SessionDescriptionInterface* desc) {
271 RTC_LOG(LS_INFO) << "RtcEngineImpl::SetLocalDescription(), desc:" << desc;
272 peer_connection_->SetLocalDescription(RtcSetLocalSessionDescriptionObserver::Create(), desc);
273 if (desc->GetType() == SdpType::kOffer) {
274 RTC_LOG(LS_INFO) << "desc is offer.";
275 std::string sdp;
276 desc->ToString(&sdp);
277 OnSdpOffer(sdp);
278 }
279}
280
281bool RtdEngineImpl::SetAnswer(const std::string& answer_sdp) {
282 if (!signaling_thread_->IsCurrent()) {

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected