/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2016 ForgeRock AS.
*/
#import <AVKit/AVKit.h>
#import <AVFoundation/AVFoundation.h>
#import "FRAAccountsTableViewController.h"
#import "FRAError.h"
#import "FRAIdentityModel.h"
#import "FRASplashEvents.h"
#import "FRASplashViewController.h"
// Used for monitoring the rate property on the AVPlayer
@interface FRASplashViewController ()
@end
- (void)viewDidLoad {
[super viewDidLoad];
// Ensures background color and video first frame are equal.
}
[super viewDidAppear:animated];
// If we have some Identities already, do not show the splash screen.
return;
}
if (bundle) {
return;
}
}
// Configure the video player
[player addObserver:self forKeyPath:AVPLAYER_RATE options:NSKeyValueObservingOptionNew context:NULL];
// Prepare the view which will contain the video player
// Requests the video fills the display area, no scaling.
}
/*!
* Listener to respond to changes from the video player.
*
* Tracking the "rate" status of the video playback is the recommended way to determine
* when the video has completed playback.
*
* Once playback is complete, or there is an error transition to the next view.
*/
return;
}
}
}
-(void)proceed {
UIViewController *accountsViewController = [storyboard instantiateViewControllerWithIdentifier:FRAAccountsViewControllerStoryboardIdentifier];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end