| 268 | } |
| 269 | |
| 270 | void 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 | |
| 281 | bool RtdEngineImpl::SetAnswer(const std::string& answer_sdp) { |
| 282 | if (!signaling_thread_->IsCurrent()) { |