Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: webrtc/examples/objc/AppRTCDemo/ios/ARDAppDelegate.m

Issue 1757173002: Enable iOS AppRTCDemo send side BWE. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Move field trial init earlier. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/objc/RTCFieldTrials.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2013 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
11 #import "ARDAppDelegate.h" 11 #import "ARDAppDelegate.h"
12 12
13 #import "webrtc/base/objc/RTCFieldTrials.h"
13 #import "webrtc/base/objc/RTCTracing.h" 14 #import "webrtc/base/objc/RTCTracing.h"
14 #import "RTCLogging.h" 15 #import "RTCLogging.h"
15 #import "RTCPeerConnectionFactory.h" 16 #import "RTCPeerConnectionFactory.h"
16 17
17 #import "ARDMainViewController.h" 18 #import "ARDMainViewController.h"
18 19
19 @implementation ARDAppDelegate { 20 @implementation ARDAppDelegate {
20 UIWindow *_window; 21 UIWindow *_window;
21 } 22 }
22 23
23 #pragma mark - UIApplicationDelegate methods 24 #pragma mark - UIApplicationDelegate methods
24 25
25 - (BOOL)application:(UIApplication *)application 26 - (BOOL)application:(UIApplication *)application
26 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 27 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
28 RTCInitFieldTrials(RTCFieldTrialOptionsSendSideBwe);
27 [RTCPeerConnectionFactory initializeSSL]; 29 [RTCPeerConnectionFactory initializeSSL];
28 RTCSetupInternalTracer(); 30 RTCSetupInternalTracer();
29 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 31 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
30 [_window makeKeyAndVisible]; 32 [_window makeKeyAndVisible];
31 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; 33 ARDMainViewController *viewController = [[ARDMainViewController alloc] init];
32 _window.rootViewController = viewController; 34 _window.rootViewController = viewController;
33 35
34 #if defined(NDEBUG) 36 #if defined(NDEBUG)
35 // In debug builds the default level is LS_INFO and in non-debug builds it is 37 // In debug builds the default level is LS_INFO and in non-debug builds it is
36 // disabled. Continue to log to console in non-debug builds, but only 38 // disabled. Continue to log to console in non-debug builds, but only
37 // warnings and errors. 39 // warnings and errors.
38 RTCSetMinDebugLogLevel(kRTCLoggingSeverityWarning); 40 RTCSetMinDebugLogLevel(kRTCLoggingSeverityWarning);
39 #endif 41 #endif
40 42
41 return YES; 43 return YES;
42 } 44 }
43 45
44 - (void)applicationWillResignActive:(UIApplication *)application { 46 - (void)applicationWillResignActive:(UIApplication *)application {
45 ARDMainViewController *viewController = 47 ARDMainViewController *viewController =
46 (ARDMainViewController *)_window.rootViewController; 48 (ARDMainViewController *)_window.rootViewController;
47 [viewController applicationWillResignActive:application]; 49 [viewController applicationWillResignActive:application];
48 } 50 }
49 51
50 - (void)applicationWillTerminate:(UIApplication *)application { 52 - (void)applicationWillTerminate:(UIApplication *)application {
51 RTCShutdownInternalTracer(); 53 RTCShutdownInternalTracer();
52 [RTCPeerConnectionFactory deinitializeSSL]; 54 [RTCPeerConnectionFactory deinitializeSSL];
53 } 55 }
54 56
55 @end 57 @end
OLDNEW
« no previous file with comments | « webrtc/base/objc/RTCFieldTrials.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698