Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions ios/RNTritonPlayer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
D354122022065F73007B20F2 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D354121F22065F73007B20F2 /* AVFoundation.framework */; };
D354122222065F7E007B20F2 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D354122122065F7E007B20F2 /* MediaPlayer.framework */; };
D354122422065F86007B20F2 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D354122322065F86007B20F2 /* CoreMedia.framework */; };
D354137E2207656C007B20F2 /* TritonPlayerSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D354137D2207656B007B20F2 /* TritonPlayerSDK.a */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -154,23 +153,6 @@
D354122322065F86007B20F2 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
D354122522066155007B20F2 /* TritonPlayerSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = TritonPlayerSDK.framework; path = "../../../Downloads/triton-ios-sdk-2.5.1.138/TritonPlayerSDK.framework"; sourceTree = "<group>"; };
D35412292206638B007B20F2 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; };
D354136D22076559007B20F2 /* TDAnalyticsTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDAnalyticsTracker.h; sourceTree = "<group>"; };
D354136E22076559007B20F2 /* TDAdLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDAdLoader.h; sourceTree = "<group>"; };
D354136F22076559007B20F2 /* TritonPlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TritonPlayer.h; sourceTree = "<group>"; };
D354137022076559007B20F2 /* TDInterstitialAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDInterstitialAd.h; sourceTree = "<group>"; };
D354137122076559007B20F2 /* TDInterstitialAdDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDInterstitialAdDelegate.h; sourceTree = "<group>"; };
D354137222076559007B20F2 /* TDCompanionBanner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDCompanionBanner.h; sourceTree = "<group>"; };
D354137322076559007B20F2 /* TDSBMPlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDSBMPlayer.h; sourceTree = "<group>"; };
D354137422076559007B20F2 /* TDSyncBannerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDSyncBannerView.h; sourceTree = "<group>"; };
D354137522076559007B20F2 /* TDBannerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDBannerView.h; sourceTree = "<group>"; };
D354137622076559007B20F2 /* CuePointEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CuePointEvent.h; sourceTree = "<group>"; };
D35413772207655A007B20F2 /* TDBannerViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDBannerViewDelegate.h; sourceTree = "<group>"; };
D35413782207655A007B20F2 /* TDAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDAd.h; sourceTree = "<group>"; };
D35413792207655A007B20F2 /* TritonPlayerSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TritonPlayerSDK.h; sourceTree = "<group>"; };
D354137A2207655A007B20F2 /* TDAdRequestURLBuilder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDAdRequestURLBuilder.h; sourceTree = "<group>"; };
D354137B2207655A007B20F2 /* TDAuthUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDAuthUtils.h; sourceTree = "<group>"; };
D354137C2207655A007B20F2 /* TDCuePointHistory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDCuePointHistory.h; sourceTree = "<group>"; };
D354137D2207656B007B20F2 /* TritonPlayerSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = TritonPlayerSDK.a; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -180,7 +162,6 @@
files = (
D354122422065F86007B20F2 /* CoreMedia.framework in Frameworks */,
D354122222065F7E007B20F2 /* MediaPlayer.framework in Frameworks */,
D354137E2207656C007B20F2 /* TritonPlayerSDK.a in Frameworks */,
D354122022065F73007B20F2 /* AVFoundation.framework in Frameworks */,
D354121E22065F6B007B20F2 /* AdSupport.framework in Frameworks */,
D354121C22065F62007B20F2 /* SystemConfiguration.framework in Frameworks */,
Expand All @@ -201,7 +182,6 @@
58B511D21A9E6C8500147676 = {
isa = PBXGroup;
children = (
D354136C22076538007B20F2 /* TritonPlayerSDK */,
B3E7B5881CC2AC0600A0062D /* RNTritonPlayer.h */,
B3E7B5891CC2AC0600A0062D /* RNTritonPlayer.m */,
134814211AA4EA7D00B7C361 /* Products */,
Expand Down Expand Up @@ -246,30 +226,6 @@
name = Products;
sourceTree = "<group>";
};
D354136C22076538007B20F2 /* TritonPlayerSDK */ = {
isa = PBXGroup;
children = (
D354137D2207656B007B20F2 /* TritonPlayerSDK.a */,
D354137622076559007B20F2 /* CuePointEvent.h */,
D35413782207655A007B20F2 /* TDAd.h */,
D354136E22076559007B20F2 /* TDAdLoader.h */,
D354137A2207655A007B20F2 /* TDAdRequestURLBuilder.h */,
D354136D22076559007B20F2 /* TDAnalyticsTracker.h */,
D354137B2207655A007B20F2 /* TDAuthUtils.h */,
D354137522076559007B20F2 /* TDBannerView.h */,
D35413772207655A007B20F2 /* TDBannerViewDelegate.h */,
D354137222076559007B20F2 /* TDCompanionBanner.h */,
D354137C2207655A007B20F2 /* TDCuePointHistory.h */,
D354137022076559007B20F2 /* TDInterstitialAd.h */,
D354137122076559007B20F2 /* TDInterstitialAdDelegate.h */,
D354137322076559007B20F2 /* TDSBMPlayer.h */,
D354137422076559007B20F2 /* TDSyncBannerView.h */,
D354136F22076559007B20F2 /* TritonPlayer.h */,
D35413792207655A007B20F2 /* TritonPlayerSDK.h */,
);
path = TritonPlayerSDK;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down
33 changes: 33 additions & 0 deletions ios/TritonPlayerSDK.framework/Headers/TritonPlayerSDK.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// TritonPlayerSDK.h
// TritonPlayer
//
// Copyright 2014 Triton Digital. All rights reserved.
//

#ifndef TritonPlayerSDK_TritonPlayerSDK_h
#define TritonPlayerSDK_TritonPlayerSDK_h

#import <TritonPlayerSDK/TritonPlayer.h>
#import <TritonPlayerSDK/CuePointEvent.h>

#import <TritonPlayerSDK/TDBannerView.h>
#import <TritonPlayerSDK/TDSyncBannerView.h>
#import <TritonPlayerSDK/TDAdLoader.h>
#import <TritonPlayerSDK/TDAd.h>
#import <TritonPlayerSDK/TDCompanionBanner.h>
#import <TritonPlayerSDK/TDBannerViewDelegate.h>
#import <TritonPlayerSDK/TDAdRequestURLBuilder.h>
#import <TritonPlayerSDK/TDInterstitialAd.h>
#import <TritonPlayerSDK/TDInterstitialAdDelegate.h>
#import <TritonPlayerSDK/TDSBMPlayer.h>
#import <TritonPlayerSDK/TDCuePointHistory.h>
#import <TritonPlayerSDK/TDAuthUtils.h>

#import <TritonPlayerSDK/TDAnalyticsTracker.h>

#endif

/** This is the library header. Import this file to import all of the public types in Triton Player Framework.

*/
Binary file added ios/TritonPlayerSDK.framework/TritonPlayerSDK
Binary file not shown.
135 changes: 135 additions & 0 deletions ios/TritonPlayerSDK.framework/Versions/A/Headers/CuePointEvent.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
//
// CuePointEvent.h
// TritonPlayer
//
// Copyright 2014 Triton Digital. All rights reserved.
//

#import <Foundation/Foundation.h>

// STR_CUE_TYPE values
extern NSString *const EventTypeAd;
extern NSString *const EventTypeAudio;
extern NSString *const EventTypeCustom;
extern NSString *const EventTypeProfanity;
extern NSString *const EventTypeRecording;
extern NSString *const EventTypeSidekick;
extern NSString *const EventTypeSpeech;
extern NSString *const EventTypeSweeper;
extern NSString *const EventTypeTrack;
extern NSString *const EventTypeUnknown;

// --------------------------------------------------------------------------------------------
// Common
// --------------------------------------------------------------------------------------------
extern NSString *const CommonCueDisplayKey;
extern NSString *const CommonCueTimeDurationKey;
extern NSString *const CommonCueTimeStartKey;
extern NSString *const CommonCueTitleKey;
extern NSString *const CommonCueTypeKey;

extern NSString *const CommonProgramTimeDurationKey;
extern NSString *const CommonProgramTimeStartKey;
extern NSString *const CommonProgramGuestNIdKey;
extern NSString *const CommonProgramGuestNNameKey;
extern NSString *const CommonProgramHostNIdKey;
extern NSString *const CommonProgramHostNNameKey;
extern NSString *const CommonProgramIdKey;
extern NSString *const CommonProgramTitleKey;
extern NSString *const CommonProgramGuestNHomepageKey;
extern NSString *const CommonProgramGuestNPictureURLKey;
extern NSString *const CommonProgramHomepageKey;
extern NSString *const CommonProgramHostNHomepage;
extern NSString *const CommonProgramHostPictureURLKey;
extern NSString *const CommonProgramImageKey;

// --------------------------------------------------------------------------------------------
// Ad
// --------------------------------------------------------------------------------------------
extern NSString *const AdReplaceKey;
extern NSString *const AdIdKey;
extern NSString *const AdTypeKey;
extern NSString *const AdVastKey;
extern NSString *const AdVastURLKey;
extern NSString *const AdURLKey;
extern NSString *const AdURL1Key;
extern NSString *const AdURL2Key;
extern NSString *const AdURL3Key;
extern NSString *const AdURL4Key;

// --------------------------------------------------------------------------------------------
// Sweeper
// --------------------------------------------------------------------------------------------
extern NSString *const SweeperIdKey;
extern NSString *const SweeperTypeKey;


// --------------------------------------------------------------------------------------------
// Track
// --------------------------------------------------------------------------------------------
extern NSString *const TrackGenreKey;
extern NSString *const TrackAlbumNameKey;
extern NSString *const TrackAlbumPublisherKey;
extern NSString *const TrackAlbumYearKey;
extern NSString *const TrackArtistNameKey;
extern NSString *const TrackFormatKey;
extern NSString *const TrackIdKey;
extern NSString *const TrackIsrcKey;
extern NSString *const TrackCoverURLKey;
extern NSString *const TrackNowPlayingURLKey;
extern NSString *const TrackProductURLKey;

// --------------------------------------------------------------------------------------------
// Deprecated
// --------------------------------------------------------------------------------------------
extern NSString *const LegacyTypeKey;
extern NSString *const LegacyAdImageURLKey;
extern NSString *const LegacyBuyURLKey;

@class CuePointEventController;

/**
* CuePointEvent stores all the information about cue points received from the server (ads, track information etc.).
* For more details, see *STWCue_Metadata_Dictionary.pdf*
*/
@interface CuePointEvent : NSObject

/// @name Cue Point Properties

/// Timestamp The *timestamp* in which the cuepoint event should be executed.
@property (readonly, nonatomic) NSTimeInterval timestamp;

/// Contains all cue point data, which can be accessed by the constants declare in CuePointEvent.h.
@property (readonly, strong) NSDictionary *data;

/// The type of the cue point. Refer to *STWCue_Metadata_Dictionary.pdf* for available types. The constants for each available type is defined in CuePointEvent.h.
@property (readonly, strong) NSString *type;

/// Tells whether the execution of the cue point was canceled.
@property (readonly, assign) BOOL executionCanceled;

/// @name Creating a CuePointEvent

/**
* Initializes a CuePoitEvent object. This is the designated initializer.
*
* @param inAMFData Dictionary containing *data* in AMF format.
* @param inTimestamp The *timestamp* in which the cuepoint event should be executed.
*
* @return The newly-initialized CuePointEvent object
*/

-(instancetype)initEventWithAMFObjectData:(NSDictionary *)inAMFData andTimestamp:(NSTimeInterval)inTimestamp;

/**
* Initializes a CuePoitEvent object.
*
* @param data Dictionary containing *data* in AMF format.
* @param timestamp The *timestamp* in which the cuepoint event should be executed.
*
* @return The newly-initialized CuePointEvent object
*/

-(instancetype)initWithData:(NSDictionary *)data andTimestamp:(NSTimeInterval)timestamp;

@end
77 changes: 77 additions & 0 deletions ios/TritonPlayerSDK.framework/Versions/A/Headers/TDAd.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
//
// TDAd.h
// TritonPlayerSDK
//
// Copyright (c) 2014 Triton Digital. All rights reserved.
//

#import <Foundation/Foundation.h>

@class TDCompanionBanner;

/**
* TDAd represents a Triton ad in the SDK. It contains information about all supported ads (in-stream/on-demand, audio/banner/video).
*
* Usually TDAd is used as an output of TDAdLoader and as input of TDBannerView and TDInterstitialAd and its details don't need to be known. However,
* when the application is rendering the ads by itself, it must inspect its attributes and methods.
*/

@interface TDAd : NSObject

/// @name General properties

/// The urls that need to be called for generating an ad impression
@property (nonatomic, strong) NSArray *mediaImpressionURLs;

/// The type of the linear media as a MIME-type (usually audio or video)
@property (nonatomic, strong) NSString *mediaMIMEType;


/// The format of the ad. VAST or DAAST
@property (nonatomic, strong) NSString *format;


/// The url of the linear media
@property (nonatomic, strong) NSURL *mediaURL;

/// @name Banner ads

/// An array of TDCompanionBanner objects for each banner available in the ad
@property (nonatomic, strong) NSArray *companionBanners;

/// @name Video interstitials

/// The width of the video
@property (nonatomic, assign) NSInteger videoWidth;

/// The height of the video
@property (nonatomic, assign) NSInteger videoHeight;

/// The url that the app must be redirected when the user clicks in a video ad
@property (nonatomic, strong) NSURL *videoClickThroughURL;

/// The list of urls that must be called to track the user clicking in a video ad
@property (nonatomic, strong) NSArray *clickTrackingURLs;

/// @name Helper methods

/**
* Returns the companion banner in the receiver's companion banners list that approximates most the desired width and height.
*
* @param width the desired width of the banner
* @param height the desired height of the banner
* @return A TDCompanionBanner that is the best match for the desired width and height.
*/

-(TDCompanionBanner*)bestCompanionBannerForWidth:(NSInteger)width andHeight:(NSInteger)height;

/**
* Tracks asynchronously all the media impressions URL for the ad. Useful when you are rendering your ads with custom UI.
*/
-(void)trackMediaImpressions;

/**
* Tracks asynchronously all the video click URLs for the ad. Useful when you are rendering your ads with custom UI.
*/
-(void)trackVideoClick;
@end
67 changes: 67 additions & 0 deletions ios/TritonPlayerSDK.framework/Versions/A/Headers/TDAdLoader.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
//
// TDAdLoader.h
// TritonPlayerSDK
//
// Copyright (c) 2015 Triton Digital. All rights reserved.
//

#import <Foundation/Foundation.h>

/// Represents Triton Mobile SDk generated error codes
extern NSString *const TDErrorDomain;

/// The error codes that can be returned when using ad functionality.
typedef NS_ENUM(NSInteger, TDAdErrorCode) {
/// A network error occurred while requesting the ad
TDErrorCodeInvalidRequest = 101,

/// The width and height of the ad was not specified
TDErrorCodeUndefinedSize = 102,

/// There's no ad to be displayed for the request
TDErrorCodeNoInventory = 103,

/// The ad request or media url is malformed
TDErrorCodeInvalidAdURL = 104,

/// Unable to parse the response
TDErrorCodeResponseParsingFailed = 105
};

@class TDAd;
@class TDAdRequestURLBuilder;

/**
* TDAdLoader loads a Triton ad from an ad request.
*
* The ad returned is represented by a TDAd object and contains all the information needed to display and manage an ad. The ad returned can be
* presented using custom application UI or it can be passed directly to TDBannerView or TDInterstitialAd for display.
*
*/

@interface TDAdLoader : NSObject

/// @name Creating a TDAdLoader

/**
* Loads an ad asynchronously from a request string. The string can be built manually by following Triton Digital On-Demand advertising guide or
* by the help of TDAdRequestURLBuilder class (recommended).
*
* @param request A NSString containing the request with the targeting parameters.
* @param completionHandler a block that will execute when the request is finished, with the ad loaded or an error object.
*/

- (void)loadAdWithStringRequest:(NSString*)request
completionHandler:(void (^) (TDAd *loadedAd, NSError *error))completionHandler;

/**
* Loads an ad asynchronously directly from a TDAdRequestURLBuilder.
*
* @param builder A TDAdRequestURLBuilder containing the request with the targeting parameters.
* @param completionHandler a block that will execute when the request is finished, with the ad loaded or an error object.
*/

- (void)loadAdWithBuilder:(TDAdRequestURLBuilder*)builder
completionHandler:(void (^) (TDAd *loadedAd, NSError *error))completionHandler;

@end
Loading