diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdPlugin.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdPlugin.h deleted file mode 100644 index 264d02fe4..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdPlugin.h +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @class OOAdPlugin OOAdPlugin.h "OOAdPlugin.h" - * @brief OOAdPlugin - * @details OOAdPlugin.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -#import "OOPlayerProtocol.h" -#import "OOLifeCycle.h" - -@protocol OOAdPlugin - -/** - * This is called when content changed - * - * @return true if plugin want to enter admode, false otherwise - */ -- (BOOL)onContentChanged; - -/** - * This is called before start playing content so plugin can play preroll - * - * @return true if plugin want to enter admode, false otherwise - */ -- (BOOL)onInitialPlay; - -/** - * This is called when playhead is updated so plugin can play midroll - * - * @return true if plugin want to enter admode, false otherwise - */ -- (BOOL)onPlayheadUpdate:(Float64)playhead; - -/** - * This is called before finishing playing content so plugin can play postroll - * - * @return true if plugin want to enter admode, false otherwise - */ -- (BOOL)onContentFinished; // put your postrolls here - -/** - * This is called when a cue point is reached so plugin can play midroll - * - * @return true if plugin want to enter admode, false otherwise - */ -- (BOOL)onCuePoint:(int)cuePointIndex; - -/** - * This is called when an error occured when playing back content - * - * @return true if plugin want to enter admode, false otherwise - */ -- (BOOL)onContentError:(int)errorCode; - -/** - * This is called when control is handed over to the plugin - * - * @param token - * passed from plugin in previous calls. - */ -- (void)onAdModeEntered; - -/** - * This is called ooyala UI pass down UI related events. - * - * @return an object that implements PlayerInterface if plugin needs to - * process ui events, null if these events should be ignored. - */ -- (id)player; - -/** - * This is called to reset all ads to unplayed. - */ -- (void)resetAds; - -/** - * This is called to skip the current ad. - * - */ -- (void)skipAd; - -/** - * @return non-nil (possibly empty) array of cue point times for ads. - */ -- (NSSet*/**/)getCuePointsAtSeconds; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdPluginManagerProtocol.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdPluginManagerProtocol.h deleted file mode 100644 index 1c089318a..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdPluginManagerProtocol.h +++ /dev/null @@ -1,64 +0,0 @@ -// -// OOAdPluginManagerProtocol.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import -#import "OOAdPlugin.h" - -/** - * Defines player behavior after video playback has ended, defaults to OOOoyalaPlayerActionAtEndContinue - */ -typedef enum -{ - OOAdModeNone, - OOAdModeContentChanged, - OOAdModeInitialPlay, - OOAdModePlayhead, - OOAdModeCuePoint, - OOAdModeContentFinished, - OOAdModeContentError, - OOAdModePluginInitiated -} OOAdMode; - -@protocol OOAdPluginManagerProtocol - -/** - * Register an Ad plugin - * - * @param plugin - * the plugin to be registered - * @return true on success, false otherwise - */ -- (BOOL)registerPlugin:(id)plugin; - -/** - * deregister an Ad plugin - * - * @param plugin - * the plugin to be deregistered - * @return true on success, false otherwise - */ -- (BOOL)deregisterPlugin:(id)plugin; - -/** - * called when plugin exits ad mode - * - * @param plugin - * the plugin that exits - * @return true on success, false otherwise - */ -- (BOOL)exitAdMode:(id)plugin; - -/** - * called when plugin request ad mode - * - * @param plugin - * the plugin that request ad mode - * @return true on success, false otherwise - */ -- (BOOL)requestAdMode:(id)plugin; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpot.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpot.h deleted file mode 100644 index 396fa0490..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpot.h +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @class OOAdSpot OOAdSpot.h "OOAdSpot.h" - * @brief OOAdSpot - * @details OOAdSpot.h in OoyalaSDK - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -/** - * A Generic class to hold AdSpot time info - */ -@interface OOAdSpot : NSObject - -/** time to play the ad in second */ -@property NSNumber *time; - -/** - * Initialize an ad spot with time - * @param[in] t the ad spot time - * @returns initialized ad spot - */ -- (id)initWithTime:(NSNumber *)t; - -/** - * compare two ad spots based on their time * - * @param[in] other the other object to compare - * @returns compare results as NSComparisonResult - */ -- (NSComparisonResult)compare:(OOAdSpot *)other; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpotManager.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpotManager.h deleted file mode 100644 index 25a147142..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpotManager.h +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @class OOAdSpotManager OOAdSpotManager.h "OOAdSpotManager.h" - * @brief OOAdSpotManager - * @details OOAdSpotManager.h in OoyalaSDK - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "CoreMedia/CMTime.h" -#import -#import "OOAdSpot.h" - -/** - * A class that manages a list of ad spots for a content - */ -@interface OOAdSpotManager : NSObject - -/** -* @return non-nil (possibly empty) NSNumber (int in seconds) set of cue point times for ads. -*/ -- (NSSet*)getCuePointsAtSeconds; - -/** - * Mark all adspots as unplayed - */ -- (void)resetAds; - -/** - * Clear all adspots - */ -- (void)clear; - -/** - * Insert an adSpot - * - * @param ad - * the adSpot to insert - */ -- (void)insertAd:(OOAdSpot *)ad; - -/** - * Insert an adSpot - * - * @param adSpots - * the adSpot to insert - */ -- (void)insertAds:(NSArray *)adSpots; - -/** - * get the adspot before a certain time, - * - * @param time - * in CMTime - * @returns the unplayed adspot before the specified time which, null if no - * such adspot - */ -- (OOAdSpot *)adBeforeTime:(Float64)time; - -/** - * mark an adspot as played - * - * @param ad - * the adspot to be marked - */ -- (void)markAsPlayed:(OOAdSpot *)ad; - -/** - * get the adspot list size - * - * @returns size - */ -- (NSUInteger)count; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpotPlugin.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpotPlugin.h deleted file mode 100644 index d90bdf391..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdSpotPlugin.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// OODefaultAdsPlugin.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -#import "OOAdPlugin.h" -#import "OOAdSpotManager.h" - -#define PLUGIN_INIT -2 -#define CONTENT_CHANGED -1 - -@protocol OOAdSpotPluginDelegate - -- (BOOL)playAd:(OOAdSpot *)ad; - -@end - -@interface OOAdSpotPlugin : NSObject - -@property (readonly) Float64 lastAdModeTime; -@property (readonly) OOAdSpotManager *adSpotManager; -@property (nonatomic, weak) id delegate; - -- (BOOL)playAdsBeforeTime; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdsLearnMoreButton.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdsLearnMoreButton.h deleted file mode 100644 index ca982cacd..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAdsLearnMoreButton.h +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @class OOAdsLearnMoreButton OOAdsLearnMoreButton.h "OOAdsLearnMoreButton.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOAdMoviePlayer.h" - -/** - A button that enables the customer to click on an advertisement, and learn more about the ad - */ -@interface OOAdsLearnMoreButton : UIView - -/** - Initializes the learn more button, to be connected to a specific Ad Player - @param[in] AdsPlayer the Ad Player to interface with - @returns an initialized OOAdsLearnMoreButton - */ --(id)initWithAdPlayer:(OOAdMoviePlayer *) AdsPlayer; -/** - Removes the button from the superview, but does not deallocate completely - */ --(void)deleteButton; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAnalytics.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAnalytics.h deleted file mode 100644 index ad3e12393..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAnalytics.h +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @class OOAnalytics OOAnalytics.h "OOAnalytics.h" - * @brief OOAnalytics - * @details OOAnalytics.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import -#import "OOOoyalaAPIClient.h" - -/** - * Ooyala analytics implementation. - * Normally used internally by Ooyala SDK and doesn't need to be referenced by app code. - */ -@interface OOAnalytics : NSObject - -@property(readonly, nonatomic) BOOL ready; /**< @internal YES if OOAnalytics is ready to accept events, NO if not */ -@property(readonly, nonatomic) BOOL failed; /**< @internal YES if OOAnalytics failed to load, NO if not */ -@property(nonatomic, strong) NSString *userAgent; - -/** @internal - * Initialize an OOAnalytics using the specified api and module params - * @param[in] api the API to initialize this OOAnalytics with - * @param[in] moduleParams additional ModuleParams to initialize Analytics with - * @returns the initialized OOAnalytics - */ -- (id)initWithAPI:(OOOoyalaAPIClient *)api moduleParams:(NSDictionary *)moduleParams; - -/** @internal - * Initialize an OOAnalytics using the specified api and HTML - * @note [jigish]: this is here purely to be able to test this class - * @param[in] api the API to initialize this OOAnalytics with - * @param[in] embedHTML the HTML to use when initializing this OOAnalytics - * @returns the initialized OOAnalytics - */ -- (id)initWithAPI:(OOOoyalaAPIClient *)api embedHTML:(NSString *)theEmbedHTML; - -/** - * Report a new video being initialized with the given embed code and duration - * @param[in] embedCode the embed code of the new video - * @param[in] duration the duration (in seconds) of the new video - */ -- (void)initializeVideoWithEmbedCode:(NSString *)embedCode duration:(NSNumber *)duration; - -/** - * Report a playhead update to the specified time - * @param[in] time the new playhead time (in seconds) - */ -- (void)reportPlayheadUpdateToTime:(NSNumber *)time; - -/** - * Report that the player was asked to play - */ -- (void)reportPlayRequested; - -/** - * Report that the player has started playing - */ -- (void)reportPlayStarted; - -/** - * Report that the player was asked to replay - */ -- (void)reportReplay; - -/** @internal - * Delegate method for UIWebView for when the UIWebView finishes loading - * @param[in] webView the UIWebView that finished loading - */ -- (void)webViewDidFinishLoad:(UIWebView *)webView; - -/** @internal - * Delegate method for UIWebView for when the UIWebView fails to load - * @param[in] webView the UIWebView that failed to load - * @param[in] error the NSError explaining the failure - */ -- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error; - -/** - * Sets a tag for custom analytics - * @param[in] tags - */ -- (void)setTags:(NSArray *)tags; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAuthorizableItem.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAuthorizableItem.h deleted file mode 100644 index 6060f14e9..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOAuthorizableItem.h +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @file OOAuthorizableItem.h - * @protocol OOAuthorizableItem OOAuthorizableItem.h "OOAuthorizableItem.h" - * @brief OOAuthorizableItem - * @details OOAuthorizableItem.h in OoyalaSDK - * @date 11/29/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOReturnState.h" - -/** - * Authorize response codes - */ -typedef enum { - OOAuthCodeUnknown = -2, /**< The authorization code was invalid */ - OOAuthCodeNotRequested = -1, /**< The authorization has not been requested for this item */ - OOAuthCodeMin = 0, /**< The minimum value for auth codes from the server */ - OOAuthCodeAuthorized = 0, /**< The item is authorized */ - OOAuthCodeUnauthorizedParent = 1, /**< The item's parent is unauthorized */ - OOAuthCodeUnauthorizedDomain = 2, /**< The item is not authorized for this domain */ - OOAuthCodeUnauthorizedLocation = 3, /**< The item is not authorized for this location */ - OOAuthCodeBeforeFlightTime = 4, /**< The item has been requested before its flight time */ - OOAuthCodeAfterFlightTime = 5, /**< The item has been requested after its flight time */ - OOAuthCodeOutsideRecurringFlightTimes = 6, /**< The item has been requested outside of its recurring flight time */ - OOAuthCodeBadEmbedCode = 7 , /**< The item's embed code is invalid */ - OOAuthCodeInvalidSignature = 8, /**< The signature of the request is invalid */ - OOAuthCodeMissingParams = 9, /**< The request had missing params */ - OOAuthCodeMissingRuleSet = 10, /**< The server is missing its rule set */ - OOAuthCodeUnauthorized = 11, /**< The item is unauthorized */ - OOAuthCodeMissingPcode = 12, /**< The request was missing the pcode */ - OOAuthCodeUnauthorizedDevice = 13, /**< The item is not authorized for this device */ - OOAuthCodeInvalidToken = 14, /**< The request's token was invalid */ - OOAuthCodeTokenExpired = 15, /**< The request's token was expired */ - OOAuthCodeUnauthorizedMultiSyndGroup = 16, - OOAuthCodeProviderDeleted = 17, - OOAuthCodeTooManyActiveStreams = 18, - OOAuthCodeMissingAccountId = 19, - OOAuthCodeNoEntitlementsFound = 20, - OOAuthCodeNonEntitledDevice = 21, - OOAuthCodeNonRegisteredDevice = 22, - OOAuthCodeProviderOverCapTrial = 23, - OOAuthCodeProxyDetected = 24, - OOAuthCodeMax = 24 /**< The maximum value for auth codes from the server */ -} OOAuthCode; - -/** - * A protocol that represents a content item that requires authorization to play. - */ -@protocol OOAuthorizableItem - -/** @internal - * Update the OOContentItem using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOContentItem - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** @internal - * The embed code for the OOAuthorizableItem - * @returns the embed codes to authorize as an NSArray - */ -- (NSArray *)embedCodesToAuthorize; - -/** - * Whether or not this OOAuthorizableItem is authorized - * @returns YES if authorized, NO if not - */ -- (BOOL)authorized; - -/** - * The OOAuthCode from the authorization request - * @returns an OOAuthCode with the status of the authorization request - */ -- (OOAuthCode)authCode; - -@property (nonatomic, assign) BOOL heartbeatRequired; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOBufferView.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOBufferView.h deleted file mode 100644 index 86f3554a1..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOBufferView.h +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @class OOBufferView OOBufferView.h "OOBufferView.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOUIProgressSliderIOS7.h" - -/** - A wrappper of the Progress Slider that allows a view for the buffering duration to appear - */ -@interface OOBufferView : UIView -/** - Initialize with a frame. This method is not available. Use initWithFrame:slider: instead - */ -- (instancetype)initWithFrame:(CGRect)frame __attribute__((unavailable("Use initWithFrame:slider: instead"))); - -/** - Initialize the Buffer View with an existing Progress Slider - @param[in] frame the CGFrame to render the View in - @param[in] slider the existing UIProgressSlider render with - @returns an initialized OOBufferView, or nil - */ -- (instancetype)initWithFrame:(CGRect)frame slider:(OOUIProgressSliderIOS7*)slider; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCallbacks.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCallbacks.h deleted file mode 100644 index c1d152f5a..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCallbacks.h +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @file OOCallbacks.h - * @headerfile OOCallbacks.h "OOCallbacks.h" - * @brief OOCallbacks - * @details OOCallbacks.h in OoyalaSDK - * @date 2/2/12 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#ifndef OoyalaSDK_Callbacks_h -#define OoyalaSDK_Callbacks_h - -@class OOVideo; -@class OOContentItem; -@class OOOoyalaError; - -/** - * The callback called when the current item is changed in an OOOoyalaPlayer - * @param[in] currentItem the new current item - */ -typedef void(^OOCurrentItemChangedCallback)(OOVideo *currentItem); - -/** - * The callback used for OOOoyalaAPIClient.contentTree:callback: calls - * @param[in] contentItem the root content item fetched in the contentTree call - * @param[in] error the OOOoyalaError if one occurreds - */ -typedef void(^OOContentTreeCallback)(OOContentItem *contentItem, OOOoyalaError *error); - -/** - * The callback used for OOOoyalaAPIClient.contentTreeNext:callback: calls - * @param[in] range the NSRange denoting the new children added - * @param[in] error the OOOoyalaError if one occurred - */ -typedef void(^OOContentTreeNextCallback)(NSRange range, OOOoyalaError *error); - -/** - * The callback used for OOOoyalaAPIClient.metadata:params:callback: calls - * @param[in] error the OOOoyalaError if one occurred - */ -typedef void(^OOMetadataDictionaryFromAPICallback)(OOOoyalaError *error); - -/** - * The callback used for OOPaginatedParentItem.fetchMoreChildren: calls. - * @param[in] range the NSRange denoting the start index of the new children and the number of new children fetched - * @param[in] error an OOOoyalaError denoting what error occurred (nil if no error) - */ -typedef void(^OOFetchMoreChildrenCallback)(NSRange range, OOOoyalaError *error); - -/** - * The callback used for OOOoyalaAPIClient.objectFromBacklotAPI:params:callback: calls - * @param[in] object the NSArray or NSDictionary returned from the backlot API - */ -typedef void(^OOObjectFromBacklotAPICallback)(NSObject *object); - -#endif diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCaption.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCaption.h deleted file mode 100644 index 5a9169624..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCaption.h +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @class OOCaption OOCaption.h "OOCaption.h" - * @brief OOCaption - * @details OOCaption.h in OoyalaSDK - * @date 12/12/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOTBXML.h" - -/** - * Single timed text item - */ -@interface OOCaption : NSObject { -@protected - Float64 begin; - Float64 end; - NSString *text; -} - -/** Time when the text should appear */ -@property(readonly, nonatomic) Float64 begin; -/** Time when the text should disappear */ -@property(readonly, nonatomic) Float64 end; -/** Text string to appear */ -@property(readonly, nonatomic, strong) NSString *text; - -/** @internal - * Initialize a OOCaption using the specified xml (subclasses should override this) - * @param[in] xml the OOTBXMLElement containing the p xml element to use to initialize this OOCaption - * @returns the initialized OOCaption - */ -- (id)initWithXML:(OOTBXMLElement *)xml; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOChannel.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOChannel.h deleted file mode 100644 index cc40b662c..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOChannel.h +++ /dev/null @@ -1,122 +0,0 @@ -/** - * @class OOChannel OOChannel.h "OOChannel.h" - * @brief OOChannel - * @details OOChannel.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOContentItem.h" -#import "OOPaginatedParentItem.h" - -@class OOOrderedDictionary; -@class OOVideo; -@class OOChannelSet; -@class OOOoyalaError; - -/** - * A OOContentItem which contains other items, representing a single channel as defined in Backlot. - */ -@interface OOChannel : OOContentItem { -@protected - OOOrderedDictionary *videos; - OOChannelSet *parent; -} - -@property(readonly, nonatomic, strong) NSString *nextChildren; /**< @internal the next children token */ -@property(readonly, nonatomic, strong) OOOrderedDictionary *videos; /**< The OOChannel's videos (keyed by embed code) */ -@property(readonly, nonatomic, strong) OOChannelSet *parent; /**< This OOChannel's parent OOChannelSet if it exists */ - -/** @internal - * Initialize a OOChannel using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOChannel - * @param[in] theEmbedCode the embed code to fetch from the dictionary - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOChannel - * @returns the initialized OOChannel - */ -- (id)initWithDictionary:(NSDictionary *)data embedCode:(NSString *)theEmbedCode api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Initialize a OOChannel using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOChannel - * @param[in] theEmbedCode the embed code to fetch from the dictionary - * @param[in] theParent the parent OOChannelSet of this OOChannel - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOChannel - * @returns the initialized OOChannel - */ -- (id)initWithDictionary:(NSDictionary *)data embedCode:(NSString *)theEmbedCode parent:(OOChannelSet *)theParent api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Update the OOChannel using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOChannel - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** - * Get the first OOVideo for this OOChannel - * @returns the first OOVideo this OOChannel represents - */ -- (OOVideo *)firstVideo; - -/** - * Get the last OOVideo for this OOChannel - * @returns the last OOVideo this OOChannel represents - */ -- (OOVideo *)lastVideo; - -/** @internal - * Get the next OOVideo for this OOChannel - * @param[in] currentItem the current OOVideo - * @returns the next OOVideo from OOChannel - */ -- (OOVideo *)nextVideo:(OOVideo *)currentItem; - -/** @internal - * Get the previous OOVideo for this OOChannel - * @param[in] currentItem the current OOVideo - * @returns the previous OOVideo from OOChannel - */ -- (OOVideo *)previousVideo:(OOVideo *)currentItem; - -/** @internal - * Get the OOVideo in this OOChannel with the specified embed code - * @param[in] embedCode the embed code to look up - * @param[in] currentItem the current OOVideo - * @returns the video in this channel with the specified embed code - */ -- (OOVideo *)videoFromEmbedCode:(NSString *)embedCode withCurrentItem:(OOVideo *)currentItem; - -/** - * Find out it this OOChannel has more children - * @returns YES if it does, NO if it doesn't - */ -- (BOOL)hasMoreChildren; - -/** - * Fetch the additional children if they exist. This will happen in the background and callback will be called when the fetch is complete. - * @param[in] callback the callback to execute when the children are fetched - * @returns YES if more children exist, NO if they don't or they are already in the process of being fetched - */ -- (BOOL)fetchMoreChildren:(OOFetchMoreChildrenCallback)callback; - -/** @internal - * Fetch and authorize more children if they exist. This method is thread safe. - * @param[in] callback the callback to execute when the children are fetched - * @returns YES if more children exist, NO if they don't or they are already in the process of being fetched - */ -- (BOOL)fetchAndAuthorizeMoreChildren:(OOFetchMoreChildrenCallback)callback; - -/** - * The number of videos this OOChannel has. Same as [videos count]. - * @returns an NSUInteger with the number of videos - */ -- (NSUInteger)childrenCount; - -/** - * The total duration (not including Ads) of this OOChannel - * @returns an Float64 with the total duration in seconds - */ -- (Float64)duration; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOChannelSet.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOChannelSet.h deleted file mode 100644 index 009befd50..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOChannelSet.h +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @class OOChannelSet OOChannelSet.h "OOChannelSet.h" - * @brief OOChannelSet - * @details OOChannelSet.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOContentItem.h" -#import "OOPaginatedParentItem.h" - -@class OOOrderedDictionary; -@class OOChannel; -@class OOOoyalaError; - -/** - * A OOContentItem which contains channels, representing a single channel set as defined in Backlot. - */ -@interface OOChannelSet : OOContentItem { -@protected - OOOrderedDictionary *channels; -} - -@property(readonly, nonatomic, strong) NSString *nextChildren; /**< @internal the next children token */ -@property(readonly, nonatomic, strong) OOOrderedDictionary *channels; /**< The OOChannelSet's channels (keyed by embed code) */ - -/** @internal - * Initialize a OOContentItem using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOChannelSet - * @param[in] theEmbedCode the embed code to fetch from the dictionary - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOChannelSet - * @returns the initialized OOChannelSet - */ -- (id)initWithDictionary:(NSDictionary *)data embedCode:(NSString *)theEmbedCode api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Update the OOChannelSet using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOChannelSet - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** - * Get the first OOVideo for this OOChannelSet - * @returns the first OOVideo this OOChannelSet represents - */ -- (OOVideo *)firstVideo; - -/** @internal - * Get the next OOVideo for this OOChannelSet (this method should only be called at the end of a channel) - * @param[in] currentItem the current OOChannel - * @returns the next OOVideo from OOChannelSet - */ -- (OOVideo *)nextVideo:(OOChannel *)currentItem; - -/** @internal - * Get the previous OOVideo for this OOChannelSet (this method should only be called at the end of a channel) - * @param[in] currentItem the current OOChannel - * @returns the previous OOVideo from OOChannelSet - */ -- (OOVideo *)previousVideo:(OOChannel *)currentItem; - -/** @internal - * Get the OOVideo in this OOChannelSet with the specified embed code - * @param[in] embedCode the embed code to look up - * @param[in] currentItem the current OOVideo - * @returns the video in this OOChannelSet with the specified embed code - */ -- (OOVideo *)videoFromEmbedCode:(NSString *)embedCode withCurrentItem:(OOVideo *)currentItem; - -/** - * Find out it this OOChannelSet has more children - * @returns YES if it does, NO if it doesn't - */ -- (BOOL)hasMoreChildren; - -/** - * Fetch the additional children if they exist - * @param[in] callback the callback to execute when the children are fetched - * @returns YES if more children exist, NO if they don't or they are already in the process of being fetched - */ -- (BOOL)fetchMoreChildren:(OOFetchMoreChildrenCallback)callback; - -/** @internal - * Fetch and authorize more children if they exist. This method is thread safe. - * @param[in] callback the callback to execute when the children are fetched - * @returns YES if more children exist, NO if they don't or they are already in the process of being fetched - */ -- (BOOL)fetchAndAuthorizeMoreChildren:(OOFetchMoreChildrenCallback)callback; - -/** - * The number of channels this OOChannelSet has. Same as [channels count]. - * @returns an NSUInteger with the number of channels - */ -- (NSUInteger)childrenCount; - -/** - * The total duration (not including Ads) of this OOChannelSet. This only accounts for currently loaded channels. - * @returns an Float64 with the total duration in seconds - */ -- (Float64)duration; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClientId.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClientId.h deleted file mode 100644 index a2ce460f1..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClientId.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @file OOClientId.h - * @headerfile OOClientId.h "OOClientId.h" - * @brief OOClientId - * @details OOClientId.h in OoyalaSDK - * @date 7/29/14 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -@interface OOClientId : NSObject -/** - * Get a client ID - * @returns the UUID that persists across launch - */ -+ (NSString *)getId; - -/** - * Set the id that overrides the default value - * Ooyala WILL NOT persist this id so user needs to call this - * every time the app is launched - * @param[in] clientId the id string customer like to use - */ -+ (void)setId:(NSString *)clientId; - -/** - * Clear the id. - * When getId is called, a new id will be generated - */ -+ (void)resetId; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptions.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptions.h deleted file mode 100644 index 48d9d9fca..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptions.h +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @class OOClosedCaptions OOClosedCaptions.h "OOClosedCaptions.h" - * @brief OOClosedCaptions - * @details OOClosedCaptions.h in OoyalaSDK - * @date 12/12/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOReturnState.h" - -@class OOCaption; - -/** - * A set of `OOCaption`s associated with specific content movie - */ -@interface OOClosedCaptions : NSObject { -@protected - NSMutableArray *languages; - NSURL *url; - NSString *defaultLanguage; -} - -/** List of available langauges */ -@property(readonly, nonatomic, strong) NSMutableArray *languages; -/** Default close caption langauge */ -@property(readonly, nonatomic, strong) NSString *defaultLanguage; -/** URL of the close captions source file */ -@property(readonly, nonatomic, strong) NSURL *url; - -/** - * INTERNAL - * @internal - * Initialize a OOClosedCaptions using the specified data (subclasses should override this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOClosedCaptions - * @returns the initialized OOClosedCaptions - */ -- (id)initWithDictionary:(NSDictionary *)data; - -/** - * INTERNAL - * @internal - * Update the OOClosedCaptions using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOClosedCaptions - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** - * INTERNAL - * @internal - * Fetch the closed captions information from the url - * @returns YES if the fetch succeeded, NO if not - */ -- (BOOL)fetchClosedCaptionsInfo; - -/** - * Fetch the closed captions for the given language - * @param[in] language the language to fetch (if nil, empty, or not on languages, defaultLanguage will be used) - * @returns and NSArray containing the OOCaption objects - */ -- (NSArray *)closedCaptionsForLanguage:(NSString *)language; - -/** - * Fetch the OOCaption for a given language at the given time (in milliseconds) - * @param[in] language the language for which to fetch the OOCaption - * @param[in] time the time in seconds - * @returns the OOCaption if it exists for that language and time combination, nil otherwise - */ -- (OOCaption *)captionForLanguage:(NSString *)language time:(Float64)time; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsButton.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsButton.h deleted file mode 100644 index 15f3f4e13..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsButton.h +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @class OOClosedCaptionsButton OOClosedCaptionsButton.h "OOClosedCaptionsButton.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import - -/** - A button that has a closed captions icon. This button has no default actions or targets - */ -@interface OOClosedCaptionsButton : UIBarButtonItem - -/** - Initialize an OOClosedCaptionsButton - @param[in] scale a multiplier to resize the button - @returns an initialized OOClosedCaptionsButton, or nil - */ -- (id) initWithScale:(CGFloat)scale; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsSelectorBackgroundViewController.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsSelectorBackgroundViewController.h deleted file mode 100644 index 90680a83e..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsSelectorBackgroundViewController.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// OOClosedCaptionsSelectorBackgroundViewController.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import -#import "OOClosedCaptionsSelectorViewController.h" - -@interface OOClosedCaptionsSelectorBackgroundViewController : UIViewController --(id) initWithSelectorView:(OOClosedCaptionsSelectorViewController*) selectorController; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsSelectorViewController.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsSelectorViewController.h deleted file mode 100644 index 5f6e03e42..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsSelectorViewController.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// OOClosedCaptionsSelectorViewController.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// -// This class represents the view that lets users select a closed captions, or enabling subtitles. -// -// - -#import -#import "OOOoyalaPlayer.h" - -@interface OOClosedCaptionsSelectorViewController : UITableViewController - -- (id)initWithPlayer:(OOOoyalaPlayer *)p; - - /** - * Sets the popover that launched this viewcontroller - */ -- (void)setPopover:(UIPopoverController *)pop; --(void) dismiss; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsStyle.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsStyle.h deleted file mode 100644 index 14f36c564..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOClosedCaptionsStyle.h +++ /dev/null @@ -1,75 +0,0 @@ - -/** - * @class OOClosedCaptionsStyle OOClosedCaptionsStyle.h "OOClosedCaptionsStyle.h" - * @brief OOClosedCaptionsStyle - * @details OOClosedCaptionsStyle.h in OoyalaSDK - * @date 1/31/12 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import -#import -#import -#import - -/** - * Defines text style to be used when displaying closed captions. - */ -@interface OOClosedCaptionsStyle : NSObject - -/** Closed captions text color */ -@property (nonatomic, strong) UIColor *textColor; - -/** Closed captions text opacity (between opaque and semi-transparent) */ -@property (nonatomic) CGFloat textOpacity; - -/** Closed caption text size (from 50% to 200% of default size) */ -@property (nonatomic) NSInteger textSize; - -/** Closed captions text font name */ -@property (nonatomic, strong) NSString* textFontName; - -/** Closed captions window color */ -@property (nonatomic, strong) UIColor* windowColor; - -/** Closed captions window opacity */ -@property (nonatomic) CGFloat windowOpacity; - -/** Closed captions presentation, deprecatged */ -typedef enum { - /** text that appears all at once */ - OOClosedCaptionPopOn, - /** text that scrolls up as new text appears */ - OOClosedCaptionRollUp, - /** text where each new letter or word is displayed as it arrives */ - OOClosedCaptionPaintOn -} OOClosedCaptionPresentation; - -/** Closed captions presentation */ -@property (nonatomic) OOClosedCaptionPresentation presentation; - -/** Closed captions edge attributes */ -@property (nonatomic) MACaptionAppearanceTextEdgeStyle edgeStyle; - -/** The type of captions that should be displayed */ -@property (nonatomic) MACaptionAppearanceDisplayType displayType; - - -/** This is the background of text itself instead of the backgound of the window holding the text - * So in our SDK when we mention "background" we mean the " window" in this case - * Closed captions background color - */ -@property (nonatomic, strong) UIColor *backgroundColor; - - -/** Closed captions background opacity (between opaque and semi-transparent) - * This this is only used for classic settings in device otherwise we choose windowOpacity for background opacity - */ -@property (nonatomic) CGFloat backgroundOpacity; - -/** - * update closed caption style - */ -- (void) updateStyle; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOContentItem.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOContentItem.h deleted file mode 100644 index 67c5a17d5..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOContentItem.h +++ /dev/null @@ -1,121 +0,0 @@ -/** - * @class OOContentItem OOContentItem.h "OOContentItem.h" - * @brief OOContentItem - * @details OOContentItem.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOAuthorizableItem.h" - -@class OOPlayerAPIClient; -@class OOVideo; -@class OOFCCTVRating; - -/** - * A single playable content item, such as video - */ -@interface OOContentItem : NSObject { -@protected - NSString *embedCode; - NSString *externalId; - NSString *title; - NSString *itemDescription; - NSString *promoImageURL; - OOPlayerAPIClient *api; - BOOL authorized; - OOAuthCode authCode; -} - -@property(readonly, nonatomic, strong) NSString *embedCode; /**< The OOContentItem's Embed Code */ -@property(readonly, nonatomic, strong) NSString *externalId; /**< The OOContentItem's External ID if it exists */ -@property(readonly, nonatomic, strong) NSString *title; /**< The OOContentItem's Title */ -@property(readonly, nonatomic, strong) NSString *itemDescription; /**< The OOContentItem's Description */ -@property(readonly, nonatomic, strong) NSString *promoImageURL; /**< The OOContentItem's Promo Image URL */ -@property(readonly, nonatomic, strong) OOPlayerAPIClient *api; /**< @internal The API that was used to fetch the OOContentItem */ -@property(readonly, nonatomic) BOOL authorized; /**< Whether or not this OOContentItem is authorized */ -@property(readonly, nonatomic) OOAuthCode authCode; /**< The response code from the authorize call */ -@property (readonly, nonatomic, strong) NSDictionary *metadata; -@property (readonly, nonatomic, strong) NSDictionary *moduleData; -@property (nonatomic, assign) BOOL heartbeatRequired; -@property (readonly, nonatomic) OOFCCTVRating *tvRating; - -/** - * Initialize a OOContentItem - * @param[in] theEmbedCode the embed code - * @param[in] theTitle the title - * @param[in] theDescription the description - * @returns the initialized OOContentItem - */ -- (id)initWithEmbedCode:(NSString *)theEmbedCode title:(NSString *)theTitle description:(NSString *)theDescription; - -/** @internal - * Initialize a OOContentItem using the specified data (subclasses should override this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOContentItem - * @param[in] theEmbedCode the embed code to fetch from the dictionary - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOContentItem - * @returns the initialized OOContentItem - */ -- (id)initWithDictionary:(NSDictionary *)data embedCode:(NSString *)theEmbedCode api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Update the OOContentItem using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOContentItem - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** - * Get the promo image URL for this content item that will be at least the specified dimensions - * @param[in] width the minimum width - * @param[in] height the minimum height - * @returns a string containing the promo image URL - */ -- (NSString *)getPromoImageURLForWidth:(NSInteger)width height:(NSInteger)height; - -/** @internal - * The embed codes to authorize - * @returns the embed codes to authorize as an NSArray - */ -- (NSArray *)embedCodesToAuthorize; - -/** - * Get the first OOVideo for this OOContentItem - * @returns the first OOVideo this OOContentItem represents - */ -- (OOVideo *)firstVideo; - -/** @internal - * Get the OOVideo in this OOContentItem with the specified embed code - * @param[in] embedCode the embed code to look up - * @param[in] currentItem the current OOVideo - * @returns the video in this OOContentItem with the specified embed code - */ -- (OOVideo *)videoFromEmbedCode:(NSString *)embedCode withCurrentItem:(OOVideo *)currentItem; - -/** @internal - * Create a OOContentItem from the given data - * @param[in] data the data to create the OOContentItem with - * @param[in] embedCode the embed code to fetch from the dictionary - * @param[in] api the OOPlayerAPIClient that was used to fetch this OOContentItem - * @returns the created OOContentItem (could be a Movie, OOChannel, or OOChannelSet) - */ -+ (OOContentItem *)contentItemFromDictionary:(NSDictionary *)data embedCode:(NSString *)embedCode api:(OOPlayerAPIClient *)api; - -/** @internal - * Create a OOContentItem from the given data - * @param[in] data the data to create the OOContentItem with - * @param[in] embedCodes the embed codes to fetch from the dictionary - * @param[in] api the OOPlayerAPIClient that was used to fetch this OOContentItem - * @returns the created OOContentItem (could be a Movie, OOChannel, OODynamicChannel, or OOChannelSet) - */ -+ (OOContentItem *)contentItemFromDictionary:(NSDictionary *)data embedCodes:(NSArray *)embedCodes api:(OOPlayerAPIClient *)api; - -/** - * The total duration (not including Ads) of this OOContentItem - * @returns an Float64 with the total duration in seconds - */ -- (Float64)duration; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCuePointsView.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCuePointsView.h deleted file mode 100644 index 7ebeca2f4..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOCuePointsView.h +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @class OOCuePointsView OOCuePointsView.h "OOCuePointsView.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import - -/** - An interface that gives OOCuePointsView the duration to use when rendering its cuepoints - */ -@protocol OOCuePointViewDurationDataSource -@property (nonatomic, readonly) float duration; /**< The duration of a video */ -@end - -/** - A view that renders the cue points of advertisements within a certain frame - */ -@interface OOCuePointsView : UIView -@property (nonatomic) NSSet *cuePointsAtSeconds; /**< The set of NSNumber cuepoints to render, in seconds */ - -/** - Initialize an OOCuePointsView. This constructor is not available. Please use initWithFrame:padding:durationDataSource:diameter instead - */ -- (instancetype)initWithFrame:(CGRect)frame __attribute__((unavailable)); - -/** - Initialize an OOCuePointsView - @param[in] frame the frame to render cue points in - @param[in] padding size of padding to be used on the left and right of the cue points - @param[in] durationDataSource a class which can be queried for duration of the playing asset - @param[in] diameter the diameter of the cue points to be rendered - @returns an initialized OOCuePointsView, or nil - */ -- (instancetype)initWithFrame:(CGRect)frame padding:(float)padding durationDataSource:(id )durationDataSource diameter:(float)diameter; -@end \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODebugMode.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODebugMode.h deleted file mode 100644 index dfe32640f..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODebugMode.h +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @class OODebugMode OODebugMode.h "OODebugMode.h" - * @brief OODebugMode - * @details OODebugMode.h in OoyalaSDK - * @date 05/29/2014 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#define LOG(...) [OODebugMode log:[NSString stringWithUTF8String:__FILE__] message:__VA_ARGS__]; -#define ASSERT(condition, ...) [OODebugMode assert:condition tag:[NSString stringWithUTF8String:__FILE__] message:__VA_ARGS__]; -#define ASSERT_FALSE(...) [OODebugMode assertFalse:[NSString stringWithUTF8String:__FILE__] message:__VA_ARGS__]; - -#import - -typedef enum { - None, - LogOnly, - LogAndAbort -} DebugMode; - -@interface OODebugMode : NSObject - -/** - * gets current debug mode. - * @returns debug mode - */ -+ (DebugMode)getDebugMode; - -/** - * sets the debug mode. - * @param[in] mode the debug mode to be set - * @returns YES if nil, NULL, or empty, NO if not - */ -+ (void)setDebugMode:(DebugMode)mode; - -/** - * assert a certain condition - * @param[in] condition the condition to test - * @param[in] tag the tag of the component - * @param[in] format of the message - */ -+ (void)assert:(BOOL)condition tag:(NSString *)tag message:(NSString *)format, ...; - -/** - * helper function to assert a false condition - * @param[in] tag - * @param[in] format of the message - */ -+ (void)assertFalse:(NSString *)tag message:(NSString *)format, ...; - -/** - * log if the debug mode is not none, ignore otherwise - * @param[in] tag: the tag - * @param[in] format of the message - */ -+ (void)log:(NSString *)tag message:(NSString *)format, ...; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODefaultPlayerInfo.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODefaultPlayerInfo.h deleted file mode 100644 index ead22d7e2..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODefaultPlayerInfo.h +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @class OODefaultPlayerInfo OO.h "OOOoyalaAPIClient.h" - * @brief OOOoyalaAPIClient - * @details OOOoyalaAPIClient.h in OoyalaSDK - * @date 1/17/12 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - - -#include "OOPlayerInfo.h" -/** - * This is the default implementation of OOPlayerInfo. OOPlayerInfo is used for providing information for Authorization - * You can extend this class and override any of the settings in OOPlayerInfo, then call - * [OOStreamPlayer setDefaultPlayerInfo:customPlayerInfo]; before you setEmbedCode - */ -@interface OODefaultPlayerInfo : NSObject -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODynamicChannel.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODynamicChannel.h deleted file mode 100644 index bcb93b59f..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OODynamicChannel.h +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @class OODynamicChannel OODynamicChannel.h "OODynamicChannel.h" - * @brief OODynamicChannel - * @details OODynamicChannel.h in OoyalaSDK - * @date 11/30/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOChannel.h" - -/** - * A OOContentItem which contains other items, dynamically created out of list of embed codes. - * - * Use OOOoyalaPlayer::setEmbedCodes: method to create a dynamic channel out of list of embed codes - */ -@interface OODynamicChannel : OOChannel { -@protected - NSArray *embedCodes; -} - -/** Ordered list of embed codes */ -@property(readonly, nonatomic, strong) NSArray *embedCodes; - -/** @internal - * Initialize a OODynamicChannel using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to initialize this OODynamicChannel - * @param[in] theEmbedCodes the embed codes to fetch from the dictionary (ordered) - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OODynamicChannel - * @returns the initialized OODynamicChannel - */ -- (id)initWithDictionary:(NSDictionary *)data embedCodes:(NSArray *)theEmbedCodes api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Initialize a OODynamicChannel using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to initialize this OODynamicChannel - * @param[in] theEmbedCodes the embed codes to fetch from the dictionary (ordered) - * @param[in] theParent the parent OOChannelSet of this OODynamicChannel - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OODynamicChannel - * @returns the initialized OODynamicChannel - */ -- (id)initWithDictionary:(NSDictionary *)data embedCodes:(NSArray *)theEmbedCodes parent:(OOChannelSet *)theParent api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Update the OODynamicChannel using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OODynamicChannel - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** @internal - * The embed codes to authorize - * @returns the embed codes to authorize as an NSArray - */ -- (NSArray *)embedCodesToAuthorize; - -/** - * The total duration (not including Ads) of this OODynamicChannel - * @returns an Float64 with the total duration in seconds - */ -- (Float64)duration; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbedTokenGenerator.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbedTokenGenerator.h deleted file mode 100644 index 59fc522fe..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbedTokenGenerator.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// OOEmbedTokenGenerator.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -typedef void(^OOEmbedTokenCallback)(NSString *); - -@protocol OOEmbedTokenGenerator - - (void)tokenForEmbedCodes:(NSArray *)embedCodes callback:(OOEmbedTokenCallback)callback; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbeddedSecureURLGenerator.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbeddedSecureURLGenerator.h deleted file mode 100644 index 5f3547b5c..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbeddedSecureURLGenerator.h +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @class OOEmbeddedSecureURLGenerator OOEmbeddedSecureURLGenerator.h "OOEmbeddedSecureURLGenerator.h" - * @brief OOEmbeddedSecureURLGenerator - * @details OOEmbeddedSecureURLGenerator.h in OoyalaSDK - * @date 12/1/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOSignatureGenerator.h" -#import "OOSecureURLGenerator.h" - -/** - * Default implementation of OOSecureURLGenerator which will generate secured Ooyala API URLs using API key and secret - * - * Note that embedding your API key and secret into the app is not very secure. - * To minimize the risk, use read-only API keys if possible. - * Alternatively, implement your own OOSignatureGenerator and keep the API keys and secrets on server-side. - */ -@interface OOEmbeddedSecureURLGenerator : NSObject { -@private - NSString *apiKey; - id signatureGenerator; -} - -@property(nonatomic, strong) NSString *apiKey; /**< The API Key to use */ -@property(nonatomic, strong) id signatureGenerator; /**< The OOSignatureGenerator to use */ - -/** - * Initialize an OOEmbeddedSecureURLGenerator - * @param[in] theAPIKey the API Key to use (from Backlot) - * @param[in] theSecret the Secret to use (from Backlot) - * @returns the initialized OOEmbeddedSecureURLGenerator - */ -- (id)initWithAPIKey:(NSString *)theAPIKey secret:(NSString *)theSecret; - -/** - * Initialize an OOEmbeddedSecureURLGenerator with custom OOSignatureGenerator implementation - * @param[in] theAPIKey the API Key to use (from Backlot) - * @param[in] theSignatureGenerator OOSignatureGenerator to use - * @returns the initialized OOEmbeddedSecureURLGenerator - */ -- (id)initWithAPIKey:(NSString *)theAPIKey signatureGenerator:(id)theSignatureGenerator; - -/** - * Generate the secure URL using the APIKey+Expires+Signature method (signature is generated using the OOSignatureGenerator) - * @param[in] host the hostname for the URL - * @param[in] uri the URI for the URL - * @param[in] params the URI params for the URL (not including any security params that the security method would use) - * @returns a secure NSURL created from the parameters - */ -- (NSURL *)secureURL:(NSString *)host uri:(NSString *)uri params:(NSDictionary *)params; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbeddedSignatureGenerator.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbeddedSignatureGenerator.h deleted file mode 100644 index a0804dce1..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOEmbeddedSignatureGenerator.h +++ /dev/null @@ -1,35 +0,0 @@ -/** - * @class OOEmbeddedSignatureGenerator OOEmbeddedSignatureGenerator.h "OOEmbeddedSignatureGenerator.h" - * @brief OOEmbeddedSignatureGenerator - * @details OOEmbeddedSignatureGenerator.h in OoyalaSDK - * @date 12/1/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOSignatureGenerator.h" - -/** - * Default implementation of OOSignatureGenerator which will generate Ooyala API signatures using API secret - * - * Note that embedding your API secret into the app is not very secure. - * To minimize the risk, use read-only API keys if possible. - * Alternatively, implement your own OOSignatureGenerator and keep the API keys and secrets on server-side. - */ -@interface OOEmbeddedSignatureGenerator : NSObject - -/** - * Initialize an OOEmbeddedSignatureGenerator using the specified secret - * @param[in] theSecret the secret to generate the signature with - * @returns the initialized OOEmbeddedSignatureGenerator - */ -- (id)initWithSecret:(NSString *)theSecret; - -/** - * Generate the APIv2/SAS style signature - * @param[in] data the NSString to create the signature from - * @returns an NSString containing the signature - */ -- (NSString *)sign:(NSString *)data; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFCCTVRating.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFCCTVRating.h deleted file mode 100644 index 6a5c60f4e..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFCCTVRating.h +++ /dev/null @@ -1,16 +0,0 @@ -// -//Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -/** - * Encapsulates the UI-relevant rating data of an asset. - */ -@interface OOFCCTVRating : NSObject -@property (readonly, nonatomic) NSString *ageRestriction; -@property (readonly, nonatomic) NSString *labels; -@property (readonly, nonatomic) NSString *clickthroughUrl; --(instancetype) __unavailable init; --(instancetype) initWithAgeRestriction:(NSString*)ageRestriction labels:(NSString*)labels clickthroughUrl:(NSString*)clickthroughUrl; -@end \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFCCTVRatingConfiguration.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFCCTVRatingConfiguration.h deleted file mode 100644 index d61ca744c..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFCCTVRatingConfiguration.h +++ /dev/null @@ -1,33 +0,0 @@ -// -//Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import -#import - -#define OOFCCTVRATINGCONFIGURATION_DURATION_NONE 0 -#define OOFCCTVRATINGCONFIGURATION_DURATION_FOR_EVER CGFLOAT_MAX -#define OOFCCTVRATINGCONFIGURATION_DEFAULT_TIMER OOFCCTVRATINGCONFIGURATION_DURATION_NONE -#define OOFCCTVRATINGCONFIGURATION_DEFAULT_POSITION OOFCCTvRatingsPositionTopLeft -#define OOFCCTVRATINGCONFIGURATION_DEFAULT_SCALE 0.2 -#define OOFCCTVRATINGCONFIGURATION_DEFAULT_OPACITY 0.9 - -typedef NS_ENUM( NSInteger, OOFCCTvRatingsPosition ) { - OOFCCTvRatingsPositionTopLeft, - OOFCCTvRatingsPositionTopRight, - OOFCCTvRatingsPositionBottomLeft, - OOFCCTvRatingsPositionBottomRight -}; - -/** - * Use this when first setting up the OoyalaPlayer to control - * the layout and behavior of the TV Ratings stamp. - */ -@interface OOFCCTVRatingConfiguration : NSObject -@property (nonatomic, readonly) int durationSeconds; -@property (nonatomic, readonly) OOFCCTvRatingsPosition position; -@property (nonatomic, readonly) CGFloat scale; -@property (nonatomic, readonly) CGFloat opacity; --(instancetype) init; --(instancetype) initWithDurationSeconds:(int)durationSeconds position:(OOFCCTvRatingsPosition)position scale:(CGFloat)scale opacity:(CGFloat)opacity; -@end \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFullscreenButton.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFullscreenButton.h deleted file mode 100644 index 64b63eb5f..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOFullscreenButton.h +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @class OOFullscreenButton OOFullscreenButton.h "OOFullscreenButton.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import - -/** - A button that has a fullscreen icon. This button has no default actions or targets - */ -@interface OOFullscreenButton : UIBarButtonItem - -/** - Initialize an OOFullscreenButton - @param[in] scale a multiplier to resize the button - @returns an initialized OOFullscreenButton, or nil - */ -- (id) initWithScale:(CGFloat)scale; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOLifeCycle.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOLifeCycle.h deleted file mode 100644 index e62dbbd75..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOLifeCycle.h +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @class OOLifeCycle OOLifeCycle.h "OOLifeCycle.h" - * @brief OOLifeCycle - * @details OOLifeCycle.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -@protocol OOLifeCycle - -/** - * This is called when plugin should be reset - */ -- (void)reset; - -/** - * This is called when plugin should be suspended - */ -- (void)suspend; - -/** - * This is called when plugin should be resumed - */ -- (void)resume; - -/** - * This is called when plugin should be resumed - * - * @param time - * the playhead time to set - * @param stateToResume - * the player state after resume - */ -- (void)resume:(Float64)time stateToResume:(OOOoyalaPlayerState)state; - -/** - * This is called when plugin should be destryed - */ -- (void)destroy; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOManagedAdSpot.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOManagedAdSpot.h deleted file mode 100644 index ade1de9d1..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOManagedAdSpot.h +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @class OOManagedAdSpot OOManagedAdSpot.h "OOManagedAdSpot.h" - * @brief OOAdSpot - * @details OOAdSpot.h in OoyalaSDK - * @warning This is an abstract class. It is not meant to be instantiated. - * @date 11/29/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOAdSpot.h" -#import "OOReturnState.h" - -@class OOPlayerAPIClient; - -/** - * Base class for concrete ad spot implementations. - * Should not be used directly by app developers, instead use OOOoyalaAdSpot or OOVASTAd - */ -@interface OOManagedAdSpot : OOAdSpot - -@property (readonly) NSURL *clickURL; /**< The URL which should be opened when the OOAdSpot is clicked */ -@property (readonly) NSArray *trackingURLs; /**< The Array of URLs which should be pinged when the OOAdSpot plays */ - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOManagedAdsPlugin.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOManagedAdsPlugin.h deleted file mode 100644 index 25cd95db2..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOManagedAdsPlugin.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// OOManagedPlugin.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import "OOAdSpotPlugin.h" -#import "OOOoyalaPlayer.h" - -@interface OOManagedAdsPlugin : OOAdSpotPlugin - -- (void)insertAd:(OOManagedAdSpot *)ad; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOModule.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOModule.h deleted file mode 100644 index b8ed8591d..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOModule.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// OOModule.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -@interface OOModule : NSObject - -@property (nonatomic, strong, readonly) NSString *name; -@property (nonatomic, strong, readonly) NSString *type; -@property (nonatomic, strong, readonly) NSDictionary *metadata; - -- (id)initWithName:(NSString *)name type:(NSString *)type metadata:(NSDictionary *)metadata; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaAPIClient.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaAPIClient.h deleted file mode 100644 index 99feb60fb..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaAPIClient.h +++ /dev/null @@ -1,243 +0,0 @@ -/** - * @class OOOoyalaAPIClient OOOoyalaAPIClient.h "OOOoyalaAPIClient.h" - * @brief OOOoyalaAPIClient - * @details OOOoyalaAPIClient.h in OoyalaSDK - * @date 1/17/12 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOSecureURLGenerator.h" -#import "OOCallbacks.h" -#import "OOPaginatedParentItem.h" -#import "OOEmbedTokenGenerator.h" - -@class OOPlayerAPIClient; -@class OOOoyalaAPIHelper; -@class OOContentItem; -@class OOOoyalaError; -@class OOPlayerDomain; - -/** - * Ooyala API client implementation. - * Used internally by the OOOoyalaPlayer to load content information and metadata. - * Can be used by the customer app to query Backlot APIs - */ -@interface OOOoyalaAPIClient : NSObject - -/** - * Initialize an OOOoyalaAPIClient with pcode and embed domain - * @param[in] pcode the Partner Code to use (from Backlot) - * @param[in] domain the embed domain - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithPcode:(NSString *)pcode domain:(OOPlayerDomain *)domain; - -/** - * Initialize an OOOoyalaAPIClient with pcode, embed domain and OOEmbedTokenGenerator. - * - * Allows accessing content that is protected by Ooyala Player Tokens. - * - * @param[in] pcode the Partner Code to use (from Backlot) - * @param[in] domain the embed domain - * @param[in] generator OOEmbedTokenGenerator for creating Ooyala Player Tokens - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithPcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain - embedTokenGenerator:(id)generator; - -/** - * Initialize an OOOoyalaAPIClient with pcode, embed domain and OOSecureURLGenerator - * - * Allows accessing protected Backlot APIs - * - * @param[in] pcode the Partner Code to use (from Backlot) - * @param[in] domain the embed domain - * @param[in] secureURLGenerator an initialized instance of OOSecureURLGenerator used for signing Backlot requests - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithPcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain - secureUrlGenerator:(id)secureURLGenerator; - - -/** - * Initialize an OOOoyalaAPIClient with pcode, embed domain, API key and secret - * - * Allows accessing protected Backlot APIs. - * Use OOOoyalaAPIClient::initWithPcode:domain:secureUrlGenerator: if you don't want to embed API keys in the app. - * - * @param[in] apiKey the API Key to use (from Backlot) - * @param[in] secret the Secret to use (from Backlot) - * @param[in] pcode the Partner Code to use (from Backlot) - * @param[in] domain the embed domain - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithAPIKey:(NSString *)apiKey - secret:(NSString *)secret - pcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain; - -/** - * Initialize an OOOoyalaAPIClient with pcode, embed domain, API key and secret and OOEmbedTokenGenerator - * - * Allows accessing content that is protected by Ooyala Player Tokens. - * Allows accessing protected Backlot APIs. - * Use OOOoyalaAPIClient::initWithPcode:domain:embedTokenGenerator:secureUrlGenerator: if you don't want to embed API keys in the app. - * - * @param[in] apiKey the API Key to use (from Backlot) - * @param[in] secret the Secret to use (from Backlot) - * @param[in] pcode the Partner Code to use (from Backlot) - * @param[in] domain the embed domain - * @param[in] generator the initialized OOEmbedTokenGenerator to use - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithAPIKey:(NSString *)apiKey - secret:(NSString *)secret - pcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain - embedTokenGenerator:(id)generator; - -/** - * Initialize an OOOoyalaAPIClient with pcode, embed domain, OOEmbedTokenGenerator and OOSecureURLGenerator - * - * Allows accessing content that is protected by Ooyala Player Tokens. - * Allows accessing protected Backlot APIs. - * - * @param[in] pcode the Partner Code to use (from Backlot) - * @param[in] domain the embed domain - * @param[in] generator the initialized OOEmbedTokenGenerator to use - * @param[in] secureURLGenerator an initialized instance of OOSecureURLGenerator used for signing Backlot requests - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithPcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain -embedTokenGenerator:(id)generator - secureUrlGenerator:(id)secureURLGenerator; - - -/** @internal - * Initialize an OOOoyalaAPIClient, able to sign Backlot requests - * @param[in] playerAPI the initialized OOPlayerAPIClient to use - * @param[in] secureURLGenerator an initialized instance of OOSecureURLGenerator used for signing Backlot requests - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithPlayerAPIClient:(OOPlayerAPIClient *)playerAPI - secureUrlGenerator:(id)secureURLGenerator; - -/** @internal - * Initialize an OOOoyalaAPIClient, able to sign Backlot requests - * @param[in] thePlayerAPIClient the initialized OOPlayerAPIClient to use - * @returns the initialized OOOoyalaAPIClient - */ -- (id)initWithPlayerAPIClient:(OOPlayerAPIClient *)thePlayerAPIClient; - -/** - * Synchronously fetch the content tree for a set of embed codes - * @param[in] embedCodes an NSArray containing the embed codes to fetch the content tree for - * @param[out] error the error if there was any - * @returns the root OOContentItem if the content tree exists, nil if not or if there were errors - */ -- (OOContentItem *)contentTree:(NSArray *)embedCodes error:(OOOoyalaError **)error; - -/** - * Asynchronously fetch the content tree for a set of embed codes - * @param[in] embedCodes an NSArray containing the embed codes to fetch the content tree for - * @param[in] callback the OOContentTreeCallback to execute when the asynchronous fetch completes - * @returns an object that can be passed to OOOoyalaAPIClient.cancel: to cancel this request - */ -- (id)contentTree:(NSArray *)embedCodes callback:(OOContentTreeCallback)callback; - -/** - * Synchronously fetch the content tree for a set of embed codes, with the specified ad set - * @param[in] embedCodes an NSArray containing the embed codes to fetch the content tree for - * @param[in] adSetCode (possibly nil) an NSString containing the ad set code for the ad set to dynamically assign - * @param[out] error the error if there was any - * @returns the root OOContentItem if the content tree exists, nil if not or if there were errors - */ -- (OOContentItem *)contentTree:(NSArray *)embedCodes adSetCode:(NSString *)adSetCode error:(OOOoyalaError **)error; - -/** - * Asynchronously fetch the content tree for a set of embed codes, with the specified ad set - * @param[in] embedCodes an NSArray containing the embed codes to fetch the content tree for - * @param[in] adSetCode (possibly nil) an NSString containing the ad set code for the ad set to dynamically assign - * @param[in] callback the OOContentTreeCallback to execute when the asynchronous fetch completes - * @returns an object that can be passed to OOOoyalaAPIClient.cancel: to cancel this request - */ -- (id)contentTree:(NSArray *)embedCodes adSetCode:(NSString *)adSetCode callback:(OOContentTreeCallback)callback; - -/** - * Synchronously fetch the content tree for a set of external ids - * @note: The external ids will not be in the resulting OOContentItem tree. All ContentItems are keyed based on embed code. - * @param[in] externalIds an NSArray containing the external ids to fetch the content tree for - * @param[out] error the error if there was any - * @returns the root OOContentItem if the content tree exists, nil if not or if there were errors - */ -- (OOContentItem *)contentTreeByExternalIds:(NSArray *)externalIds error:(OOOoyalaError **)error; - -/** - * Asynchronously fetch the content tree for a set of external ids - * @note: The external ids will not be in the resulting OOContentItem tree. All ContentItems are keyed based on embed code. - * @param[in] externalIds an NSArray containing the external ids to fetch the content tree for - * @param[in] callback the OOContentTreeCallback to execute when the asynchronous fetch completes - * @returns an object that can be passed to OOOoyalaAPIClient.cancel: to cancel this request - */ -- (id)contentTreeByExternalIds:(NSArray *)externalIds callback:(OOContentTreeCallback)callback; - -/** - * Synchronously fetch next part of the content tree if content tree is too large - * Use OOPaginatedParentItem::hasMoreChildren to check if this is needed. - * @param[in,out] parent the OOPaginatedParentItem to fetch more children for - * @param[out] error the error if there was any - * @returns NSRange denoting which children were updated. Will return NSNotFound, 0 if an error occurred. Check the error in that case. - */ -- (NSRange)contentTreeNext:(id)parent error:(OOOoyalaError **)error; - -/** - * Asynchronously fetch next part of the content tree if content tree is too large - * Use OOPaginatedParentItem::hasMoreChildren to check if this is needed. - * @param[in,out] parent the OOPaginatedParentItem to fetch more children for - * @param[in] callback a block called on return - * @returns an object that can be passed to OOOoyalaAPIClient.cancel: to cancel this request - */ -- (id)contentTreeNext:(id)parent callback:(OOContentTreeNextCallback)callback; - -/** - * Synchronously fetch a raw NSDictionary/NSArray from any backlot API (GET requests only) - * @param[in] uri the URI to be fetched from backlot *not* including "/v2". For example, to request https://api.ooyala.com/v2/assets, uri should be "/assets" - * @param[in] params Additional params that the API may require in the form of dictionary. - * @returns the raw NSDictionary/NSArray representing the response - */ -- (NSObject *)objectFromBacklotAPI:(NSString *)uri params:(NSDictionary *)params; - -/** - * Asynchronously fetch a raw NSDictionary/NSArray from any backlot API (GET requests only) - * @param[in] uri the URI to be fetched from backlot *not* including "/v2". For example, to request https://api.ooyala.com/v2/assets, uri should be "/assets" - * @param[in] params Additional params that the API may require in the form of dictionary. - * @param[in] callback the OOObjectFromBacklotAPICallback to execute when the asynchronous fetch completes - * @returns an object that can be passed to OOOoyalaAPIClient.cancel: to cancel this request - */ -- (id)objectFromBacklotAPI:(NSString *)uri params:(NSDictionary *)params callback:(OOObjectFromBacklotAPICallback)callback; - -/** - * Cancel an outstanding asynchronous request using the Object returned from the asynchronous method - * @param[in] task the id returned from the asynchronous method to cancel - */ -- (void)cancel:(id)task; - -/** @internal - * Get the provider code that this OOOoyalaAPIClient uses - * @returns the provider code this OOOoyalaAPIClient uses - */ -- (NSString *)pcode; - -/** @internal - * Get the embed domain that this OOOoyalaAPIClient uses - * @returns the embed domain this OOOoyalaAPIClient uses - */ -- (OOPlayerDomain *)domain; - -+ (NSString*) messageForAuthCode:(int) code; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaAdSpot.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaAdSpot.h deleted file mode 100644 index b4c41c718..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaAdSpot.h +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @class OOOoyalaAdSpot OOOoyalaAdSpot.h "OOOoyalaAdSpot.h" - * @brief OOOoyalaAdSpot - * @details OOOoyalaAdSpot.h in OoyalaSDK - * @date 11/29/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOManagedAdSpot.h" -#import "OOAuthorizableItem.h" -#import "OOPlayableItem.h" -#import "OOOoyalaAPIClient.h" - -/** - * A single ooyala video ad associated with specific time - */ -@interface OOOoyalaAdSpot : OOManagedAdSpot { -@protected - NSString *embedCode; - BOOL authorized; - OOAuthCode authCode; -} - -@property(readonly, nonatomic, strong) NSString *embedCode; /**< The OOOoyalaAdSpot's Embed Code */ -@property(readonly, nonatomic) BOOL authorized; /**< @internal Whether or not this OOOoyalaAdSpot is authorized */ -@property(readonly, nonatomic) OOAuthCode authCode; /**< @internal The response code from the authorize call */ -@property(nonatomic, assign) BOOL heartbeatRequired; /**< @internal if the heartbeat is required */ - -/** - * Initialize an OOOoyalaAdSpot using the embed code - * @param[in] theTime the time at which to play the ad - * @param[in] theClickURL the clickthrough URL - * @param[in] theTrackingURLs the tracking URLs - * @param[in] theEmbedCode the embed code to initialize the OOOoyalaAdSpot with - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOOoyalaAdSpot - * @returns the initialized OOOoyalaAdSpot - */ -- (id)initWithTime:(NSNumber *)theTime clickURL:(NSURL *)theClickURL trackingURLs:(NSArray *)theTrackingURLs embedCode:(NSString *)theEmbedCode api:(OOOoyalaAPIClient *)theAPI; - -/** @internal - * Initialize an OOOoyalaAdSpot using the specified data (subclasses should override this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOOoyalaAdSpot - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOOoyalaAdSpot - * @returns the initialized OOOoyalaAdSpot - */ -- (id)initWithDictionary:(NSDictionary *)data api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Update the OOOoyalaAdSpot using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOOoyalaAdSpot - * @returns OOReturnState.OOReturnStateFail if the parsing failed, OOReturnState.OOReturnStateMatched if it was successful - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** @internal - * Fetch the additional required info for the ad - * @returns NO if errors occurred, YES if successful - */ -- (BOOL)fetchPlaybackInfo; - -/** @internal - * The embed codes to authorize - * @returns the embed codes to authorize as an NSArray - */ -- (NSArray *)embedCodesToAuthorize; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaError.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaError.h deleted file mode 100644 index 1540e098a..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaError.h +++ /dev/null @@ -1,101 +0,0 @@ -/** - * @file OOOoyalaError.h - * @class OOOoyalaError OOOoyalaError.h "OOOoyalaError.h" - * @brief OOOoyalaError - * @details OOOoyalaError.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -/** - * Error Codes - */ -typedef enum { - OOOoyalaErrorCodeAuthorizationFailed, /**< Authorization Failed */ - OOOoyalaErrorCodeAuthorizationInvalid, /**< Authorization Response invalid */ - OOOoyalaErrorCodeHeartbeatFailed, /**< Heartbeat failed */ - OOOoyalaErrorCodeContentTreeInvalid, /**< Content Tree Response invalid */ - OOOoyalaErrorCodeAuthorizationSignatureInvalid, /**< The signature of the Authorization Response is invalid */ - OOOoyalaErrorCodeContentTreeNextFailed, /**< Content Tree Next failed */ - OOOoyalaErrorCodePlaybackFailed, /**< AVPlayer Failed */ - OOOoyalaErrorCodeAssetNotEncodedForIOS, /**< The asset is not encoded for iOS */ - OOOoyalaErrorCodeInternalIOS, /**< An Internal iOS Error. Check the error property. */ - OOOoyalaErrorCodeMetadataInvalid, /**< Metadata Response invalid */ - OOOoyalaErrorCodeDeviceInvalidAuthToken, /**< During DRM Rights Acquisition, the rights server reported an invalid token */ - OOOoyalaErrorCodeDeviceLimitReached, /**< During DRM Rights Acquisition, the server reported that the device limit has been reached*/ - OOOoyalaErrorCodeDeviceBindingFailed, /**< During DRM Rights Acquisition, the server reported that device binding failed */ - OOOoyalaErrorCodeDeviceIdTooLong, /**< During DRM Rights Acquisition, the server reported the device id was too long */ - OOOoyalaErrorCodeDeviceGenericDrmError, /** < There was some unknown error during the DRM workflow */ -} OOOoyalaErrorCode; - - -/** - * Represents an error in the Ooyala SDK - */ -@interface OOOoyalaError : NSObject { -@protected - OOOoyalaErrorCode code; - NSString *description; - NSError *error; -} - -@property(readonly, nonatomic) OOOoyalaErrorCode code; /**< The OOOoyalaError's code */ -@property(readonly, nonatomic, strong) NSString *description; /**< The OOOoyalaError's description */ -@property(readonly, nonatomic, strong) NSError *error; /**< The underlying NSError if it exists */ - -/** @internal - * Initialize an OOOoyalaError - * @param[in] theCode the error's code - * @returns the initialized OOOoyalaError - */ -- (id)initWithCode:(OOOoyalaErrorCode)theCode; - -/** @internal - * Initialize an OOOoyalaError - * @param[in] theError the NSError to initialize the OOOoyalaError from - * @returns the initialized OOOoyalaError - */ -- (id)initWithNSError:(NSError *)theError; - -/** @internal - * Initialize an OOOoyalaError - * @param[in] theError the NSError to initialize the OOOoyalaError from - * @param[in] theCode the OOOoyalaErrorCode to use - * @returns the initialized OOOoyalaError - */ -- (id)initWithNSError:(NSError *)theError code:(OOOoyalaErrorCode)theCode; - -/** @internal - * Initialize an OOOoyalaError - * @param[in] theCode the error's code - * @param[in] theDescription the error's description - * @returns the initialized OOOoyalaError - */ -- (id)initWithCode:(OOOoyalaErrorCode)theCode description:(NSString *)theDescription; - -/** @internal - * Create an OOOoyalaError from the given data - * @param[in] code the OOOoyalaErrorCode of the error - * @param[in] description the description of the error - * @returns the created OOOoyalaError - */ -+ (OOOoyalaError *)errorWithCode:(OOOoyalaErrorCode)code description:(NSString *)description; - -/** @internal - * Create an OOOoyalaError from the given NSError - * @param[in] error the NSError to create the OOOoyalaError from - * @returns the created OOOoyalaError - */ -+ (OOOoyalaError *)errorWithNSError:(NSError *)error; - -/** @internal - * Create an OOOoyalaError from the given NSError - * @param[in] error the NSError to create the OOOoyalaError from - * @param[in] theCode the OOOoyalaErrorCode to use - * @returns the created OOOoyalaError - */ -+ (OOOoyalaError *)errorWithNSError:(NSError *)error code:(OOOoyalaErrorCode)theCode; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaPlayer.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaPlayer.h deleted file mode 100644 index d611028e3..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaPlayer.h +++ /dev/null @@ -1,468 +0,0 @@ -/** - * @file OOOoyalaPlayer.h - * @class OOOoyalaPlayer OOOoyalaPlayer.h "OOOoyalaPlayer.h" - * @brief OOOoyalaPlayer - * @details OOOoyalaPlayer.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import -#import -#import "OOSignatureGenerator.h" -#import "OOSecureURLGenerator.h" -#import "OOCallbacks.h" -#import "OOEmbedTokenGenerator.h" -#import "OOClosedCaptionsStyle.h" -#import "OOAdPluginManagerProtocol.h" -#import "OOStateNotifier.h" -#import "OOPlayerProtocol.h" - -@class OOContentItem; -@class OOVideo; -@class OOOoyalaError; -@class OOOoyalaAPIClient; -@class OOClosedCaptionsStyle; -@class OOStreamPlayer; -@class OOManagedAdSpot; -@class OOPlayerDomain; -@class OOStreamPlayerMapping; -@class OOFCCTVRatingConfiguration; -@class OOFCCTVRating; -@class OOOptions; -@class OOManagedAdsPlugin; - -/** - * Defines player behavior after video playback has ended, defaults to OOOoyalaPlayerActionAtEndContinue - */ -typedef enum -{ - /** Start playing next video if available, otherwise pause */ - OOOoyalaPlayerActionAtEndContinue, - /** Pause at the end of the video */ - OOOoyalaPlayerActionAtEndPause, - /** Stops at the end of the video and unloads the video from memory */ - OOOoyalaPlayerActionAtEndStop, - /** Pause and reset to the beginning of the current video */ - OOOoyalaPlayerActionAtEndReset -} OOOoyalaPlayerActionAtEnd; - -/** - * Defines which Ooyala API environment is used for API calls. - * Defaults to OOOoyalaPlayerEnvironmentProduction and should never change for customer apps. - */ -typedef enum -{ - /** Ooyala production environment */ - OOOoyalaPlayerEnvironmentProduction, - /** Ooyala staging environment */ - OOOoyalaPlayerEnvironmentStaging, - /** Ooyala next-staging environment */ - OOOoyalaPlayerEnvironmentNextStaging, - /** Ooyala local environment */ - OOOoyalaPlayerEnvironmentLocal -} OOOoyalaPlayerEnvironment; - -/** @internal - * Defines different seek modes, which control the way seeking of the video is performed - */ -typedef enum { - /** @internal No seeking is allowed */ - OOSeekStyleNone, - /** @internal Seeking is expensive and can only be performed at the end of user action */ - OOSeekStyleBasic, - /** @internal Continous seeking is allowed */ - OOSeekStyleEnhanced -} OOSeekStyle; - -#define OOOOYALAPLAYER_DURATION_MISSING (-1) - -// notifications -extern NSString *const OOOoyalaPlayerTimeChangedNotification; /**< Fires when the Playhead Time Changes */ -extern NSString *const OOOoyalaPlayerStateChangedNotification; /**< Fires when the Player's State Changes */ -extern NSString *const OOOoyalaPlayerContentTreeReadyNotification; /**< Fires when the content tree's metadata is ready and can be accessed */ -extern NSString *const OOOoyalaPlayerAuthorizationReadyNotification; /**< Fires when the authorization status is ready and can be accessed */ -extern NSString *const OOOoyalaPlayerPlayStartedNotification; /**< Fires when play starts */ -extern NSString *const OOOoyalaplayerLicenseAcquisitionNotification; /**< Fires after a successful license acquisition */ -extern NSString *const OOOoyalaPlayerPlayCompletedNotification; /**< Fires when play completes */ -extern NSString *const OOOoyalaPlayerCurrentItemChangedNotification; /**< Fires when the current item changes */ -extern NSString *const OOOoyalaPlayerAdStartedNotification; /**< Fires when an ad starts playing */ -extern NSString *const OOOoyalaPlayerAdCompletedNotification; /**< Fires when an ad completes playing */ -extern NSString *const OOOoyalaPlayerAdsLoadedNotification; /**< Fires when ads are done loading */ -extern NSString *const OOOoyalaPlayerAdSkippedNotification; /**< Fires when an ad is skipped */ -extern NSString *const OOOoyalaPlayerErrorNotification; /**< Fires when an error occurs */ -extern NSString *const OOOoyalaPlayerAdErrorNotification; /**< Fires when an error occurs while trying to play an ad */ -extern NSString *const OOOoyalaPlayerMetadataReadyNotification; /**< Fires when content metadata is ready to be accessed */ -extern NSString *const OOOoyalaPlayerLanguageChangedNotification; /**< Fires when close caption language changed*/ -extern NSString *const OOOoyalaPlayerSeekCompletedNotification; /**< Fires when a seek completes*/ -extern NSString *const OOOoyalaPlayerJsonReceivedNotification; /**< Fires when received a json string, userinfo contains the key and value of the json string*/ - - -/** - * The OoyalaPlayer is the heart of the playback system. - * Use it to configure and control asset playback, - * and to be aware of playback state changes. - */ -@interface OOOoyalaPlayer : NSObject - -@property(readonly, nonatomic, strong) OOVideo *currentItem; /**< The OOOoyalaPlayer's currently playing OOVideo */ -@property(readonly, nonatomic, strong) OOContentItem *rootItem; /**< The OOOoyalaPlayer's embedded content (OOVideo, OOChannel, or OOChannelSet) */ -@property(readonly, nonatomic, strong) NSDictionary *metadata; /**< The OOOoyalaPlayer's content metadata for currently loaded content */ -@property(readonly, nonatomic, strong) OOOoyalaError *error; /**< The OOOoyalaPlayer's current error if it exists */ -@property(readonly, nonatomic, strong) UIView *view; /** the view associated with the player*/ -@property(nonatomic) OOOoyalaPlayerVideoGravity videoGravity; -@property(readonly, nonatomic) BOOL supportsVideoGravityButton; -@property(nonatomic) BOOL seekable; /**< Whether or not the Videos that OOOoyalaPlayer plays are seekable */ -@property(nonatomic) BOOL adsSeekable; /**< Whether or not the Ads that OOOoyalaPlayer plays are seekable */ -@property(readonly, nonatomic) OOSeekStyle seekStyle; - -/** - * Get whether the player is playing the audio only stream in an m3u8 - */ -@property(readonly, nonatomic) BOOL isAudioOnlyStreamPlaying; -@property(readonly, nonatomic, getter = isClosedCaptionsTrackAvailable) BOOL closedCaptionsTrackAvailable; -@property(nonatomic, strong) OOClosedCaptionsStyle *closedCaptionsStyle; /**< The OOClosedCaptionsStyle to use when displaying closed captions */ -@property(nonatomic, strong) OOCurrentItemChangedCallback currentItemChangedCallback; /**< A callback that will be called every time the current item is changed */ -@property(nonatomic, strong) NSString *closedCaptionsLanguage; /**< the current closed captions language, or nil to hide closed captions. */ -@property(nonatomic, strong) OOStreamPlayer *basePlayer; /**< the base player to use for displaying content. Defaults to OOBaseStreamPlayer. */ - -@property (nonatomic) OOOoyalaPlayerActionAtEnd actionAtEnd; /**< the OOOoyalaPlayerActionAtEnd to perform when the current item finishes playing. */ -@property (readonly, nonatomic, getter = isExternalPlaybackActive) BOOL externalPlaybackActive; - -@property (nonatomic) BOOL allowsExternalPlayback; -@property (nonatomic) float playbackRate; /** the rate of playback. 1 is the normal speed. Set to .5 for half speed, 2 for double speed, etc. */ -@property (readonly, nonatomic) NSString *authToken; -@property (nonatomic) NSString *customDrmData; -@property (nonatomic, readonly) OOStreamPlayerMapping *streamPlayerMapping; -@property (nonatomic, readonly) NSString *pcode; - -/** - * Get the managedAdsPlugin that manages OOOoyalaAdSpots and OOVASTAdSpots. - */ -@property (readonly, nonatomic) OOManagedAdsPlugin *managedAdsPlugin; - -/** - * Get the options - */ -@property (readonly, nonatomic) OOOptions *options; - -/** - * @internal - */ -+ (void)setEnvironment:(OOOoyalaPlayerEnvironment)e; - -/** - * Get the version and RC of the Ooyala SDK - * @returns the string that represents the SDK version - */ -+ (NSString *)version; - -/** - * Initialize an OOOoyalaPlayer with the given parameters - * @param[in] pcode Your Provider Code - * @param[in] domain Your Embed Domain - * @returns the initialized OOOoyalaPlayer - */ -- (id)initWithPcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain; - -/** - * Initialize an OOOoyalaPlayer with the given parameters - * @param[in] pcode Your Provider Code - * @param[in] domain Your Embed Domain - * @param[in] options the options - * @returns the initialized OOOoyalaPlayer - */ -- (id)initWithPcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain - options:(OOOptions *)options; - -/** - * Initialize an OOOoyalaPlayer with the given parameters - * @param[in] pcode Your Provider Code - * @param[in] domain Your Embed Domain - * @param[in] embedTokenGenerator the initialized OOEmbedTokenGenerator to use - * @returns the initialized OOOoyalaPlayer - */ -- (id)initWithPcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain -embedTokenGenerator:(id)embedTokenGenerator; - -/** - * Initialize an OOOoyalaPlayer with the given parameters - * @param[in] pcode Your Provider Code - * @param[in] domain Your Embed Domain - * @param[in] embedTokenGenerator the initialized OOEmbedTokenGenerator to use - * @param[in] options Extra settings - * @returns the initialized OOOoyalaPlayer - */ -- (id)initWithPcode:(NSString *)pcode - domain:(OOPlayerDomain *)domain -embedTokenGenerator:(id)embedTokenGenerator - options:(OOOptions*)options; - -/** - * Reinitializes the player with a new embedCode. - * @param[in] embedCode the embed code to use - * @returns YES if successful; otherwise, returns NO (check OOOoyalaPlayer.error for reason) - */ -- (BOOL)setEmbedCode:(NSString *)embedCode; - -/** - * Reinitializes the player with the new embedCodes (as an array). - * @param[in] embedCodes the embed code(s) to use. If more than one is specified, OOOoyalaPlayer.rootItem becomes a OODynamicChannel. - * @returns YES if successful; otherwise, returns NO (check OOOoyalaPlayer.error for reason) - */ -- (BOOL)setEmbedCodes:(NSArray *)embedCodes; - -/** - * Reinitializes the player with a new embedCode and sets the ad set dynamically. - * @param[in] embedCode the embed code to use - * @param[in] adSetCode (possibly nil) the ad set code to use - * @returns YES if successful; otherwise, returns NO (check OOOoyalaPlayer.error for reason) - */ -- (BOOL)setEmbedCode:(NSString *)embedCode adSetCode:(NSString *)adSetCode; - -/** - * Reinitializes the player with the new embedCodes (as an array) and sets the ad set dynamically. - * @param[in] embedCodes the embed code(s) to use. If more than one is specified, OOOoyalaPlayer.rootItem becomes a OODynamicChannel. - * @param[in] adSetCode (possibly nil) the ad set code to use. - * @returns YES if successful; otherwise, returns NO (check OOOoyalaPlayer.error for reason) - */ -- (BOOL)setEmbedCodes:(NSArray *)embedCodes adSetCode:(NSString *)adSetCode; - -/** - * Reinitializes the player with a new external ID. External IDs enable you to assign custom identifiers to your assets so they are easier to organize, update, and modify. - * @param[in] externalId the external ID to use - * @returns YES if successful; otherwise, returns NO (check OOOoyalaPlayer.error for reason) - */ -- (BOOL)setExternalId:(NSString *)externalId; - -/** - * Reinitializes the player with the new external IDs (as an array). External IDs enable you to assign custom identifiers to your assets so they are easier to organize, update, and modify. - * @param[in] externalIds the external ID(s) to use. If more than one is specified, OOOoyalaPlayer.rootItem becomes a OODynamicChannel. - * @returns YES if successful; otherwise, returns NO (check OOOoyalaPlayer.error for reason) - */ -- (BOOL)setExternalIds:(NSArray *)externalIds; - -/** - * Reinitializes the player with a root item. - * @param[in] theRootItem the root item to use - */ -- (void)setRootItem:(OOContentItem *)theRootItem; - -/** - * Sets the current video in a channel, if the video is present. - * @param[in] embedCode the embed code of the video to play - * @returns YES if successful; otherwise, returns NO (check OOOoyalaPlayer.error for reason) - */ -- (BOOL)changeCurrentItemToEmbedCode:(NSString *)embedCode; - -/** - * Sets the current video. OOVideo must be a part of the content tree provided by the root item. - * @returns a BOOL indicating that the item was successfully changed - */ -- (BOOL)changeCurrentItemToVideo:(OOVideo *)video; - -/** - * Gets the current playhead time (the part of the video currently being accessed). - * @returns the current playhead time, in milliseconds - */ -- (Float64)playheadTime; - -/** - * Gets the (approximate) real time of a live stream - * @returns currently playing time - */ -- (NSDate *)liveTime; - -/** - * Gets the duration of the asset. - * @returns the duration of the currently playing asset, in seconds - */ -- (Float64)duration; - -/** - * Get the maximum buffered time - * @returns the buffered time in seconds of the currently playing item - */ -- (Float64)bufferedTime; - -/** - * Sets the current playhead time of the player (same as seek). For example, to start a video at the 30 second point, you would set the playhead to 30. - * @param[in] time the playhead time, in seconds - */ -- (void)setPlayheadTime:(Float64) time; - -/** - * Gets the player's current state. - * @returns a string containing the current state - */ -- (OOOoyalaPlayerState)state; - -/** - * Pauses the current video. - */ -- (void)pause; - -/** - * Plays the current video. - */ -- (void)play; - - /** - * Plays the current video with an initial time - */ -- (void)playWithInitialTime:(Float64) time; - -/** - * Sets the current playhead time of the player (same as setPlayheadTime). - * @param[in] time the playhead time, in seconds - */ -- (void)seek:(Float64) time; - -/** - * Get whether the player is playing - * @returns a BOOL indicating the current player is playing - */ -- (BOOL)isPlaying; - -/** - * Get whether the player is playing ad - * @returns a BOOL indicating the current player is playing ad - */ -- (BOOL)isShowingAd; - -/** - * @return YES if self.isShowingAd==YES and the ad player reports that - * it has custom controls, instead of using the Ooyala video controls. - */ -- (BOOL)isShowingAdWithCustomControls; - -/** - * Tries to set the current video to the next video in the OOChannel or ChannetSet - * @returns a BOOL indicating that the item was successfully changed - */ -- (BOOL)nextVideo; - -/** - * Tries to set the current video to the previous video in the OOChannel or ChannetSet - * @returns a BOOL indicating that the item was successfully changed - */ -- (BOOL)previousVideo; - -/** - * Get the available closed captions languages - * @returns an NSArray containing the available closed captions languages as NSStrings - */ -- (NSArray *)availableClosedCaptionsLanguages; - -/** - * Set the closed caption with given language - */ -- (void)setClosedCaptionsLanguage:(NSString *)language; - - -- (void)setClosedCaptionsPresentationStyle: (OOClosedCaptionPresentation) presentationStyle; - -/** - * Get the current bitrate - * @returns a double indicating the current bitrate in bytes - */ -- (double)bitrate; - -/** - * Reset the state of ad plays. Calling this will cause all ads which have been played to play again. - */ -- (void)resetAds; - -/** - * Skips the currently playing ad (if one is playing. does nothing if not) - */ -- (void)skipAd; - -/** - * current seekable range for main video. - */ -- (CMTimeRange) seekableTimeRange; - -/** - * Sets a tag for custom analytics - * @param[in] tags n array of NSStrings - */ -- (void)setCustomAnalyticsTags:(NSArray *)tags; - -/** - * Converts PlayerState to a String. - * @param[in] state the PlayerState - * @returns an external facing state string - */ -+ (NSString *)playerStateToString:(OOOoyalaPlayerState)state; - -/** - * Register ad player for an ad type - * @param[in] adPlayerClass the ad player class - * @param[in] adClass the ad class - */ -- (void)registerAdPlayer:(Class)adPlayerClass forType:(Class)adClass; - -/** - * update closed caption view position - * @param[in] bottomControlsRect the bottom controls rect - * @param[in] hidden YES if the bottom control is hidden, NO if it is not hidden - */ -- (void)updateClosedCaptionsViewPosition:(CGRect)bottomControlsRect withControlsHide:(BOOL)hidden; - -/** - * @returns the video rect - */ -- (CGRect)videoRect; - -/** - * set encryptedloopback. - * @param[in] enabled true if enabled, false if disabled - */ -+ (void)setEncryptedLoopback:(BOOL)enabled; - -/** - * get encryptedloopback. - * @returns encryptedLoopback; - */ -+ (BOOL)encryptedLoopback; - -/** - * YES means to try to use local/debug DRM modes, - * NO means to use regular DRM config. - */ -+(void)setUseDebugDRMPlayback:(BOOL)enable; - -/** - * @returns YES means to try to use local/debug DRM modes, - * NO means to use regular DRM config. - */ -+(BOOL)useDebugDRMPlayback; - -/** - * internal Ooyala use only. - */ --(void) layoutSubviews; - -/** - * called by an ad plugin to create a state notifier - * - */ -- (OOStateNotifier *)createStateNotifier; - -/** -* Return a collection of the times at which to show cue points. -* E.g. for the content player, show when ads are scheduled to play. -*/ --(NSSet*/**/)getCuePointsAtSecondsForCurrentPlayer; - -/** - * Return an OoyalaAPIClient - */ -- (OOOoyalaAPIClient *)api; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaPlayerViewController.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaPlayerViewController.h deleted file mode 100644 index 61c7d3ade..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOoyalaPlayerViewController.h +++ /dev/null @@ -1,119 +0,0 @@ -/** - * @class OOOoyalaPlayerViewController OOOoyalaPlayerViewController.h "OOOoyalaPlayerViewController.h" - * @brief OOOoyalaPlayerViewController - * @details OOOoyalaPlayerViewController.h in OoyalaSDK - * @date 1/9/12 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOOoyalaPlayer.h" -#import "OOEmbedTokenGenerator.h" - -extern NSString *const OOOoyalaPlayerViewControllerFullscreenEnter; -extern NSString *const OOOoyalaPlayerViewControllerFullscreenExit; -extern NSString *const OOOoyalaPlayerViewControllerInlineViewVisible; -extern NSString *const OOOoyalaPlayerViewControllerFullscreenViewVisible; - -@class OOOoyalaAPIClient; -@class OOControlsViewController; -@class OOPlayerDomain; - -/** - * Main ViewController class for Ooyala player. - * Implements a default skin as well as convenience methods for accesssing and initializing underlying OOOoyalaPlayer. - */ -@interface OOOoyalaPlayerViewController : UIViewController - -typedef NS_ENUM(NSInteger, OOOoyalaPlayerControlType) { - /** an inline player, expandable to fullscreen */ - OOOoyalaPlayerControlTypeInline, - /** a fullscreen player, not shrinkable to inline */ - OOOoyalaPlayerControlTypeFullScreen -}; - -@property (nonatomic, readonly) OOOoyalaPlayerControlType initialControlType; // initial state -@property (nonatomic, strong) OOOoyalaPlayer *player; - -@property (nonatomic, strong) UIView *inlineOverlay; -@property (nonatomic, strong) UIView *fullscreenOverlay; - -/** - * Get the fullscreen state - * @returns true if in fullscreen mode, false if not - */ -- (BOOL)isFullscreen; - -/** - * Set the fullscreen state - * @param[in] fullscreen whether the view should be fullscreened - */ -- (void)setFullscreen:(BOOL)fullscreen; - -/** - * Initialize the UI with an existing OOOoyalaPlayer object - * @param[in] player Reference to OOOoyalaPlayer object - */ -- (id)initWithPlayer:(OOOoyalaPlayer *)player; - -/** - * Initialize the UI with an existing OOOoyalaPlayer object and control type - * @param[in] player Reference to OOOoyalaPlayer object - * @param[in] controlType Selects inline or fullscreen only UI mode - */ -- (id)initWithPlayer:(OOOoyalaPlayer *)player - controlType:(OOOoyalaPlayerControlType)controlType; - -/** - * Loads a dictionary of language strings according to language settings in the device - */ -+ (void)loadDeviceLanguage; - -/** - * Instructs the player to use given dictionary of language, regardless of localization - */ -+ (void)useLanguageStrings:(NSDictionary *)strings; - -/** - * Returns a dictionary of language according to the given language string - */ -+ (NSDictionary*)getLanguageSettings:(NSString *)language; - -/** - * Returns a dictionary of current language - */ -+ (NSDictionary*)currentLanguageSettings; - -/** - * Returns the currently active controls - */ -- (OOControlsViewController *)getControls; - -/** - * Shows controls on the current player - */ -- (void)showControls; - -/** - * Hides controls on the current player - */ -- (void)hideControls; - -/** - * Sets visibility of full-screen button on inline player - * @param[in] showing True to show fullscreen button, false otherwise - */ -- (void)setFullScreenButtonShowing: (BOOL) showing; - -/** - * Sets the ViewController used to display controls in fullscreen mode - * @param[in] controller the initialized ViewController to use - */ -- (void)setFullScreenViewController:(OOControlsViewController *)controller; -/** - * Sets the ViewController used to display controls in inline mode - * @param[in] controller the initialized ViewController to use - */ -- (void)setInlineViewController:(OOControlsViewController *)controller; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOptions.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOptions.h deleted file mode 100644 index cb2789e8b..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOptions.h +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @class OOOptions OOOptions.h "OOOptions.h" - * @brief OOOptions - * @details OOOptions.h in OoyalaSDK - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -@class OOFCCTVRatingConfiguration; - -/** - * A Class that implements configurable options - */ -@interface OOOptions : NSObject - -@property (nonatomic) OOFCCTVRatingConfiguration *tvRatingConfiguration; /** tvRatingConfiguration TV rating configuration object for current OoyalaPlayer; Default: default setting object for OOFCCTVRatingConfiguration */ -@property (nonatomic) BOOL showCuePoints; /** Show cue points for ads if this is set to YES; Default: YES */ -@property (nonatomic) BOOL showLiveContentScrubber; /** If set to YES, show the live content scrubber during live content playback (for live stream only). Default: YES */ -@property (nonatomic) BOOL showAdsControls; /** If set to YES, show ads controls (show the scrubber) during ad playback. Default: YES */ -@property (nonatomic) BOOL preloadContent; /** If set to YES, load the content when the required information and authorization is available.If set to NO, load the content after the pre-roll (if a pre-roll is available). Default: YES */ -@property (nonatomic) BOOL showPromoImage; /** If set to YES, show the promo image if a promo image is available. Default: NO */ -@property (nonatomic) NSTimeInterval connectionTimeout; /** The timeout value for network requests. Default: 60.0 seconds */ - -/** - * Initialize an OOOptions object with the all properties with default values - * @returns the initialized OOOptions - */ --(instancetype) init; - -/** - * Initialize an OOOptions object with the given parameters - * @returns the initialized OOOptions - */ --(instancetype) initWithTVRatingsConfiguration:(OOFCCTVRatingConfiguration *)tvRatingConfiguration - showCuePoints:(BOOL)showCuePoints - showLiveContentScrubber:(BOOL)showLiveContentScrubber - showAdsControls:(BOOL)showAdsControls - preloadContent:(BOOL)preloadContent - showPromoImage:(BOOL)showPromoImage - connectionTimeout:(NSTimeInterval)connectionTimeout; - -@end \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOrderedDictionary.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOrderedDictionary.h deleted file mode 100644 index efb0f7a79..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOOrderedDictionary.h +++ /dev/null @@ -1,143 +0,0 @@ -/** - * @class OOOrderedDictionary OOOrderedDictionary.h "OOOrderedDictionary.h" - * @brief OOOrderedDictionary - * @details OOOrderedDictionary.h in OoyalaSDK - * @par - * OOOrderedDictionary.addObject:, OOOrderedDictionary.removeObject:, OOOrderedDictionary.removeObjectAtIndex:, OOOrderedDictionary.keysInRange:, - * OOOrderedDictionary.removeObjectIdenticalTo:, OOOrderedDictionary.sortUsingSelector:, and OOOrderedDictionary.sortWithOptions:usingComparator: - * require OOOrderedDictionary.keySelector to be set. - * @date 11/28/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -@interface OOOrderedDictionary : NSObject { -@private - SEL keySelector; -} - -@property(nonatomic, assign) SEL keySelector; /**< the selector to use for the key when adding objects using OOOrderedDictionary.addObject: */ - -/** - * Initialize a OOOrderedDictionary - * @param[in] keySelector the selector to use to fetch the key from objects added (using OrderedDicitonary.addObject:) - * @returns the initialized OOOrderedDictionary - */ -- (id)initWithKeySelector:(SEL)keySelector; - -/** - * Initialize a OOOrderedDictionary - * @param[in] numItems the initial capacity of the OOOrderedDictionary (not count, just capacity) - * @returns the initialized OOOrderedDictionary - */ -- (id)initWithCapacity:(NSUInteger)numItems; - -/** - * Initialize a OOOrderedDictionary - * @param[in] numItems the initial capacity of the OOOrderedDictionary (not count, just capacity) - * @param[in] keySelector the selector to use to fetch the key from objects added (using OrderedDicitonary.addObject:) - * @returns the initialized OOOrderedDictionary - */ -- (id)initWithCapacity:(NSUInteger)numItems keySelector:(SEL)keySelector; - -/** - * Add an object to the OOOrderedDictionary - * @param[in] obj the object to add - * @param[in] key the key for the object - */ -- (void)setObject:(id)obj forKey:(id)key; - -/** - * Add an object to the OOOrderedDictionary using OOOrderedDictionary.keySelector - * @param[in] obj the object to add - */ -- (void)addObject:(id)obj; - -/** - * Get the object associated with the key specified - * @param[in] key the key for the object - * @returns the object associated with key - */ -- (id)objectForKey:(id)key; - -/** - * Get the index for the object associated with the key specified - * @param[in] key the key for the object - * @returns the index for the object associated with key - */ -- (NSInteger)indexForKey:(id)key; - -/** - * Get the index for the object specified - * @param[in] value the object to get the index for - * @returns the index for the object - */ -- (NSInteger)indexForValue:(id)value; - -/** - * Get the object at the index specified - * @param[in] index the index of the object to fetch - * @returns the object at index - */ -- (id)objectAtIndex:(NSInteger)index; - -/** - * Remove all occurrences in the array of a given object - * @param[in] obj The object to remove from the array - */ -- (void)removeObject:(id)obj; - -/** - * Removes the object at index - * @param[in] index The index from which to remove the object in the array. The value must not exceed the bounds of the array. - */ -- (void)removeObjectAtIndex:(NSInteger)index; - -/** - * Removes all occurrences of a given object in the array - * @param[in] obj The object to remove from the array - */ -- (void)removeObjectIdenticalTo:(id)obj; - -/** - * Sort the array’s elements in ascending order, as determined by the comparison method specified by a given selector - * @param[in] comparator A selector that specifies the comparison method to use to compare elements in the array - * @par - * The comparator message is sent to each object in the array and has as its single argument another object in the array. The comparator method should return NSOrderedAscending if the array is smaller than the argument, NSOrderedDescending if the array is larger than the argument, and NSOrderedSame if they are equal. - */ -- (void)sortUsingSelector:(SEL)comparator; - -/** - * Sort the array using the specified options and the comparison method specified by a given NSComparator Block - * @param[in] opts A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably) - * @param[in] cmptr A comparator block - */ -- (void)sortWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr; - -/** - * Get the number of objects in the OOOrderedDictionary - * @returns the number of object in the OOOrderedDictionary - */ -- (NSUInteger)count; - -/** - * Get an ordered array of object in the given range - * @param[in] range the range of objects to get - * @returns an NSArray with the objects within the range - */ -- (NSArray *)objectsInRange:(NSRange)range; - -/** - * Get an ordered array of keys in the given range - * @param[in] range the range of keys to get - * @returns an NSArray with the keys within the range - */ -- (NSArray *)keysInRange:(NSRange)range; - -/** @internal - * This method is required by the protocol NSFastEnumeration. Simply calls the same from the internal NSMutableArray. - */ -- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(__unsafe_unretained id *)stackbuf count:(NSUInteger)len; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPaginatedParentItem.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPaginatedParentItem.h deleted file mode 100644 index 9501d28fb..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPaginatedParentItem.h +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @protocol OOPaginatedParentItem OOPaginatedParentItem.h "OOPaginatedParentItem.h" - * @brief OOPaginatedParentItem - * @details OOPaginatedParentItem.h in OoyalaSDK - * @date 12/7/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOCallbacks.h" -#import "OOReturnState.h" - -@class OOOoyalaError; - -@protocol OOPaginatedParentItem - -/** - * The OOPaginatedParentItem's Embed Code - * @returns the NSString embed code - */ -- (NSString *)embedCode; - -/** @internal - * Update the OOPaginatedParentItem using the specified data - * @param[in] data the NSDictionary containing the data to use to update this OOPaginatedParentItem - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** - * Find out it this OOPaginatedParentItem has more children - * @returns YES if it does, NO if it doesn't - */ -- (BOOL)hasMoreChildren; - -/** @internal - * @returns the next children token for this OOPaginatedParentItem - */ -- (NSString *)nextChildren; - -/** - * Fetch the additional children if they exist - * @param[in] callback the OOFetchMoreChildrenCallback to execute when the children are fetched - * @returns YES if more children exist, NO if they don't or they are already in the process of being fetched - */ -- (BOOL)fetchMoreChildren:(OOFetchMoreChildrenCallback)callback; - -/** - * The number of children this OOPaginatedParentItem has. - * @returns an NSUInteger with the number of children - */ -- (NSUInteger)childrenCount; - - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayPauseButton.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayPauseButton.h deleted file mode 100644 index 99986fe66..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayPauseButton.h +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @class OOFullscreenButton OOFullscreenButton.h "OOFullscreenButton.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import - -/** - A button that can toggle between play and pause icons. This button calls selectors for "play" and "pause" on their target - */ -@interface OOPlayPauseButton : UIBarButtonItem - -@property (nonatomic) BOOL isPlayShowing; /**< set to YES to show the play icon, or NO to show the pause icon */ - -/** - Initialize an OOPlayPauseButton - @param[in] scale a multiplier to resize the button - @returns an initialized OOPlayPauseButton, or nil - */ -- (id) initWithScale:(CGFloat)scale; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayableItem.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayableItem.h deleted file mode 100644 index 7e4632891..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayableItem.h +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @protocol OOPlayableItem OOPlayableItem.h "OOPlayableItem.h" - * @brief OOPlayableItem - * @details OOPlayableItem.h in OoyalaSDK - * @date 11/29/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ -#import -@protocol OOPlayableItem - -/** @internal - * Returns a set of streams representing the currently playing content - * @returns An NSArray of OOStreams. - */ -- (NSArray *)getStreams; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayer.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayer.h deleted file mode 100644 index e2a1e940d..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayer.h +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @class OOPlayer OOPlayer.h "OOPlayer.h" - * @brief OOPlayer - * @details OOPlayer.h in OoyalaSDK - * @date 12/14/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import - -#import "OOOoyalaPlayer.h" -#import "OOOoyalaError.h" -#import "OOPlayerProtocol.h" -#import "OOLifeCycle.h" - -@interface OOPlayer : NSObject { // really, an Abstract class. -@protected - OOOoyalaError *playerError; - UIView *view; - BOOL completed; - BOOL supportsVideoGravityButton; -} - -extern NSString *const PlayerErrorNotification; - -@property(nonatomic) Float64 playheadTime; /** KVO compatible playhead time */ -@property(readonly, nonatomic, strong) OOOoyalaError *playerError; /**< The OOPlayer's current error if it exists */ -@property(readonly, nonatomic, strong) UIView *view; -@property(nonatomic) BOOL completed; -@property(readonly, nonatomic, getter = isLiveClosedCaptionsAvailable) BOOL liveClosedCaptionsAvailable; - -- (BOOL)isPlaying; - -- (BOOL)isAudioOnlyStreamPlaying; - -- (void) setLiveClosedCaptionsEnabled:(BOOL)enabled; - -- (CMTimeRange) seekableTimeRange; - --(CGRect)videoRect; - -- (void)setState:(OOOoyalaPlayerState)state; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerDomain.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerDomain.h deleted file mode 100644 index 72e2b300b..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerDomain.h +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @class OOPlayerDomain OOPlayerDomain.h "OOPlayerDomain.h" - * @brief OOPlayerDomain - * @details OOPlayerDomain.h in OoyalaSDK - * @date 05/15/14 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -/** - * Represents the domain under which Ooyala analytics will be recorded. - */ -@interface OOPlayerDomain : NSObject -+ (id) domainWithString:(NSString*)string; -- (id) init __attribute__((unavailable("Use initWithString: instead"))); -/** - * domainStr must be parseable URL in the form of a string, starting with either http:// or https://. - */ -- (id) initWithString:(NSString*)domainStr; -- (NSString*)asString; -- (NSURL*)asURL; -@end \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerInfo.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerInfo.h deleted file mode 100644 index c7dbd64f1..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerInfo.h +++ /dev/null @@ -1,63 +0,0 @@ -// -// OOPlayerInfo.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -/** - * OOPlayerInfo represents information describing the capabilities of the playback device. - * These are used e.g. when negotiating with servers so they can choose the most appropriate - * asset encodings. - */ -@protocol OOPlayerInfo - -/* - A string representing the playback device. - ALWAYS SET THIS TO @"iphone-html5" until we release sas.ooyala.com - */ -@property (nonatomic, readonly, strong) NSString *device; - -/* - An NSArray of NSStrings describing supported content types for playback - HDS = @"hds" - RTMP = @"RTMP" - HLSs = @"m3u8" - MP4s = @"mp4" - AKAMAI HD = @"akamai_hd" - WIDEVINE HLS = @"wv_hls" - WIDEVINE MP4 = @"wv_mp4" - WIDEVINE WVM = @"wv_wvm" - MS Smooth = @"smooth" - - return nil to not include this parameter - */ -@property (nonatomic, readonly, strong) NSArray *supportedFormats; - -/* - Supported h264 profiles - @"baseline" - @"main" - @"high" - - return nil to not support this parameter - */ -@property (nonatomic, readonly, strong) NSArray *supportedProfiles; - -// the max supported video width -// set to -1 to ignore -@property (nonatomic, readonly) int maxWidth; - -// the max supported video height -// set to -1 to ignore -@property (nonatomic, readonly) int maxHeight; - -// the max supported video bitrate -// set to -1 to ignore -@property (nonatomic, readonly) int maxBitrate; - -// the user Agent of this particular player -@property (nonatomic, readonly) NSString *userAgent; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerProtocol.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerProtocol.h deleted file mode 100644 index ed424c091..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOPlayerProtocol.h +++ /dev/null @@ -1,108 +0,0 @@ -// -// OOPlayerProtocol.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import -#import - -/** - * Defines different gravity modes, which control how video is adjusted to available screen size - */ -typedef enum -{ - /** Specifies that the video should be stretched to fill the layer’s bounds. */ - OOOoyalaPlayerVideoGravityResize, - /** Specifies that the player should preserve the video’s aspect ratio and fit the video within the layer’s bounds */ - OOOoyalaPlayerVideoGravityResizeAspect, - /** Specifies that the player should preserve the video’s aspect ratio and fill the layer’s bounds. */ - OOOoyalaPlayerVideoGravityResizeAspectFill -} OOOoyalaPlayerVideoGravity; - -/** - * Defines different possible player states - */ -typedef enum -{ - /** Initial state, player is created but no content is loaded */ - OOOoyalaPlayerStateInit, - /** Loading content */ - OOOoyalaPlayerStateLoading, - /** Content is loaded and initialized, player is ready to begin playback */ - OOOoyalaPlayerStateReady, - /** Player is playing a video */ - OOOoyalaPlayerStatePlaying, - /** Player is paused, video is showing */ - OOOoyalaPlayerStatePaused, - /** Player has finished playing content */ - OOOoyalaPlayerStateCompleted, - /** Player has encountered an error, check OOOoyalaPlayer.error */ - OOOoyalaPlayerStateError -} OOOoyalaPlayerState; - -@protocol OOPlayerProtocol - -/** - * @returns YES if the player will put its own controls on-screen; - * NO if the player wants the Ooyala controls to be used instead. - */ -- (BOOL) hasCustomControls; - -/** - * This is called when pause is clicked - */ -- (void)pause; - -/** - * This is called when play is clicked - */ -- (void)play; - -/** - * This is called when stop is clicked - */ -- (void)stop; - -/** - * Get the current playhead time - * @returns the current playhead time as CMTime - */ -- (Float64)playheadTime; - -/** - * Get the current item's duration - * @returns duration as CMTime - */ -- (Float64)duration; - -/** - * Get the current item's buffer - * @returns buffer as CMTimeRange - */ -- (Float64)buffer; - -/** - * Set the current playhead time of the player - * @param[in] time CMTime to set the playhead time to - */ -- (void)seekToTime:(Float64)time; - -- (void)setVideoGravity:(OOOoyalaPlayerVideoGravity)gravity; - -/** - * This returns the player state - * - * @return the state - */ -@property (nonatomic, readonly) OOOoyalaPlayerState state; -@property (nonatomic) BOOL seekable; -@property (nonatomic, readonly) CMTimeRange seekableTimeRange; -@property (nonatomic) BOOL allowsExternalPlayback; -@property (nonatomic, readonly) BOOL externalPlaybackActive; -@property (nonatomic) float rate; // playback rate -@property (nonatomic, readonly) double bitrate; -@property (nonatomic, readonly) BOOL supportsVideoGravityButton; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOReturnState.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOReturnState.h deleted file mode 100644 index c0720edd7..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOReturnState.h +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @headerfile OOReturnState.h "OOReturnState.h" - * @brief OOReturnState - * @details OOReturnState.h in OoyalaSDK - * @date 2/2/12 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#ifndef OoyalaSDK_ReturnState_h -#define OoyalaSDK_ReturnState_h - -/** @internal - * Possible return states for update methods - */ -typedef enum { - OOReturnStateMatched, /**< @internal Found a match (success) */ - OOReturnStateUnmatched, /**< @internal No match found, but no errors either */ - OOReturnStateFail /**< @internal Error case */ -} OOReturnState; - -#endif diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOSecureURLGenerator.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOSecureURLGenerator.h deleted file mode 100644 index 8302c6e17..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOSecureURLGenerator.h +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @protocol OOSecureURLGenerator OOSecureURLGenerator.h "OOSecureURLGenerator.h" - * @brief OOSecureURLGenerator - * @details OOSecureURLGenerator.h in OoyalaSDK - * @date 12/1/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -@protocol OOSecureURLGenerator - -/** - * Generate the secure URL - * @par - * This method should use one of the following security method to create a complete NSURL: - * @li Create a signature from the parameters (including API Key and Domain, which are not guarenteed to be in params) and a secret - * @param[in] host the hostname for the URL - * @param[in] uri the URI for the URL - * @param[in] params the URI params for the URL (not including any security params that the security method would use) - * @returns a secure NSURL created from the parameters using one of the supported security methods - */ -- (NSURL *)secureURL:(NSString *)host uri:(NSString *)uri params:(NSDictionary *)params; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOSignatureGenerator.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOSignatureGenerator.h deleted file mode 100644 index c89cd018e..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOSignatureGenerator.h +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @protocol OOSignatureGenerator OOSignatureGenerator.h "OOSignatureGenerator.h" - * @brief OOSignatureGenerator - * @details OOSignatureGenerator.h in OoyalaSDK - * @date 11/30/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -@protocol OOSignatureGenerator - -/** - * Generate the APIv2/SAS style signature - * @par - * This method should do the following: - * @li Prepend the secret key to data - * @li Hash the resulting string using the SHA256 algorithm - * @li Base64 encode the resulting hash - * @li Convert the Base64 encoded hash to an NSString - * @li Truncate the NSString to 43 characters - * @li Strip any '=' characters from the end of the truncated NSString - * @li Return the resulting NSString - * @param[in] data the NSString to create the signature from (not prepended with the secret key) - * @returns an NSString containing the signature - */ -- (NSString *)sign:(NSString *)data; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStateNotifier.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStateNotifier.h deleted file mode 100644 index 1864306cb..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStateNotifier.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// OOStateNotifier.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - - -@interface OOStateNotifier : NSObject - -@property OOOoyalaPlayerState state; - -- (void)notifyPlayheadChange; -- (void)notifyAdsLoaded; -- (void)notifyAdSkipped; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStream.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStream.h deleted file mode 100644 index 242370dae..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStream.h +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @class OOStream OOStream.h "OOStream.h" - * @brief OOStream - * @details OOStream.h in OoyalaSDK - * @date 11/24/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOTBXML.h" -#import "OOReturnState.h" - -@class OOStream; - -/** - * The block used to select the correct OOStream to play. - * @param[in] streams the array of streams to select from - * @returns the OOStream to play - */ -typedef OOStream *(^OOStreamSelector)(NSArray *streams); - -@interface OOStream : NSObject { - NSString *deliveryType; - NSString *videoCodec; - NSString *urlFormat; - NSString *framerate; - NSInteger videoBitrate; - NSInteger audioBitrate; - NSInteger height; - NSInteger width; - NSString *url; - NSString *aspectRatio; - BOOL isLiveStream; - NSString *widevineServerPath; -} - -@property(readonly, nonatomic, strong) NSString *deliveryType; /**< The OOStream's delivery type */ -@property(readonly, nonatomic, strong) NSString *videoCodec; /**< The OOStream's video codec */ -@property(readonly, nonatomic, strong) NSString *urlFormat; /**< The OOStream's url format */ -@property(readonly, nonatomic, strong) NSString *framerate; /**< The OOStream's framerate */ -@property(readonly, nonatomic) NSInteger videoBitrate; /**< The OOStream's video bitrate */ -@property(readonly, nonatomic) NSInteger audioBitrate; /**< The OOStream's audio bitrate */ -@property(readonly, nonatomic) NSInteger height; /**< The OOStream's height */ -@property(readonly, nonatomic) NSInteger width; /**< The OOStream's width */ -@property(readonly, nonatomic, strong) NSString *url; /**< The OOStream's URL in the format specified by OOStream.urlFormat */ -@property(readonly, nonatomic, strong) NSString *aspectRatio; /**< The OOStream's URL (Remote Asset only) */ -@property(readonly, nonatomic, assign) BOOL isLiveStream; /**< The OOStream's URL (Remote Asset only) */ -@property(readonly, nonatomic, strong) NSString *profile; /**< The OOStream's encoding profile */ -@property(readonly, nonatomic, strong) NSString *widevineServerPath; /**< The OOStream's widevine server path */ - -/** - * Get the combined (video+audio) bitrate of this OOStream - * @returns an NSNumber containing the combined bitrate - */ -- (NSInteger)combinedBitrate; - -/** @internal - * Initialize a OOStream using the specified data (subclasses should override this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOStream - * @returns the initialized OOStream - */ -- (id)initWithDictionary:(NSDictionary *)data; - -/** @internal - * Update the OOStream using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOStream - * @returns OOReturnState.OOReturnStateFail if the parsing failed, OOReturnState.OOReturnStateMatched if it was successful - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** @internal - * Get an NSURL from the url + urlFormat - * @returns an NSURL object created by decoding the url according to urlFromat - */ -- (NSURL *)decodedURL; - -/** - * Gets the Widevine Server Path, if it was passed in from SAS - * @returns the widevine server path - */ -- (NSString *)getWidevineServerPath; - -/** @internal - * Check if the OOStream is better than the other - * @returns YES if it is, NO if not - */ -+ (BOOL)is:(OOStream *)stream betterThan:(OOStream *)better; - -/** @internal - * Check if the OOStream is playable - * @returns YES if it is, NO if not - */ -+ (BOOL)isPlayable:(OOStream *)stream; - -/** @internal - * Check if the OOStream's size, bitrate, and profile are playable - * @returns YES if the size, bitrate, and profile are playable, NO if not - */ -+ (BOOL)areSizeBitrateAndProfilePlayable:(OOStream *)stream; - -/** @internal - * Check if the OOStream's delivery type is playable - * @returns YES if the delivery type is playable, NO if not - */ -+ (BOOL)isDeliveryTypePlayable:(OOStream *)stream; - -/** @internal - * Create a OOStream from the given data - * @param[in] data the data to create the OOStream with - * @returns the created OOStream - */ -+ (OOStream *)streamFromDictionary:(NSDictionary *)data; - -+ (OOStream *)streamFromUrl:(NSURL *)url withType:(NSString *)type; - -/** @internal - * Fetch the best OOStream to play from the given array of streams - * @param[in] streams the array of streams to select from - * @returns The hls stream if it exists, otherwise the lowest bitrate mp4 stream - */ -+ (OOStream *)bestStreamFromArray:(NSArray *)streams; - -+ (BOOL)containsDeliveryType:(NSString *)type inArray:(NSArray *)streams; - -+ (OOStream *)streamWithType:(NSString *)type fromArray:(NSArray *)streams; - -/** - * Set the OOStreamSelector used to select the best stream from an array - * @param[in] selector the OOStreamSelector to use - */ -+ (void)setStreamSelector:(OOStreamSelector)selector; - -/** - * Reset the OOStreamSelector to the default - */ -+ (void)resetStreamSelector; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayer.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayer.h deleted file mode 100644 index b47024e93..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayer.h +++ /dev/null @@ -1,28 +0,0 @@ -// -// OOStreamPlayer.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -#import "OOPlayer.h" -#import "OOPlayerInfo.h" - -@interface OOStreamPlayer : OOPlayer -@property OOSeekStyle seekStyle; -+ (id) defaultPlayerInfo; -+ (void) setDefaultPlayerInfo:(id) playerInfo; - -- (BOOL)setup:(NSArray *)streams parent:(OOOoyalaPlayer*)parent; -- (id)playerInfo; - -/** - * seek to time - * @param[in] time to seek - * @param[in] onCompletion a callback when seek is completed - */ -- (void)seekToTime:(Float64)time completion:(void (^)())onCompletion; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayerMappingCreator.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayerMappingCreator.h deleted file mode 100644 index e8a2b2e55..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayerMappingCreator.h +++ /dev/null @@ -1,12 +0,0 @@ -// -//Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -@class OOOoyalaPlayer; -@class OOStreamPlayer; - -@protocol OOStreamPlayerMappingCreator -- (OOStreamPlayer *)newPlayer; -@end \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayerMappingPredicate.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayerMappingPredicate.h deleted file mode 100644 index 01df5a7ec..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOStreamPlayerMappingPredicate.h +++ /dev/null @@ -1,9 +0,0 @@ -// -//Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -@protocol OOStreamPlayerMappingPredicate --(BOOL) matchesStreams:(NSArray*)streams; -@end \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOTransparentToolbar.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOTransparentToolbar.h deleted file mode 100644 index 448cacfe2..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOTransparentToolbar.h +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @class OOTransparentToolbar OOTransparentToolbar.h "OOTransparentToolbar.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -/** - A transparent toolbar that can be used to overlay over other views - */ -@interface OOTransparentToolbar : UIToolbar - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOUIProgressSliderIOS7.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOUIProgressSliderIOS7.h deleted file mode 100644 index 6991fdd8c..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOUIProgressSliderIOS7.h +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @class OOUIProgressSliderIOS7 OOUIProgressSliderIOS7.h "OOUIProgressSliderIOS7.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import -#import "OOCuePointsView.h" - -// An enum of different slider UI styles -enum -{ - OOUIProgressSliderModeLive, - OOUIProgressSliderModeAdInLive, - OOUIProgressSliderModeNormal, - OOUIProgressSliderModeLiveNoSrubber -}; -typedef NSInteger OOUIProgressSliderMode; - -/** - A view that can display the the current time, duration, and scrubber. - */ -@interface OOUIProgressSliderIOS7 : UIView { - OOUIProgressSliderMode mode; -} - -@property (nonatomic) float duration; /**< The duration to display in the slider, in seconds */ -@property (nonatomic) float currentTime; /**< The current time to display in the slider, in seconds */ -@property (nonatomic) float currentAvailableTime; /**< The available buffer time to display on the slider, in seconds */ -@property (nonatomic) OOUIProgressSliderMode mode; /**< The UI style to use in the slider */ -@property (nonatomic) CMTimeRange seekableTimeRange; /**< The seekable time range of the OoyalaPlayer */ -@property (nonatomic) UILabel *liveIndicator; /**< A label that indicates if the video is live or not */ -@property (nonatomic) UISlider *scrubber; /** The UISlider used for scrubbing */ -@property (nonatomic) NSSet *cuePointsAtSeconds; /**< The set of NSNumber cuepoints to render, in seconds */ - -/** - Force the slider to render up-to-date duration, current time, and slider position - */ -- (void)updateTimeDisplay; - -/** - Get the absolute value of the scrubber. Used primarily during live streaming - @returns the absolute value of the scrubber's value - */ -- (Float64)scrubberAbsoluteValue; -/** - Force the slider to render the "Live" indicator - */ -- (void)drawLiveIndicator; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOUserInfo.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOUserInfo.h deleted file mode 100644 index d2c87f73e..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOUserInfo.h +++ /dev/null @@ -1,31 +0,0 @@ -// -// OOUserInfo.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -/** - * This is the UserInfo that is provided from SAS after authorization - */ -@interface OOUserInfo : NSObject - -@property(readonly, nonatomic) NSString *accountId; /** The account ID of the authorized user */ -@property(readonly, nonatomic) NSString *continent; /** The continent of origin for the authorization*/ -@property(readonly, nonatomic) NSString *country; /** The country of origin for the authorization */ -@property(readonly, nonatomic) NSString *device; /** The device provided to the Authorization*/ -@property(readonly, nonatomic) NSString *domain; /** The domain provided to the Authorization*/ -@property(readonly, nonatomic) NSString *ipAddress; /** The IP address of the Authorized user */ -@property(readonly, nonatomic) NSString *language; /** The language provided to the Authorization */ -@property(readonly, nonatomic) NSString *timezone; /** The Ttimezone of the authorized user */ - -/** - * @internal - * Initializes the userInfo object that is returned from SAS - * @param[in] config a dictionary of information from SAS. - * @returns the created OOUserInfo - */ -- (id) initWithDictionary: (NSDictionary *) config; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAd.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAd.h deleted file mode 100644 index 19856a81e..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAd.h +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @class OOVASTAd OOVASTAd.h "OOVASTAd.h" - * @brief OOVASTAd - * @details OOVASTAd.h in OoyalaSDK - * @date 12/8/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOTBXML.h" -#import "OOVASTAdData.h" - -@interface OOVASTAd : NSObject { -@protected -OOVASTAdData *_adData; -} - -@property(readonly, nonatomic) NSString *adID; /**< the ID of the Ad */ -@property(readonly, nonatomic) NSString *system; /**< the System */ -@property(readonly, nonatomic) NSString *systemVersion; /**< the System Version */ -@property(readonly, nonatomic) NSString *title; /**< the title of the Ad */ -@property(readonly, nonatomic) NSString *adDescription; /**< the description of the Ad */ -@property(readonly, nonatomic) NSMutableArray *surveyURLs; /**< the survey URLs of the Ad */ -@property(readonly, nonatomic) NSMutableArray *errorURLs; /**< the error URLs of the Ad */ -@property(readonly, nonatomic) NSMutableArray *impressionURLs; /**< the impression URLs of the Ad */ -@property(readonly, nonatomic) NSMutableArray *sequence; /**< the ordered sequence of the Ad (NSMutableArray of OOVASTSequenceItem) */ -@property(readonly, nonatomic) NSDictionary *extensions; /**< the extensions of the Ad */ - --(instancetype) init __attribute__((unavailable("init not available"))); - -/** @internal - * Initialize a OOVASTAd using the specified xml (subclasses should override this) - * @param[in] xml the OOTBXMLElement containing the xml to use to initialize this OOVASTAd - * @returns the initialized OOVASTAd - */ -- (id)initWithXML:(OOTBXMLElement *)xml; - -/** @internal - * Update the OOVASTAd using the specified xml (subclasses should override this) - * @param[in] xml the OOTBXMLElement containing the xml to use to update this OOVASTAd - * @returns YES if the XML was properly formatter, NO if not - */ -- (BOOL)updateWithXML:(OOTBXMLElement *)xml; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAdData.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAdData.h deleted file mode 100644 index 9fbfd66d0..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAdData.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// OOVASTAdData.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -@interface OOVASTAdData : NSObject -@property(nonatomic, strong) NSString *adID; /**< the ID of the Ad */ -@property(nonatomic, strong) NSString *system; /**< the System */ -@property(nonatomic, strong) NSString *systemVersion; /**< the System Version */ -@property(nonatomic, strong) NSString *title; /**< the title of the Ad */ -@property(nonatomic, strong) NSString *adDescription; /**< the description of the Ad */ -@property(nonatomic, strong) NSMutableArray *surveyURLs; /**< the survey URLs of the Ad */ -@property(nonatomic, strong) NSMutableArray *errorURLs; /**< the error URLs of the Ad */ -@property(nonatomic, strong) NSMutableArray *impressionURLs; /**< the impression URLs of the Ad */ -@property(nonatomic, strong) __block NSMutableArray *sequence; /**< the ordered sequence of the Ad (NSMutableArray of OOVASTSequenceItem) */ -@property(nonatomic) NSDictionary *extensions; /**< the extensions of the Ad */ -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAdSpot.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAdSpot.h deleted file mode 100644 index 43a54165c..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTAdSpot.h +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @class OOVASTAdSpot OOVASTAdSpot.h "OOVASTAdSpot.h" - * @brief OOVASTAdSpot - * @details OOVASTAdSpot.h in OoyalaSDK - * @date 12/7/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOManagedAdSpot.h" - -@interface OOVASTAdSpot : OOManagedAdSpot { -@protected - NSString *signature; - NSInteger expires; - NSMutableArray *ads; -} - -@property(readonly, nonatomic, strong) NSString *signature; /**< The signature for the vast request */ -@property(readonly, nonatomic) NSInteger expires; /**< The expires for the vast request */ -@property(readonly, nonatomic, strong) NSURL *vastURL; /**< The url for the vast request */ -@property(readonly, nonatomic, strong) NSMutableArray *ads; /**< The actual ads (NSMutableArray of OOVASTAd) */ - -/** - * Initialize a OOVASTAdSpot using the VAST URL - * @param[in] theTime the time at which to play the ad - * @param[in] theClickURL the clickthrough URL - * @param[in] theTrackingURLs the tracking URLs - * @param[in] theVASTURL the VAST URL to initialize the OOVASTAdSpot with - * @returns the initialized OOVASTAdSpot - */ -- (id)initWithTime:(NSNumber *)theTime clickURL:(NSURL *)theClickURL trackingURLs:(NSArray *)theTrackingURLs vastURL:(NSURL *)theVASTURL; - - -/** @internal - * Initialize a OOVASTAdSpot using the specified data (subclasses should override this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOVASTAdSpot - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOVASTAd - * @returns the initialized OOVASTAdSpot - */ -- (id)initWithDictionary:(NSDictionary *)data api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Update the OOVASTAdSpot using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOVASTAdSpot - * @returns OOReturnState.OOReturnStateFail if the parsing failed, OOReturnState.OOReturnStateMatched if it was successful - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** @internal - * Fetch the additional required info for the ad - * @note As of right now, we only support VAST 2.0 Linear Ads. Information about Non-Linear and Companion Ads are stored in the dictionaries nonLinear and companion respectively. - * @returns NO if errors occurred, YES if successful - */ -- (BOOL)fetchPlaybackInfo; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTLinearAd.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTLinearAd.h deleted file mode 100644 index 33065e183..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTLinearAd.h +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @class OOVASTLinearAd OOVASTLinearAd.h "OOVASTLinearAd.h" - * @brief OOVASTLinearAd - * @details OOVASTLinearAd.h in OoyalaSDK - * @date 12/8/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import "OOTBXML.h" -#import "OOPlayableItem.h" - -@interface OOVASTLinearAd : NSObject { -@protected - Float64 duration; - NSMutableDictionary *trackingEvents; - NSString *parameters; - NSString *clickThroughURL; - NSMutableArray *clickTrackingURLs; - NSMutableArray *customClickURLs; - NSMutableArray *streams; -} - -@property(readonly, nonatomic) Float64 duration; /**< The duration of the ad in seconds */ -@property(readonly, nonatomic, strong) NSMutableDictionary *trackingEvents; /**< The tracking events in an NSMutableDictionary of event name to NSMutableArray of NSString */ -@property(readonly, nonatomic, strong) NSString *parameters; /**< The additional ad parameters */ -@property(readonly, nonatomic, strong) NSString *clickThroughURL; /**< The click through url */ -@property(readonly, nonatomic, strong) NSMutableArray *clickTrackingURLs; /**< The click tracking urls in an NSMutableArray of NSString */ -@property(readonly, nonatomic, strong) NSMutableArray *customClickURLs; /**< The custom click urls in an NSMutableArray of NSString */ -@property(readonly, nonatomic, strong) NSMutableArray *streams; /**< The streams in an NSMutableArray of OOStream */ - -/** @internal - * Initialize a OOVASTLinearAd using the specified xml (subclasses should override this) - * @param[in] xml the OOTBXMLElement containing the xml to use to initialize this OOVASTLinearAd - * @returns the initialized OOVASTLinearAd - */ -- (id)initWithXML:(OOTBXMLElement *)xml; - -/** @internal - * Update the tracking events of the inline linear ad by adding the new tracking events of the wrapper ad - * @param[in] newTrackingEvents the NSMutableDictionary of the wrapper's tracking events - */ -- (void)updateTrackingEvents:(NSMutableDictionary*)newTrackingEvents; - -/** @internal - * Update the click tracking URLs of the inline linear ad by adding the new click tracking URLs of the wrapper ad - * @param[in] newClickTrackingURLs the NSMutableArray of the wrapper's click tracking URLs - */ -- (void)updateClickTrackingURLs:(NSMutableArray*)newClickTrackingURLs; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTSequenceItem.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTSequenceItem.h deleted file mode 100644 index 33f0d9a4c..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTSequenceItem.h +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @class OOVASTSequenceItem OOVASTSequenceItem.h "OOVASTSequenceItem.h" - * @brief OOVASTSequenceItem - * @details OOVASTSequenceItem.h in OoyalaSDK - * @date 12/8/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import - -@class OOVASTLinearAd; - -@interface OOVASTSequenceItem : NSObject { -@protected - NSInteger number; - OOVASTLinearAd *linear; - NSDictionary *nonLinears; - NSDictionary *companions; -} - -@property(nonatomic) NSInteger number; /**< The sequence number associated with this item in the sequence */ -@property(nonatomic, strong) OOVASTLinearAd *linear; /**< The Linear Ad associated with this item in the sequence */ -@property(nonatomic, strong) NSDictionary *nonLinears; /**< The Non-Linear Ads associated with this item in the sequence (XML converted to NSDictionary) */ -@property(nonatomic, strong) NSDictionary *companions; /**< The Companion Ads associated with this item in the sequence (XML converted to NSDictionary) */ - -/** - * Whether or not this OOVASTSequenceItem has a linear ad - * @returns YES if there exists a linear ad, NO if there does not; - */ -- (BOOL)hasLinear; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTStream.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTStream.h deleted file mode 100644 index ae66babcd..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTStream.h +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @class OOVASTStream OOVASTStream.h "OOVASTStream.h" - * @brief OOVASTStream - * @details OOVASTStream.h in OoyalaSDK - * @date 12/8/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOStream.h" - -@interface OOVASTStream : OOStream { - BOOL scalable; - BOOL maintainAspectRatio; - NSString *vastDeliveryType; - NSString *apiFramework; -} - -@property(readonly, nonatomic) BOOL scalable; /**< if this stream is scalable */ -@property(readonly, nonatomic) BOOL maintainAspectRatio; /**< if this stream must maintain the aspect ratio */ -@property(readonly, nonatomic, strong) NSString *vastDeliveryType; /**< the vast delivery type of this stream */ -@property(readonly, nonatomic, strong) NSString *apiFramework; /**< the apiFramework of this stream */ - -/** @internal - * Initialize a OOStream using the specified VAST MediaFile XML (subclasses should override this) - * @param[in] xml the OOTBXMLElement containing the xml to use to initialize this OOStream - * @returns the initialized OOStream - */ -- (id)initWithXML:(OOTBXMLElement *)xml; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTUtils.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTUtils.h deleted file mode 100644 index fbd4b021a..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTUtils.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// OOVASTUtils.h -// OoyalaSDK -// -// Copyright (c) 2015 Ooyala, Inc. All rights reserved. -// - -#import - -@interface OOVASTUtils : NSObject -+(void)setAdvertisingId:(NSString*)adId; -+(NSString*)advertisingId; -+ (NSURL *)urlFromAdUrlString:(NSString *)url; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTWrapperAd.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTWrapperAd.h deleted file mode 100644 index c59458125..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVASTWrapperAd.h +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @class OOVASTWrapperAd OOVASTWrapperAd.h "OOVASTWrapperAd.h" - * @brief OOVASTWrapperAd - * @details OOVASTWrapperAd.h in OoyalaSDK - * @date 9/24/13 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOVASTAd.h" - -@interface OOVASTWrapperAd : OOVASTAd -@property(nonatomic) OOTBXMLElement *childAdXML; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVideo.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVideo.h deleted file mode 100644 index c42a80d9b..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVideo.h +++ /dev/null @@ -1,122 +0,0 @@ -/** - * @class OOVideo OOVideo.h "OOVideo.h" - * @brief OOVideo - * @details OOVideo.h in OoyalaSDK - * @date 11/21/11 - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import "OOPlayableItem.h" -#import "OOContentItem.h" - -@class OOManagedAdSpot; -@class OOPlayerAPIClient; -@class OOChannel; -@class OOClosedCaptions; - -/** - * this class implements video stream object - */ -@interface OOVideo : OOContentItem { -@protected - NSMutableArray *ads; - OOClosedCaptions *closedCaptions; - OOChannel *parent; - Float64 duration; - BOOL live; -} - -@property(readonly, nonatomic, strong) NSMutableArray *ads; /**< @internal An NSMutableArray containing the ads */ -@property(readonly, nonatomic, strong) OOClosedCaptions *closedCaptions; /**< @internal An NSMutableArray containing the closedCaptions */ -@property(readonly, nonatomic, strong) OOChannel *parent; /**< This OOVideo's parent OOChannel if it exists (could be a OODynamicChannel) */ -@property(readonly, nonatomic) Float64 duration; /**< The OOVideo's Total Duration (Length) */ -@property(readonly, nonatomic) BOOL live; /**< Whether or not the video is live */ - -/** @internal - * Initialize a OOVideo using the specified data (subclasses should override this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOVideo - * @param[in] theEmbedCode the embed code to fetch from the dictionary - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOVideo - * @returns the initialized OOVideo - */ -- (id)initWithDictionary:(NSDictionary *)data embedCode:(NSString *)theEmbedCode api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Initialize a OOVideo using the specified data (subclasses should override this) - * @param[in] data the NSDictionary containing the data to use to initialize this OOVideo - * @param[in] theEmbedCode the embed code to fetch from the dictionary - * @param[in] theParent the parent OOChannel of this OOVideo - * @param[in] theAPI the OOPlayerAPIClient that was used to fetch this OOVideo - * @returns the initialized OOVideo - */ -- (id)initWithDictionary:(NSDictionary *)data embedCode:(NSString *)theEmbedCode parent:(OOChannel *)theParent api:(OOPlayerAPIClient *)theAPI; - -/** @internal - * Update the OOVideo using the specified data (subclasses should override and call this) - * @param[in] data the NSDictionary containing the data to use to update this OOVideo - * @returns a OOReturnState based on if the data matched or not (or parsing failed) - */ -- (OOReturnState)updateWithDictionary:(NSDictionary *)data; - -/** - * Get the first OOVideo for this OOVideo, which is this OOVideo - * @returns self - */ -- (OOVideo *)firstVideo; - -/** - * Get the next OOVideo for this OOVideo from the parent - * @returns nil if this is the last OOVideo or there is no parent, otherwise the next OOVideo - */ -- (OOVideo *)nextVideo; - -/** - * Get the previous OOVideo for this OOVideo from the parent - * @returns nil if this is the first OOVideo or there is no parent, otherwise the previous OOVideo - */ -- (OOVideo *)previousVideo; - -/** @internal - * Get the OOVideo with the specified embed code - * @param[in] embedCode the embed code to look up - * @param[in] currentItem the current OOVideo - * @returns the video if embed code matches, else nil - */ -- (OOVideo *)videoFromEmbedCode:(NSString *)embedCode withCurrentItem:(OOVideo *)currentItem; - -/** @internal - * Fetch the additional required info for playback (ads and closed captions) - * @returns NO if errors occurred or YES if successful - */ -- (BOOL)fetchPlaybackInfo; - -/** - * @internal - */ -- (id)fetchPlaybackInfo:(void (^)(BOOL))callback; - -/** - * Check if the OOVideo has ads - * @returns whether the OOVideo has ads or not - */ -- (BOOL)hasAds; - -/** - * Check if the OOVideo has Closed Captions - * @returns whether the OOVideo has closed captions or not - */ -- (BOOL)hasClosedCaptions; - -/** - * Insert an OOAdSpot to play during this video - * @param ad the OOAdSpot to play during this video - */ -- (void)insertAd:(OOManagedAdSpot *)ad; - -/** - * Edit the list of ads, allowing for removal of ads. - * @param predicate block that returns TRUE for ads to keep, FALSE for ads to remove. - */ --(void)filterAds:(NSPredicate*)predicate; - -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVideoGravityButton.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVideoGravityButton.h deleted file mode 100644 index 7140e72cd..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/OOVideoGravityButton.h +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @class OOVideoGravityButton OOVideoGravityButton.h "OOVideoGravityButton.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import - -/** - A button that can toggle between Fill and Fit icons. This button has no default actions or targets - */ -@interface OOVideoGravityButton : UIBarButtonItem - -/** - Initialize an OOVideoGravityButton - @param[in] scale a multiplier to resize the button - @returns an initialized OOVideoGravityButton, or nil - */ -- (id) initWithScale:(CGFloat)scale; -/** - Set if the Fill icon is showing, or if the Fit icon is showing. - @param[in] isGravityFillShowing YES to show the Fill icon, or NO to show the Fit icon - */ -- (void)setIsGravityFillShowing:(BOOL)isGravityFillShowing; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/iOS7ScrubberSliderFraming.h b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/iOS7ScrubberSliderFraming.h deleted file mode 100644 index e7a22ae1b..000000000 --- a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/Headers/iOS7ScrubberSliderFraming.h +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @class iOS7ScrubberSliderFraming iOS7ScrubberSliderFraming.h "iOS7ScrubberSliderFraming.h" - * @copyright Copyright (c) 2015 Ooyala, Inc. All rights reserved. - */ - -#import -#import - -/** - * A class which helps measure the correct size for the scrubber, after all buttons have been measured - */ -@interface iOS7ScrubberSliderFraming : NSObject - -/** - Measure the Scrubber Slider with buttons - @param[in] buttonArray the array of buttons used in the scrubber - @param[in] baseWidth the width of the scrubber to use for caluclations - @returns the frame where you can plase the scrubber - */ -+(CGRect)calculateScrubberSliderFramewithButtons:(NSArray *)buttonArray - baseWidth:(CGFloat)baseWidth; -@end diff --git a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/OoyalaSDK b/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/OoyalaSDK deleted file mode 100644 index 06e4362ba..000000000 Binary files a/PlaybackLab/SwiftSampleApp/OoyalaSDK.framework/OoyalaSDK and /dev/null differ diff --git a/PlaybackLab/SwiftSampleApp/SwiftSampleApp.xcodeproj/project.pbxproj b/PlaybackLab/SwiftSampleApp/SwiftSampleApp.xcodeproj/project.pbxproj index bfa58b058..8b708b61f 100644 --- a/PlaybackLab/SwiftSampleApp/SwiftSampleApp.xcodeproj/project.pbxproj +++ b/PlaybackLab/SwiftSampleApp/SwiftSampleApp.xcodeproj/project.pbxproj @@ -18,7 +18,6 @@ 0B193AE11AC1182D00EFFE17 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AE01AC1182D00EFFE17 /* CFNetwork.framework */; }; 0B193AE41AC1184500EFFE17 /* MediaAccessibility.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AE21AC1184500EFFE17 /* MediaAccessibility.framework */; }; 0B193AE51AC1184500EFFE17 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AE31AC1184500EFFE17 /* MediaPlayer.framework */; }; - 0B193AE71AC1185800EFFE17 /* OoyalaSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AE61AC1185800EFFE17 /* OoyalaSDK.framework */; }; 0B193AE91AC1186D00EFFE17 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AE81AC1186D00EFFE17 /* SystemConfiguration.framework */; }; 0B193AEB1AC1187A00EFFE17 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AEA1AC1187A00EFFE17 /* Security.framework */; }; 0B193AED1AC1188B00EFFE17 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AEC1AC1188B00EFFE17 /* AVFoundation.framework */; }; @@ -30,12 +29,9 @@ 0B193AF91AC118D500EFFE17 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AF81AC118D500EFFE17 /* CoreGraphics.framework */; }; 0B193AFB1AC118E100EFFE17 /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AFA1AC118E100EFFE17 /* libxml2.dylib */; }; 0B193AFD1AC118F400EFFE17 /* libc++.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B193AFC1AC118F400EFFE17 /* libc++.dylib */; }; - 0B35A0641ACB10F30003CE85 /* InterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B35A0631ACB10F30003CE85 /* InterfaceController.swift */; }; - 0B35A0661ACB10F30003CE85 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0B35A0651ACB10F30003CE85 /* Images.xcassets */; }; - 0B35A06A1ACB10F30003CE85 /* SwiftSampleApp WatchKit App.app in Resources */ = {isa = PBXBuildFile; fileRef = 0B35A0691ACB10F30003CE85 /* SwiftSampleApp WatchKit App.app */; }; - 0B35A0721ACB10F30003CE85 /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0B35A0701ACB10F30003CE85 /* Interface.storyboard */; }; - 0B35A0741ACB10F30003CE85 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0B35A0731ACB10F30003CE85 /* Images.xcassets */; }; - 0B35A0771ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 0B35A05F1ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 0B50E1D11DDD429B00817DD8 /* OoyalaSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B50E1D01DDD429B00817DD8 /* OoyalaSDK.framework */; }; + 0B50E1D31DDD45D000817DD8 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B50E1D21DDD45D000817DD8 /* JavaScriptCore.framework */; }; + 0B50E1D51DDD45D400817DD8 /* AVKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B50E1D41DDD45D400817DD8 /* AVKit.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -46,20 +42,6 @@ remoteGlobalIDString = 0B193AB41AC109A500EFFE17; remoteInfo = SwiftSampleApp; }; - 0B35A06B1ACB10F30003CE85 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0B193AAD1AC109A500EFFE17 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0B35A0681ACB10F30003CE85; - remoteInfo = "SwiftSampleApp WatchKit App"; - }; - 0B35A0751ACB10F30003CE85 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0B193AAD1AC109A500EFFE17 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0B35A05E1ACB10F30003CE85; - remoteInfo = "SwiftSampleApp WatchKit Extension"; - }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -69,7 +51,6 @@ dstPath = ""; dstSubfolderSpec = 13; files = ( - 0B35A0771ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension.appex in Embed App Extensions */, ); name = "Embed App Extensions"; runOnlyForDeploymentPostprocessing = 0; @@ -92,7 +73,6 @@ 0B193AE01AC1182D00EFFE17 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; 0B193AE21AC1184500EFFE17 /* MediaAccessibility.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaAccessibility.framework; path = System/Library/Frameworks/MediaAccessibility.framework; sourceTree = SDKROOT; }; 0B193AE31AC1184500EFFE17 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; - 0B193AE61AC1185800EFFE17 /* OoyalaSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OoyalaSDK.framework; sourceTree = ""; }; 0B193AE81AC1186D00EFFE17 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 0B193AEA1AC1187A00EFFE17 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; 0B193AEC1AC1188B00EFFE17 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; @@ -105,14 +85,15 @@ 0B193AFA1AC118E100EFFE17 /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; }; 0B193AFC1AC118F400EFFE17 /* libc++.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libc++.dylib"; path = "usr/lib/libc++.dylib"; sourceTree = SDKROOT; }; 0B193AFF1AC11A5400EFFE17 /* SwiftSampleApp-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SwiftSampleApp-Bridging-Header.h"; sourceTree = ""; }; - 0B35A05F1ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "SwiftSampleApp WatchKit Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 0B35A0621ACB10F30003CE85 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 0B35A0631ACB10F30003CE85 /* InterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceController.swift; sourceTree = ""; }; 0B35A0651ACB10F30003CE85 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 0B35A0691ACB10F30003CE85 /* SwiftSampleApp WatchKit App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SwiftSampleApp WatchKit App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 0B35A06F1ACB10F30003CE85 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 0B35A0711ACB10F30003CE85 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = ""; }; 0B35A0731ACB10F30003CE85 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 0B50E1D01DDD429B00817DD8 /* OoyalaSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OoyalaSDK.framework; sourceTree = ""; }; + 0B50E1D21DDD45D000817DD8 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; + 0B50E1D41DDD45D400817DD8 /* AVKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVKit.framework; path = System/Library/Frameworks/AVKit.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -120,6 +101,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 0B50E1D51DDD45D400817DD8 /* AVKit.framework in Frameworks */, + 0B50E1D31DDD45D000817DD8 /* JavaScriptCore.framework in Frameworks */, 0B193AFD1AC118F400EFFE17 /* libc++.dylib in Frameworks */, 0B193AFB1AC118E100EFFE17 /* libxml2.dylib in Frameworks */, 0B193AF91AC118D500EFFE17 /* CoreGraphics.framework in Frameworks */, @@ -130,8 +113,8 @@ 0B193AEF1AC1189A00EFFE17 /* CoreText.framework in Frameworks */, 0B193AED1AC1188B00EFFE17 /* AVFoundation.framework in Frameworks */, 0B193AEB1AC1187A00EFFE17 /* Security.framework in Frameworks */, + 0B50E1D11DDD429B00817DD8 /* OoyalaSDK.framework in Frameworks */, 0B193AE91AC1186D00EFFE17 /* SystemConfiguration.framework in Frameworks */, - 0B193AE71AC1185800EFFE17 /* OoyalaSDK.framework in Frameworks */, 0B193AE41AC1184500EFFE17 /* MediaAccessibility.framework in Frameworks */, 0B193AE51AC1184500EFFE17 /* MediaPlayer.framework in Frameworks */, 0B193AE11AC1182D00EFFE17 /* CFNetwork.framework in Frameworks */, @@ -146,13 +129,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 0B35A05C1ACB10F30003CE85 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -162,6 +138,7 @@ 0B193AB71AC109A500EFFE17 /* SwiftSampleApp */, 0B35A0601ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension */, 0B35A06D1ACB10F30003CE85 /* SwiftSampleApp WatchKit App */, + 0B50E1CF1DDD429B00817DD8 /* VendorLibraries */, 0B193AFE1AC118FB00EFFE17 /* Frameworks */, 0B193ACD1AC109A500EFFE17 /* SwiftSampleAppTests */, 0B193AB61AC109A500EFFE17 /* Products */, @@ -173,8 +150,6 @@ children = ( 0B193AB51AC109A500EFFE17 /* SwiftSampleApp.app */, 0B193ACA1AC109A500EFFE17 /* SwiftSampleAppTests.xctest */, - 0B35A05F1ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension.appex */, - 0B35A0691ACB10F30003CE85 /* SwiftSampleApp WatchKit App.app */, ); name = Products; sourceTree = ""; @@ -222,6 +197,8 @@ 0B193AFE1AC118FB00EFFE17 /* Frameworks */ = { isa = PBXGroup; children = ( + 0B50E1D41DDD45D400817DD8 /* AVKit.framework */, + 0B50E1D21DDD45D000817DD8 /* JavaScriptCore.framework */, 0B193AFC1AC118F400EFFE17 /* libc++.dylib */, 0B193AFA1AC118E100EFFE17 /* libxml2.dylib */, 0B193AF81AC118D500EFFE17 /* CoreGraphics.framework */, @@ -233,7 +210,6 @@ 0B193AEC1AC1188B00EFFE17 /* AVFoundation.framework */, 0B193AEA1AC1187A00EFFE17 /* Security.framework */, 0B193AE81AC1186D00EFFE17 /* SystemConfiguration.framework */, - 0B193AE61AC1185800EFFE17 /* OoyalaSDK.framework */, 0B193AE21AC1184500EFFE17 /* MediaAccessibility.framework */, 0B193AE31AC1184500EFFE17 /* MediaPlayer.framework */, 0B193AE01AC1182D00EFFE17 /* CFNetwork.framework */, @@ -278,6 +254,14 @@ name = "Supporting Files"; sourceTree = ""; }; + 0B50E1CF1DDD429B00817DD8 /* VendorLibraries */ = { + isa = PBXGroup; + children = ( + 0B50E1D01DDD429B00817DD8 /* OoyalaSDK.framework */, + ); + path = VendorLibraries; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -293,7 +277,6 @@ buildRules = ( ); dependencies = ( - 0B35A0761ACB10F30003CE85 /* PBXTargetDependency */, ); name = SwiftSampleApp; productName = SwiftSampleApp; @@ -318,39 +301,6 @@ productReference = 0B193ACA1AC109A500EFFE17 /* SwiftSampleAppTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; - 0B35A05E1ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0B35A07D1ACB10F30003CE85 /* Build configuration list for PBXNativeTarget "SwiftSampleApp WatchKit Extension" */; - buildPhases = ( - 0B35A05B1ACB10F30003CE85 /* Sources */, - 0B35A05C1ACB10F30003CE85 /* Frameworks */, - 0B35A05D1ACB10F30003CE85 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 0B35A06C1ACB10F30003CE85 /* PBXTargetDependency */, - ); - name = "SwiftSampleApp WatchKit Extension"; - productName = "SwiftSampleApp WatchKit Extension"; - productReference = 0B35A05F1ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension.appex */; - productType = "com.apple.product-type.watchkit-extension"; - }; - 0B35A0681ACB10F30003CE85 /* SwiftSampleApp WatchKit App */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0B35A07C1ACB10F30003CE85 /* Build configuration list for PBXNativeTarget "SwiftSampleApp WatchKit App" */; - buildPhases = ( - 0B35A0671ACB10F30003CE85 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "SwiftSampleApp WatchKit App"; - productName = "SwiftSampleApp WatchKit App"; - productReference = 0B35A0691ACB10F30003CE85 /* SwiftSampleApp WatchKit App.app */; - productType = "com.apple.product-type.application.watchapp"; - }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -363,18 +313,14 @@ 0B193AB41AC109A500EFFE17 = { CreatedOnToolsVersion = 6.2; DevelopmentTeam = 556Y9XWD3N; + LastSwiftMigration = 0800; ProvisioningStyle = Manual; }; 0B193AC91AC109A500EFFE17 = { CreatedOnToolsVersion = 6.2; + LastSwiftMigration = 0800; TestTargetID = 0B193AB41AC109A500EFFE17; }; - 0B35A05E1ACB10F30003CE85 = { - CreatedOnToolsVersion = 6.2; - }; - 0B35A0681ACB10F30003CE85 = { - CreatedOnToolsVersion = 6.2; - }; }; }; buildConfigurationList = 0B193AB01AC109A500EFFE17 /* Build configuration list for PBXProject "SwiftSampleApp" */; @@ -392,8 +338,6 @@ targets = ( 0B193AB41AC109A500EFFE17 /* SwiftSampleApp */, 0B193AC91AC109A500EFFE17 /* SwiftSampleAppTests */, - 0B35A05E1ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension */, - 0B35A0681ACB10F30003CE85 /* SwiftSampleApp WatchKit App */, ); }; /* End PBXProject section */ @@ -416,24 +360,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 0B35A05D1ACB10F30003CE85 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0B35A06A1ACB10F30003CE85 /* SwiftSampleApp WatchKit App.app in Resources */, - 0B35A0661ACB10F30003CE85 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0B35A0671ACB10F30003CE85 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0B35A0721ACB10F30003CE85 /* Interface.storyboard in Resources */, - 0B35A0741ACB10F30003CE85 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -455,14 +381,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 0B35A05B1ACB10F30003CE85 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0B35A0641ACB10F30003CE85 /* InterfaceController.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -471,16 +389,6 @@ target = 0B193AB41AC109A500EFFE17 /* SwiftSampleApp */; targetProxy = 0B193ACB1AC109A500EFFE17 /* PBXContainerItemProxy */; }; - 0B35A06C1ACB10F30003CE85 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0B35A0681ACB10F30003CE85 /* SwiftSampleApp WatchKit App */; - targetProxy = 0B35A06B1ACB10F30003CE85 /* PBXContainerItemProxy */; - }; - 0B35A0761ACB10F30003CE85 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0B35A05E1ACB10F30003CE85 /* SwiftSampleApp WatchKit Extension */; - targetProxy = 0B35A0751ACB10F30003CE85 /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -599,6 +507,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", + "$(PROJECT_DIR)/VendorLibraries", ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -611,6 +520,7 @@ PROVISIONING_PROFILE = "b7258f32-8232-43b4-b873-7d7ebb144cd8"; PROVISIONING_PROFILE_SPECIFIER = "All Apps Anywhere"; SWIFT_OBJC_BRIDGING_HEADER = "$(PROJECT_DIR)/SwiftSampleApp/SwiftSampleApp-Bridging-Header.h"; + SWIFT_VERSION = 3.0; }; name = Debug; }; @@ -623,6 +533,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", + "$(PROJECT_DIR)/VendorLibraries", ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -635,6 +546,7 @@ PROVISIONING_PROFILE = "b7258f32-8232-43b4-b873-7d7ebb144cd8"; PROVISIONING_PROFILE_SPECIFIER = "All Apps Anywhere"; SWIFT_OBJC_BRIDGING_HEADER = "$(PROJECT_DIR)/SwiftSampleApp/SwiftSampleApp-Bridging-Header.h"; + SWIFT_VERSION = 3.0; }; name = Release; }; @@ -653,6 +565,7 @@ INFOPLIST_FILE = SwiftSampleAppTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftSampleApp.app/SwiftSampleApp"; }; name = Debug; @@ -668,64 +581,11 @@ INFOPLIST_FILE = SwiftSampleAppTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftSampleApp.app/SwiftSampleApp"; }; name = Release; }; - 0B35A0781ACB10F30003CE85 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "SwiftSampleApp WatchKit Extension/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - PRODUCT_NAME = "${TARGET_NAME}"; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - 0B35A0791ACB10F30003CE85 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - INFOPLIST_FILE = "SwiftSampleApp WatchKit Extension/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - PRODUCT_NAME = "${TARGET_NAME}"; - SKIP_INSTALL = YES; - }; - name = Release; - }; - 0B35A07A1ACB10F30003CE85 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - IBSC_MODULE = SwiftSampleApp_WatchKit_Extension; - INFOPLIST_FILE = "SwiftSampleApp WatchKit App/Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = 4; - "TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*]" = "1,4"; - }; - name = Debug; - }; - 0B35A07B1ACB10F30003CE85 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - IBSC_MODULE = SwiftSampleApp_WatchKit_Extension; - INFOPLIST_FILE = "SwiftSampleApp WatchKit App/Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = 4; - "TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*]" = "1,4"; - }; - name = Release; - }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -756,24 +616,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 0B35A07C1ACB10F30003CE85 /* Build configuration list for PBXNativeTarget "SwiftSampleApp WatchKit App" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0B35A07A1ACB10F30003CE85 /* Debug */, - 0B35A07B1ACB10F30003CE85 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0B35A07D1ACB10F30003CE85 /* Build configuration list for PBXNativeTarget "SwiftSampleApp WatchKit Extension" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0B35A0781ACB10F30003CE85 /* Debug */, - 0B35A0791ACB10F30003CE85 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; /* End XCConfigurationList section */ }; rootObject = 0B193AAD1AC109A500EFFE17 /* Project object */; diff --git a/PlaybackLab/SwiftSampleApp/SwiftSampleApp.xcodeproj/project.xcworkspace/xcshareddata/SwiftSampleApp.xcscmblueprint b/PlaybackLab/SwiftSampleApp/SwiftSampleApp.xcodeproj/project.xcworkspace/xcshareddata/SwiftSampleApp.xcscmblueprint new file mode 100644 index 000000000..2a890779f --- /dev/null +++ b/PlaybackLab/SwiftSampleApp/SwiftSampleApp.xcodeproj/project.xcworkspace/xcshareddata/SwiftSampleApp.xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "56259557E7CDC2A1C6794E8BF2EBA8C6812FA57A", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "7C44C29CBB3CFFFAC1C439A59BC8B6D686640374" : 9223372036854775807, + "56259557E7CDC2A1C6794E8BF2EBA8C6812FA57A" : 9223372036854775807 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "FEA52C66-7B0E-47EA-929E-2CF992C1B388", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "7C44C29CBB3CFFFAC1C439A59BC8B6D686640374" : "", + "56259557E7CDC2A1C6794E8BF2EBA8C6812FA57A" : "ios-sample-apps\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "SwiftSampleApp", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "PlaybackLab\/SwiftSampleApp\/SwiftSampleApp.xcodeproj", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:ooyala\/ios-sample-apps.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "56259557E7CDC2A1C6794E8BF2EBA8C6812FA57A" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "ssh:\/\/git.corp.ooyala.com:7999\/pba\/ios-complete.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "7C44C29CBB3CFFFAC1C439A59BC8B6D686640374" + } + ] +} \ No newline at end of file diff --git a/PlaybackLab/SwiftSampleApp/SwiftSampleApp/AppDelegate.swift b/PlaybackLab/SwiftSampleApp/SwiftSampleApp/AppDelegate.swift index d7e3f1a9c..cbf181cb4 100644 --- a/PlaybackLab/SwiftSampleApp/SwiftSampleApp/AppDelegate.swift +++ b/PlaybackLab/SwiftSampleApp/SwiftSampleApp/AppDelegate.swift @@ -14,39 +14,39 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } - func applicationWillResignActive(application: UIApplication) { + func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } - func applicationDidEnterBackground(application: UIApplication) { + func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - func applicationWillEnterForeground(application: UIApplication) { + func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } - func applicationDidBecomeActive(application: UIApplication) { + func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } - func applicationWillTerminate(application: UIApplication) { + func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } - func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: (([NSObject : AnyObject]!) -> Void)!) { + func application(_ application: UIApplication, handleWatchKitExtensionRequest userInfo: [AnyHashable: Any]?, reply: (([AnyHashable: Any]?) -> Void)!) { let info = userInfo as NSDictionary? - var action:NSString = info!.objectForKey("action") as! NSString - var vc: ViewController = (self.window?.rootViewController as! UINavigationController).visibleViewController as! ViewController + let action:NSString = info!.object(forKey: "action") as! NSString + let vc: ViewController = (self.window?.rootViewController as! UINavigationController).visibleViewController as! ViewController - if vc.isKindOfClass(ViewController) { + if vc.isKind(of: ViewController.self) { if action == "play" { vc.play() reply(["action play executed":"YES"]) @@ -54,7 +54,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { vc.pause() reply(["action pause executed":"YES"]); }else { - var playhead = vc.getPlayhead() + let playhead = vc.getPlayhead() reply(["playheadTime":playhead]); } }else { diff --git a/PlaybackLab/SwiftSampleApp/SwiftSampleApp/ViewController.swift b/PlaybackLab/SwiftSampleApp/SwiftSampleApp/ViewController.swift index af20041cb..8748c58b6 100644 --- a/PlaybackLab/SwiftSampleApp/SwiftSampleApp/ViewController.swift +++ b/PlaybackLab/SwiftSampleApp/SwiftSampleApp/ViewController.swift @@ -10,20 +10,20 @@ import UIKit class ViewController: UIViewController { required init(coder aDecoder: NSCoder) { - formatter = NSDateFormatter() + formatter = DateFormatter() ooyalaPlayerViewController = OOOoyalaPlayerViewController() - super.init(coder: aDecoder) + super.init(coder: aDecoder)! } @IBOutlet weak var playerView: UIView! @IBOutlet var textView: UITextView! let EMBED_CODE = "Y1ZHB1ZDqfhCPjYYRbCEOz0GR8IsVRm1" - let PCODE = "Z5Mm06XeZlcDlfU_1R9v_L2KwYG6" + let PCODE = "c0cTkxOqALQviQIGAHWY5hP0q9gU" let PLAYERDOMAIN = "http://www.ooyala.com" - var formatter: NSDateFormatter + var formatter: DateFormatter var ooyalaPlayerViewController: OOOoyalaPlayerViewController override func viewDidLoad() { @@ -32,7 +32,7 @@ class ViewController: UIViewController { // Create Ooyala ViewController var player: OOOoyalaPlayer = OOOoyalaPlayer(pcode: PCODE, domain: OOPlayerDomain(string: PLAYERDOMAIN)) ooyalaPlayerViewController = OOOoyalaPlayerViewController(player: player) - + // Attach it to current view self.addChildViewController(ooyalaPlayerViewController) ooyalaPlayerViewController.view.frame = playerView.bounds @@ -44,60 +44,45 @@ class ViewController: UIViewController { textView.text = "LOG:" // Hide Keyboard by setting the size of keyboard to (0, 0) - var keyboardView = UIView(frame: CGRectMake(0, 0, 0, 0)) + var keyboardView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 0)) textView.inputView = keyboardView // Setup time format - let zone = NSTimeZone.localTimeZone() + let zone = TimeZone.autoupdatingCurrent formatter.timeZone = zone formatter.dateFormat = "\nyyyy-MM-dd HH:mm:ss \n" // Load the video ooyalaPlayerViewController.player.setEmbedCode(EMBED_CODE) - NSNotificationCenter.defaultCenter().addObserver(self, selector: "notificationHandler:", name: nil, object: ooyalaPlayerViewController.player) + NotificationCenter.default.addObserver(self, selector: "notificationHandler:", name: nil, object: ooyalaPlayerViewController.player) } - func onPlayerError(notification: NSNotification){ + func onPlayerError(_ notification: Notification){ NSLog("Error: %@", ooyalaPlayerViewController.player.error) } - func notificationHandler(notification: NSNotification) { + func notificationHandler(_ notification: Notification) { var name = notification.name - if name == OOOoyalaPlayerTimeChangedNotification { + if name == NSNotification.Name.OOOoyalaPlayerTimeChanged { return } - - var timer = NSDate() - var timeStamp = formatter.stringFromDate(timer) - timeStamp = timeStamp.substringToIndex(advance(timeStamp.endIndex, -2)) - - if name == OOOoyalaPlayerErrorNotification { - var error = ooyalaPlayerViewController.player.view.description - textView.insertText(timeStamp + ", Error: ," + error) - } else if name == OOOoyalaPlayerStateChangedNotification { - var state = ooyalaPlayerViewController.player.state() - var currentState = OOOoyalaPlayer.playerStateToString(state) - textView.insertText(timeStamp + ", State: ," + currentState) - } else { - textView.insertText(timeStamp + ", ," + name) - } - textView.insertText("\n") - textView.scrollRangeToVisible(NSMakeRange(count(textView.text), 0)) + + NSLog("Notification Received: %@", name.rawValue) } - override func viewWillAppear(animated: Bool) { + override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) } - override func viewDidAppear(animated: Bool) { + override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) } - override func viewWillDisappear(animated: Bool) { + override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) } - override func viewDidDisappear(animated: Bool) { + override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) } diff --git a/PlaybackLab/SwiftSampleApp/SwiftSampleAppTests/SwiftSampleAppTests.swift b/PlaybackLab/SwiftSampleApp/SwiftSampleAppTests/SwiftSampleAppTests.swift index 5e76eee3f..c5cc1a24b 100644 --- a/PlaybackLab/SwiftSampleApp/SwiftSampleAppTests/SwiftSampleAppTests.swift +++ b/PlaybackLab/SwiftSampleApp/SwiftSampleAppTests/SwiftSampleAppTests.swift @@ -28,7 +28,7 @@ class SwiftSampleAppTests: XCTestCase { func testPerformanceExample() { // This is an example of a performance test case. - self.measureBlock() { + self.measure() { // Put the code you want to measure the time of here. } } diff --git a/PlaybackLab/SwiftSampleApp/VendorLibraries/OoyalaSDK.framework b/PlaybackLab/SwiftSampleApp/VendorLibraries/OoyalaSDK.framework new file mode 120000 index 000000000..d744956bc --- /dev/null +++ b/PlaybackLab/SwiftSampleApp/VendorLibraries/OoyalaSDK.framework @@ -0,0 +1 @@ +../../../vendor/Ooyala/OoyalaSDK-iOS/OoyalaSDK.framework \ No newline at end of file