OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 forState:UIControlStateNormal]; | 297 forState:UIControlStateNormal]; |
298 [_audioLoopButton sizeToFit]; | 298 [_audioLoopButton sizeToFit]; |
299 } | 299 } |
300 } | 300 } |
301 | 301 |
302 - (void)onToggleAudioLoop:(id)sender { | 302 - (void)onToggleAudioLoop:(id)sender { |
303 [_delegate mainViewDidToggleAudioLoop:self]; | 303 [_delegate mainViewDidToggleAudioLoop:self]; |
304 } | 304 } |
305 | 305 |
306 - (void)onStartCall:(id)sender { | 306 - (void)onStartCall:(id)sender { |
307 NSString *room = _roomText.roomText; | |
308 // If this is a loopback call, allow a generated room name. | |
309 if (!room.length && _loopbackSwitch.isOn) { | |
310 room = [[NSUUID UUID] UUIDString]; | |
311 } | |
312 room = [room stringByReplacingOccurrencesOfString:@"-" withString:@""]; | |
313 [_delegate mainView:self | 307 [_delegate mainView:self |
314 didInputRoom:room | 308 didInputRoom:_roomText.roomText |
315 isLoopback:_loopbackSwitch.isOn | 309 isLoopback:_loopbackSwitch.isOn |
316 isAudioOnly:_audioOnlySwitch.isOn | 310 isAudioOnly:_audioOnlySwitch.isOn |
317 shouldMakeAecDump:_aecdumpSwitch.isOn | 311 shouldMakeAecDump:_aecdumpSwitch.isOn |
318 shouldUseLevelControl:_levelControlSwitch.isOn | 312 shouldUseLevelControl:_levelControlSwitch.isOn |
319 useManualAudio:_useManualAudioSwitch.isOn]; | 313 useManualAudio:_useManualAudioSwitch.isOn]; |
320 } | 314 } |
321 | 315 |
322 @end | 316 @end |
OLD | NEW |