blob: cb933843d8f2aab47b8ebc4f1fabfa85394fdad9 [file] [log] [blame]
Harald Alvestrand00cf34c2019-12-02 09:56:02 +01001/*
2 * Copyright 2019 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Harald Alvestrand05e4d082019-12-03 14:04:21 +010011#include "pc/data_channel_controller.h"
12
13#include <utility>
Harald Alvestrand00cf34c2019-12-02 09:56:02 +010014
15#include "pc/peer_connection.h"
16#include "pc/sctp_utils.h"
17
18namespace webrtc {
19
Harald Alvestrand05e4d082019-12-03 14:04:21 +010020bool DataChannelController::HasDataChannels() const {
21 RTC_DCHECK_RUN_ON(signaling_thread());
22 return !rtp_data_channels_.empty() || !sctp_data_channels_.empty();
23}
24
25bool DataChannelController::SendData(const cricket::SendDataParams& params,
26 const rtc::CopyOnWriteBuffer& payload,
27 cricket::SendDataResult* result) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +010028 // RTC_DCHECK_RUN_ON(signaling_thread());
29 if (data_channel_transport()) {
30 SendDataParams send_params;
31 send_params.type = ToWebrtcDataMessageType(params.type);
32 send_params.ordered = params.ordered;
33 if (params.max_rtx_count >= 0) {
34 send_params.max_rtx_count = params.max_rtx_count;
35 } else if (params.max_rtx_ms >= 0) {
36 send_params.max_rtx_ms = params.max_rtx_ms;
37 }
38
39 RTCError error = network_thread()->Invoke<RTCError>(
40 RTC_FROM_HERE, [this, params, send_params, payload] {
41 return data_channel_transport()->SendData(params.sid, send_params,
42 payload);
43 });
44
45 if (error.ok()) {
46 *result = cricket::SendDataResult::SDR_SUCCESS;
47 return true;
48 } else if (error.type() == RTCErrorType::RESOURCE_EXHAUSTED) {
49 // SCTP transport uses RESOURCE_EXHAUSTED when it's blocked.
50 // TODO(mellem): Stop using RTCError here and get rid of the mapping.
51 *result = cricket::SendDataResult::SDR_BLOCK;
52 return false;
53 }
54 *result = cricket::SendDataResult::SDR_ERROR;
55 return false;
56 } else if (rtp_data_channel()) {
57 return rtp_data_channel()->SendData(params, payload, result);
58 }
59 RTC_LOG(LS_ERROR) << "SendData called before transport is ready";
60 return false;
61}
62
Harald Alvestrand05e4d082019-12-03 14:04:21 +010063bool DataChannelController::ConnectDataChannel(
Harald Alvestrand00cf34c2019-12-02 09:56:02 +010064 DataChannel* webrtc_data_channel) {
65 RTC_DCHECK_RUN_ON(signaling_thread());
66 if (!rtp_data_channel() && !data_channel_transport()) {
67 // Don't log an error here, because DataChannels are expected to call
68 // ConnectDataChannel in this state. It's the only way to initially tell
69 // whether or not the underlying transport is ready.
70 return false;
71 }
72 if (data_channel_transport()) {
73 SignalDataChannelTransportWritable_s.connect(webrtc_data_channel,
74 &DataChannel::OnChannelReady);
75 SignalDataChannelTransportReceivedData_s.connect(
76 webrtc_data_channel, &DataChannel::OnDataReceived);
77 SignalDataChannelTransportChannelClosing_s.connect(
78 webrtc_data_channel, &DataChannel::OnClosingProcedureStartedRemotely);
79 SignalDataChannelTransportChannelClosed_s.connect(
80 webrtc_data_channel, &DataChannel::OnClosingProcedureComplete);
81 }
82 if (rtp_data_channel()) {
83 rtp_data_channel()->SignalReadyToSendData.connect(
84 webrtc_data_channel, &DataChannel::OnChannelReady);
85 rtp_data_channel()->SignalDataReceived.connect(
86 webrtc_data_channel, &DataChannel::OnDataReceived);
87 }
88 return true;
89}
90
Harald Alvestrand05e4d082019-12-03 14:04:21 +010091void DataChannelController::DisconnectDataChannel(
Harald Alvestrand00cf34c2019-12-02 09:56:02 +010092 DataChannel* webrtc_data_channel) {
93 RTC_DCHECK_RUN_ON(signaling_thread());
94 if (!rtp_data_channel() && !data_channel_transport()) {
95 RTC_LOG(LS_ERROR)
96 << "DisconnectDataChannel called when rtp_data_channel_ and "
97 "sctp_transport_ are NULL.";
98 return;
99 }
100 if (data_channel_transport()) {
101 SignalDataChannelTransportWritable_s.disconnect(webrtc_data_channel);
102 SignalDataChannelTransportReceivedData_s.disconnect(webrtc_data_channel);
103 SignalDataChannelTransportChannelClosing_s.disconnect(webrtc_data_channel);
104 SignalDataChannelTransportChannelClosed_s.disconnect(webrtc_data_channel);
105 }
106 if (rtp_data_channel()) {
107 rtp_data_channel()->SignalReadyToSendData.disconnect(webrtc_data_channel);
108 rtp_data_channel()->SignalDataReceived.disconnect(webrtc_data_channel);
109 }
110}
111
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100112void DataChannelController::AddSctpDataStream(int sid) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100113 if (data_channel_transport()) {
114 network_thread()->Invoke<void>(RTC_FROM_HERE, [this, sid] {
115 if (data_channel_transport()) {
116 data_channel_transport()->OpenChannel(sid);
117 }
118 });
119 }
120}
121
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100122void DataChannelController::RemoveSctpDataStream(int sid) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100123 if (data_channel_transport()) {
124 network_thread()->Invoke<void>(RTC_FROM_HERE, [this, sid] {
125 if (data_channel_transport()) {
126 data_channel_transport()->CloseChannel(sid);
127 }
128 });
129 }
130}
131
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100132bool DataChannelController::ReadyToSendData() const {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100133 RTC_DCHECK_RUN_ON(signaling_thread());
134 return (rtp_data_channel() && rtp_data_channel()->ready_to_send_data()) ||
135 (data_channel_transport() && data_channel_transport_ready_to_send_);
136}
137
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100138void DataChannelController::OnDataReceived(
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100139 int channel_id,
140 DataMessageType type,
141 const rtc::CopyOnWriteBuffer& buffer) {
142 RTC_DCHECK_RUN_ON(network_thread());
143 cricket::ReceiveDataParams params;
144 params.sid = channel_id;
145 params.type = ToCricketDataMessageType(type);
146 data_channel_transport_invoker_->AsyncInvoke<void>(
147 RTC_FROM_HERE, signaling_thread(), [this, params, buffer] {
148 RTC_DCHECK_RUN_ON(signaling_thread());
149 if (!HandleOpenMessage_s(params, buffer)) {
150 SignalDataChannelTransportReceivedData_s(params, buffer);
151 }
152 });
153}
154
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100155void DataChannelController::OnChannelClosing(int channel_id) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100156 RTC_DCHECK_RUN_ON(network_thread());
157 data_channel_transport_invoker_->AsyncInvoke<void>(
158 RTC_FROM_HERE, signaling_thread(), [this, channel_id] {
159 RTC_DCHECK_RUN_ON(signaling_thread());
160 SignalDataChannelTransportChannelClosing_s(channel_id);
161 });
162}
163
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100164void DataChannelController::OnChannelClosed(int channel_id) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100165 RTC_DCHECK_RUN_ON(network_thread());
166 data_channel_transport_invoker_->AsyncInvoke<void>(
167 RTC_FROM_HERE, signaling_thread(), [this, channel_id] {
168 RTC_DCHECK_RUN_ON(signaling_thread());
169 SignalDataChannelTransportChannelClosed_s(channel_id);
170 });
171}
172
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100173void DataChannelController::OnReadyToSend() {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100174 RTC_DCHECK_RUN_ON(network_thread());
175 data_channel_transport_invoker_->AsyncInvoke<void>(
176 RTC_FROM_HERE, signaling_thread(), [this] {
177 RTC_DCHECK_RUN_ON(signaling_thread());
178 data_channel_transport_ready_to_send_ = true;
179 SignalDataChannelTransportWritable_s(
180 data_channel_transport_ready_to_send_);
181 });
182}
183
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100184void DataChannelController::SetupDataChannelTransport_n() {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100185 RTC_DCHECK_RUN_ON(network_thread());
186 data_channel_transport_invoker_ = std::make_unique<rtc::AsyncInvoker>();
187}
188
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100189void DataChannelController::TeardownDataChannelTransport_n() {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100190 RTC_DCHECK_RUN_ON(network_thread());
191 data_channel_transport_invoker_ = nullptr;
192 if (data_channel_transport()) {
193 data_channel_transport()->SetDataSink(nullptr);
194 }
195 set_data_channel_transport(nullptr);
196}
197
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100198void DataChannelController::OnTransportChanged(
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100199 DataChannelTransportInterface* new_data_channel_transport) {
200 RTC_DCHECK_RUN_ON(network_thread());
201 if (data_channel_transport() &&
202 data_channel_transport() != new_data_channel_transport) {
203 // Changed which data channel transport is used for |sctp_mid_| (eg. now
204 // it's bundled).
205 data_channel_transport()->SetDataSink(nullptr);
206 set_data_channel_transport(new_data_channel_transport);
207 if (new_data_channel_transport) {
208 new_data_channel_transport->SetDataSink(this);
209
210 // There's a new data channel transport. This needs to be signaled to the
211 // |sctp_data_channels_| so that they can reopen and reconnect. This is
212 // necessary when bundling is applied.
213 data_channel_transport_invoker_->AsyncInvoke<void>(
214 RTC_FROM_HERE, signaling_thread(), [this] {
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100215 RTC_DCHECK_RUN_ON(signaling_thread());
216 for (auto channel : sctp_data_channels_) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100217 channel->OnTransportChannelCreated();
218 }
219 });
220 }
221 }
222}
223
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100224bool DataChannelController::HandleOpenMessage_s(
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100225 const cricket::ReceiveDataParams& params,
226 const rtc::CopyOnWriteBuffer& buffer) {
227 if (params.type == cricket::DMT_CONTROL && IsOpenMessage(buffer)) {
228 // Received OPEN message; parse and signal that a new data channel should
229 // be created.
230 std::string label;
231 InternalDataChannelInit config;
232 config.id = params.ssrc;
233 if (!ParseDataChannelOpenMessage(buffer, &label, &config)) {
234 RTC_LOG(LS_WARNING) << "Failed to parse the OPEN message for ssrc "
235 << params.ssrc;
236 return true;
237 }
238 config.open_handshake_role = InternalDataChannelInit::kAcker;
239 OnDataChannelOpenMessage(label, config);
240 return true;
241 }
242 return false;
243}
244
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100245void DataChannelController::OnDataChannelOpenMessage(
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100246 const std::string& label,
247 const InternalDataChannelInit& config) {
248 rtc::scoped_refptr<DataChannel> channel(
249 InternalCreateDataChannel(label, &config));
250 if (!channel.get()) {
251 RTC_LOG(LS_ERROR) << "Failed to create DataChannel from the OPEN message.";
252 return;
253 }
254
255 rtc::scoped_refptr<DataChannelInterface> proxy_channel =
256 DataChannelProxy::Create(signaling_thread(), channel);
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100257 pc_->Observer()->OnDataChannel(std::move(proxy_channel));
258 pc_->NoteDataAddedEvent();
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100259}
260
261rtc::scoped_refptr<DataChannel>
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100262DataChannelController::InternalCreateDataChannel(
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100263 const std::string& label,
264 const InternalDataChannelInit* config) {
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100265 RTC_DCHECK_RUN_ON(signaling_thread());
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100266 if (pc_->IsClosed()) {
267 return nullptr;
268 }
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100269 if (data_channel_type_ == cricket::DCT_NONE) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100270 RTC_LOG(LS_ERROR)
271 << "InternalCreateDataChannel: Data is not supported in this call.";
272 return nullptr;
273 }
274 InternalDataChannelInit new_config =
275 config ? (*config) : InternalDataChannelInit();
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100276 if (DataChannel::IsSctpLike(data_channel_type_)) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100277 if (new_config.id < 0) {
278 rtc::SSLRole role;
279 if ((pc_->GetSctpSslRole(&role)) &&
280 !sid_allocator_.AllocateSid(role, &new_config.id)) {
281 RTC_LOG(LS_ERROR)
282 << "No id can be allocated for the SCTP data channel.";
283 return nullptr;
284 }
285 } else if (!sid_allocator_.ReserveSid(new_config.id)) {
286 RTC_LOG(LS_ERROR) << "Failed to create a SCTP data channel "
287 "because the id is already in use or out of range.";
288 return nullptr;
289 }
290 }
291
292 rtc::scoped_refptr<DataChannel> channel(
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100293 DataChannel::Create(this, data_channel_type(), label, new_config));
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100294 if (!channel) {
295 sid_allocator_.ReleaseSid(new_config.id);
296 return nullptr;
297 }
298
299 if (channel->data_channel_type() == cricket::DCT_RTP) {
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100300 if (rtp_data_channels_.find(channel->label()) != rtp_data_channels_.end()) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100301 RTC_LOG(LS_ERROR) << "DataChannel with label " << channel->label()
302 << " already exists.";
303 return nullptr;
304 }
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100305 rtp_data_channels_[channel->label()] = channel;
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100306 } else {
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100307 RTC_DCHECK(DataChannel::IsSctpLike(data_channel_type_));
308 sctp_data_channels_.push_back(channel);
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100309 channel->SignalClosed.connect(pc_,
310 &PeerConnection::OnSctpDataChannelClosed);
311 }
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100312 SignalDataChannelCreated_(channel.get());
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100313 return channel;
314}
315
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100316void DataChannelController::AllocateSctpSids(rtc::SSLRole role) {
317 RTC_DCHECK_RUN_ON(signaling_thread());
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100318 std::vector<rtc::scoped_refptr<DataChannel>> channels_to_close;
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100319 for (const auto& channel : sctp_data_channels_) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100320 if (channel->id() < 0) {
321 int sid;
322 if (!sid_allocator_.AllocateSid(role, &sid)) {
323 RTC_LOG(LS_ERROR) << "Failed to allocate SCTP sid, closing channel.";
324 channels_to_close.push_back(channel);
325 continue;
326 }
327 channel->SetSctpSid(sid);
328 }
329 }
330 // Since closing modifies the list of channels, we have to do the actual
331 // closing outside the loop.
332 for (const auto& channel : channels_to_close) {
Harald Alvestranddfbfb462019-12-08 05:55:43 +0100333 channel->CloseAbruptlyWithDataChannelFailure("Failed to allocate SCTP SID");
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100334 }
335}
336
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100337void DataChannelController::OnSctpDataChannelClosed(DataChannel* channel) {
338 RTC_DCHECK_RUN_ON(signaling_thread());
339 for (auto it = sctp_data_channels_.begin(); it != sctp_data_channels_.end();
340 ++it) {
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100341 if (it->get() == channel) {
342 if (channel->id() >= 0) {
343 // After the closing procedure is done, it's safe to use this ID for
344 // another data channel.
345 sid_allocator_.ReleaseSid(channel->id());
346 }
347 // Since this method is triggered by a signal from the DataChannel,
348 // we can't free it directly here; we need to free it asynchronously.
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100349 sctp_data_channels_to_free_.push_back(*it);
350 sctp_data_channels_.erase(it);
Harald Alvestrand246724b2019-12-03 22:31:42 +0100351 signaling_thread()->PostTask(
352 RTC_FROM_HERE, [self = weak_factory_.GetWeakPtr()] {
353 if (self) {
354 RTC_DCHECK_RUN_ON(self->signaling_thread());
355 self->sctp_data_channels_to_free_.clear();
356 }
357 });
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100358 return;
359 }
360 }
361}
362
Harald Alvestrand05e4d082019-12-03 14:04:21 +0100363void DataChannelController::OnTransportChannelClosed() {
364 RTC_DCHECK_RUN_ON(signaling_thread());
365 // Use a temporary copy of the RTP/SCTP DataChannel list because the
366 // DataChannel may callback to us and try to modify the list.
367 std::map<std::string, rtc::scoped_refptr<DataChannel>> temp_rtp_dcs;
368 temp_rtp_dcs.swap(rtp_data_channels_);
369 for (const auto& kv : temp_rtp_dcs) {
370 kv.second->OnTransportChannelClosed();
371 }
372
373 std::vector<rtc::scoped_refptr<DataChannel>> temp_sctp_dcs;
374 temp_sctp_dcs.swap(sctp_data_channels_);
375 for (const auto& channel : temp_sctp_dcs) {
376 channel->OnTransportChannelClosed();
377 }
378}
379
380DataChannel* DataChannelController::FindDataChannelBySid(int sid) const {
381 RTC_DCHECK_RUN_ON(signaling_thread());
382 for (const auto& channel : sctp_data_channels_) {
383 if (channel->id() == sid) {
384 return channel;
385 }
386 }
387 return nullptr;
388}
389
390void DataChannelController::UpdateLocalRtpDataChannels(
391 const cricket::StreamParamsVec& streams) {
392 std::vector<std::string> existing_channels;
393
394 RTC_DCHECK_RUN_ON(signaling_thread());
395 // Find new and active data channels.
396 for (const cricket::StreamParams& params : streams) {
397 // |it->sync_label| is actually the data channel label. The reason is that
398 // we use the same naming of data channels as we do for
399 // MediaStreams and Tracks.
400 // For MediaStreams, the sync_label is the MediaStream label and the
401 // track label is the same as |streamid|.
402 const std::string& channel_label = params.first_stream_id();
403 auto data_channel_it = rtp_data_channels()->find(channel_label);
404 if (data_channel_it == rtp_data_channels()->end()) {
405 RTC_LOG(LS_ERROR) << "channel label not found";
406 continue;
407 }
408 // Set the SSRC the data channel should use for sending.
409 data_channel_it->second->SetSendSsrc(params.first_ssrc());
410 existing_channels.push_back(data_channel_it->first);
411 }
412
413 UpdateClosingRtpDataChannels(existing_channels, true);
414}
415
416void DataChannelController::UpdateRemoteRtpDataChannels(
417 const cricket::StreamParamsVec& streams) {
418 std::vector<std::string> existing_channels;
419
420 RTC_DCHECK_RUN_ON(signaling_thread());
421 // Find new and active data channels.
422 for (const cricket::StreamParams& params : streams) {
423 // The data channel label is either the mslabel or the SSRC if the mslabel
424 // does not exist. Ex a=ssrc:444330170 mslabel:test1.
425 std::string label = params.first_stream_id().empty()
426 ? rtc::ToString(params.first_ssrc())
427 : params.first_stream_id();
428 auto data_channel_it = rtp_data_channels()->find(label);
429 if (data_channel_it == rtp_data_channels()->end()) {
430 // This is a new data channel.
431 CreateRemoteRtpDataChannel(label, params.first_ssrc());
432 } else {
433 data_channel_it->second->SetReceiveSsrc(params.first_ssrc());
434 }
435 existing_channels.push_back(label);
436 }
437
438 UpdateClosingRtpDataChannels(existing_channels, false);
439}
440
441void DataChannelController::UpdateClosingRtpDataChannels(
442 const std::vector<std::string>& active_channels,
443 bool is_local_update) {
444 auto it = rtp_data_channels_.begin();
445 while (it != rtp_data_channels_.end()) {
446 DataChannel* data_channel = it->second;
447 if (absl::c_linear_search(active_channels, data_channel->label())) {
448 ++it;
449 continue;
450 }
451
452 if (is_local_update) {
453 data_channel->SetSendSsrc(0);
454 } else {
455 data_channel->RemotePeerRequestClose();
456 }
457
458 if (data_channel->state() == DataChannel::kClosed) {
459 rtp_data_channels_.erase(it);
460 it = rtp_data_channels_.begin();
461 } else {
462 ++it;
463 }
464 }
465}
466
467void DataChannelController::CreateRemoteRtpDataChannel(const std::string& label,
468 uint32_t remote_ssrc) {
469 rtc::scoped_refptr<DataChannel> channel(
470 InternalCreateDataChannel(label, nullptr));
471 if (!channel.get()) {
472 RTC_LOG(LS_WARNING) << "Remote peer requested a DataChannel but"
473 "CreateDataChannel failed.";
474 return;
475 }
476 channel->SetReceiveSsrc(remote_ssrc);
477 rtc::scoped_refptr<DataChannelInterface> proxy_channel =
478 DataChannelProxy::Create(signaling_thread(), channel);
479 pc_->Observer()->OnDataChannel(std::move(proxy_channel));
480}
481
482rtc::Thread* DataChannelController::network_thread() const {
483 return pc_->network_thread();
484}
485rtc::Thread* DataChannelController::signaling_thread() const {
486 return pc_->signaling_thread();
487}
488
Harald Alvestrand00cf34c2019-12-02 09:56:02 +0100489} // namespace webrtc