8 #define FW_EXTERN extern "C" 9 #define FW_PRIVATE_EXTERN __attribute__((visibility("hidden"))) 11 #define FW_EXTERN extern 12 #define FW_PRIVATE_EXTERN __attribute__((visibility("hidden"))) 15 #define FW_LINK_RENDERER(r) \ 17 @interface r : NSObject { \ 20 extern void FWAdManager_Force_Link_##r (void) __attribute__ ((constructor)); \ 21 void FWAdManager_Force_Link_##r (void) { \ 23 NSLog(@"AdManager: registering renderer class: %@", [r description]); \ 30 FW_LOG_LEVEL_QUIET = 0,
31 FW_LOG_LEVEL_INFO = 3,
32 FW_LOG_LEVEL_VERBOSE = 5
40 FW_SLOT_OPTION_INITIAL_AD_STAND_ALONE = 0,
42 FW_SLOT_OPTION_INITIAL_AD_KEEP_ORIGINAL = 1,
44 FW_SLOT_OPTION_INITIAL_AD_FIRST_COMPANION_ONLY = 2,
46 FW_SLOT_OPTION_INITIAL_AD_FIRST_COMPANION_OR_STAND_ALONE = 3,
48 FW_SLOT_OPTION_INITIAL_AD_FIRST_COMPANION_THEN_STAND_ALONE = 4,
50 FW_SLOT_OPTION_INITIAL_AD_FIRST_COMPANION_OR_NO_STAND_ALONE = 5,
52 FW_SLOT_OPTION_INITIAL_AD_NO_STAND_ALONE = 6,
54 FW_SLOT_OPTION_INITIAL_AD_NO_STAND_ALONE_IF_TEMPORAL = 7,
56 FW_SLOT_OPTION_INITIAL_AD_FIRST_COMPANION_OR_NO_STAND_ALONE_IF_TEMPORAL = 8
64 FW_CAPABILITY_STATUS_OFF = 0,
66 FW_CAPABILITY_STATUS_ON = 1,
68 FW_CAPABILITY_STATUS_DEFAULT = -1
76 FW_ID_TYPE_CUSTOM = 0,
80 FW_ID_TYPE_FWGROUP = 2
88 FW_VIDEO_STATE_PLAYING = 1,
90 FW_VIDEO_STATE_PAUSED = 2,
92 FW_VIDEO_STATE_STOPPED = 3,
94 FW_VIDEO_STATE_COMPLETED = 4
102 FW_TIME_POSITION_CLASS_PREROLL = 1,
104 FW_TIME_POSITION_CLASS_MIDROLL = 2,
106 FW_TIME_POSITION_CLASS_POSTROLL = 3,
108 FW_TIME_POSITION_CLASS_OVERLAY = 4,
110 FW_TIME_POSITION_CLASS_DISPLAY = 5,
112 FW_TIME_POSITION_CLASS_PAUSE_MIDROLL = 6
113 } FWTimePositionClass;
120 FW_SLOT_TYPE_TEMPORAL = 1,
122 FW_SLOT_TYPE_VIDEOPLAYER_NONTEMPORAL = 2,
124 FW_SLOT_TYPE_SITESECTION_NONTEMPORAL = 3
132 FW_PARAMETER_LEVEL_PROFILE = 0,
134 FW_PARAMETER_LEVEL_GLOBAL = 1,
136 FW_PARAMETER_LEVEL_SLOT = 2,
138 FW_PARAMETER_LEVEL_CREATIVE = 3,
140 FW_PARAMETER_LEVEL_RENDITION = 4,
142 FW_PARAMETER_LEVEL_OVERRIDE = 5
150 FW_RENDERER_STATE_PRELOADED = 2,
152 FW_RENDERER_STATE_STARTED = 3,
154 FW_RENDERER_STATE_COMPLETED = 5,
156 FW_RENDERER_STATE_FAILED = 6
157 } FWRendererStateType;
164 FW_REQUEST_MODE_ON_DEMAND = 1,
166 FW_REQUEST_MODE_LIVE = 2
174 FW_VIDEO_ASSET_DURATION_TYPE_EXACT = 1,
176 FW_VIDEO_ASSET_DURATION_TYPE_VARIABLE = 2
177 } FWVideoAssetDurationType;
184 FW_VIDEO_ASSET_AUTO_PLAY_TYPE_NONE = 0,
186 FW_VIDEO_ASSET_AUTO_PLAY_TYPE_ATTENDED = 1,
188 FW_VIDEO_ASSET_AUTO_PLAY_TYPE_UNATTENDED = 2
189 } FWVideoAssetAutoPlayType;
196 FW_USER_ACTION_PAUSE_BUTTON_CLICKED = 0,
198 FW_USER_ACTION_RESUME_BUTTON_CLICKED = 1
206 FW_EXTERN NSString *
const FW_NOTIFICATION_REQUEST_COMPLETE;
213 FW_EXTERN NSString *
const FW_NOTIFICATION_SLOT_PRELOADED;
220 FW_EXTERN NSString *
const FW_NOTIFICATION_SLOT_STARTED;
227 FW_EXTERN NSString *
const FW_NOTIFICATION_SLOT_ENDED;
234 FW_EXTERN NSString *
const FW_NOTIFICATION_IN_APP_VIEW_OPEN;
241 FW_EXTERN NSString *
const FW_NOTIFICATION_IN_APP_VIEW_CLOSE;
248 FW_EXTERN NSString *
const FW_NOTIFICATION_IN_APP_VIEW_WILL_OPEN_MEDIA_DOCUMENT;
256 FW_EXTERN NSString *
const FW_NOTIFICATION_CONTENT_PAUSE_REQUEST;
264 FW_EXTERN NSString *
const FW_NOTIFICATION_CONTENT_RESUME_REQUEST;
269 FW_EXTERN NSString *
const FW_NOTIFICATION_AD_IMPRESSION;
274 FW_EXTERN NSString *
const FW_NOTIFICATION_AD_IMPRESSION_END;
279 FW_EXTERN NSString *
const FW_NOTIFICATION_AD_ERROR;
282 FW_EXTERN NSString *
const FW_NOTIFICATION_USER_ACTION_NOTIFIED;
287 FW_EXTERN NSString *
const FW_NOTIFICATION_AD_EXPAND_TO_FULLSCREEN;
292 FW_EXTERN NSString *
const FW_NOTIFICATION_AD_COLLAPSE_FROM_FULLSCREEN;
297 FW_EXTERN NSString *
const FW_NOTIFICATION_SLOT_EXTERNAL_PLAYBACK_STARTED;
302 FW_EXTERN NSString *
const FW_NOTIFICATION_SLOT_EXTERNAL_PLAYBACK_STOPPED;
310 FW_EXTERN NSString *
const FW_NOTIFICATION_RENDERER_EVENT;
317 FW_EXTERN NSString *
const FW_NOTIFICATION_VIDEO_DISPLAY_BASE_CHANGED;
323 FW_EXTERN NSString *
const FW_NOTIFICATION_VIDEO_DISPLAY_BASE_FRAME_CHANGED;
329 FW_EXTERN NSString *
const FW_NOTIFICATION_EXTENSION_LOADED;
335 FW_EXTERN NSString *
const FW_NOTIFICATION_EXTERNALPLAYBACK_INTERRUPTED;
348 FW_EXTERN NSString *
const FW_ADUNIT_PREROLL;
361 FW_EXTERN NSString *
const FW_ADUNIT_MIDROLL;
374 FW_EXTERN NSString *
const FW_ADUNIT_POSTROLL;
387 FW_EXTERN NSString *
const FW_ADUNIT_OVERLAY;
401 FW_EXTERN NSString *
const FW_ADUNIT_PAUSE_MIDROLL;
414 FW_EXTERN NSString *
const FW_ADUNIT_STREAM_PREROLL;
427 FW_EXTERN NSString *
const FW_ADUNIT_STREAM_POSTROLL;
435 FW_EXTERN NSString *
const FW_CAPABILITY_SLOT_TEMPLATE;
443 FW_EXTERN NSString *
const FW_CAPABILITY_ADUNIT_IN_MULTIPLE_SLOTS;
451 FW_EXTERN NSString *
const FW_CAPABILITY_BYPASS_COMMERCIAL_RATIO_RESTRICTION;
459 FW_EXTERN NSString *
const FW_CAPABILITY_CHECK_COMPANION;
467 FW_EXTERN NSString *
const FW_CAPABILITY_CHECK_TARGETING;
472 FW_EXTERN NSString *
const FW_CAPABILITY_REQUIRES_VIDEO_CALLBACK_URL;
477 FW_EXTERN NSString *
const FW_CAPABILITY_SLOT_CALLBACK;
482 FW_EXTERN NSString *
const FW_CAPABILITY_SKIP_AD_SELECTION;
490 FW_EXTERN NSString *
const FW_CAPABILITY_RECORD_VIDEO_VIEW;
498 FW_EXTERN NSString *
const FW_CAPABILITY_SYNC_MULTI_REQUESTS;
510 FW_EXTERN NSString *
const FW_CAPABILITY_RESET_EXCLUSIVITY;
518 FW_EXTERN NSString *
const FW_CAPABILITY_FALLBACK_ADS;
526 FW_EXTERN NSString *
const FW_CAPABILITY_MULTIPLE_CREATIVE_RENDITIONS;
531 FW_EXTERN NSString *
const FW_EVENT_SLOT_IMPRESSION;
536 FW_EXTERN NSString *
const FW_EVENT_SLOT_IMPRESSION_END;
541 FW_EXTERN NSString *
const FW_EVENT_AD_IMPRESSION;
546 FW_EXTERN NSString *
const FW_EVENT_AD_IMPRESSION_END;
551 FW_EXTERN NSString *
const FW_EVENT_AD_QUARTILE;
556 FW_EXTERN NSString *
const FW_EVENT_AD_FIRST_QUARTILE;
561 FW_EXTERN NSString *
const FW_EVENT_AD_MIDPOINT;
566 FW_EXTERN NSString *
const FW_EVENT_AD_THIRD_QUARTILE;
571 FW_EXTERN NSString *
const FW_EVENT_AD_COMPLETE;
576 FW_EXTERN NSString *
const FW_EVENT_AD_CLICK;
581 FW_EXTERN NSString *
const FW_EVENT_AD_MUTE;
586 FW_EXTERN NSString *
const FW_EVENT_AD_UNMUTE;
591 FW_EXTERN NSString *
const FW_EVENT_AD_COLLAPSE;
596 FW_EXTERN NSString *
const FW_EVENT_AD_EXPAND;
601 FW_EXTERN NSString *
const FW_EVENT_AD_PAUSE;
606 FW_EXTERN NSString *
const FW_EVENT_AD_RESUME;
611 FW_EXTERN NSString *
const FW_EVENT_AD_REWIND;
616 FW_EXTERN NSString *
const FW_EVENT_AD_ACCEPT_INVITATION;
621 FW_EXTERN NSString *
const FW_EVENT_AD_CLOSE;
626 FW_EXTERN NSString *
const FW_EVENT_AD_MINIMIZE;
631 FW_EXTERN NSString *
const FW_EVENT_AD_RESELLER_NO_AD;
636 FW_EXTERN NSString *
const FW_EVENT_AD_ERROR;
641 FW_EXTERN NSString *
const FW_EVENT_AD_MEASUREMENT;
646 FW_EXTERN NSString *
const FW_EVENT_ERROR;
651 FW_EXTERN NSString *
const FW_EVENT_RESELLER_NO_AD;
656 FW_EXTERN NSString *
const FW_EVENT_TYPE_CLICK_TRACKING;
661 FW_EXTERN NSString *
const FW_EVENT_TYPE_IMPRESSION;
666 FW_EXTERN NSString *
const FW_EVENT_TYPE_CLICK;
671 FW_EXTERN NSString *
const FW_EVENT_TYPE_STANDARD;
676 FW_EXTERN NSString *
const FW_EVENT_PAUSE_BUTTON_CLICKED;
681 FW_EXTERN NSString *
const FW_EVENT_RESUME_BUTTON_CLCKED;
686 FW_EXTERN NSString *
const FW_PARAMETER_OPEN_IN_APP;
694 FW_EXTERN NSString *
const FW_PARAMETER_IN_APP_VIEW_LOADING_TIMEOUT;
712 FW_EXTERN NSString *
const FW_PARAMETER_IN_APP_VIEW_TOOLBAR_SURFACE_RENDER;
718 FW_EXTERN NSString *
const FW_PARAMETER_IN_APP_VIEW_NAVIGATION_BAR_BACKGROUND_COLOR;
725 FW_EXTERN NSString *
const FW_PARAMETER_IN_APP_VIEW_NAVIGATION_BAR_ALPHA;
731 FW_EXTERN NSString *
const FW_PARAMETER_IN_APP_VIEW_NAVIGATION_BAR_HEIGHT;
738 FW_EXTERN NSString *
const FW_PARAMETER_IN_APP_VIEW_WEB_VIEW_BACKGROUND_COLOR;
745 FW_EXTERN NSString *
const FW_PARAMETER_IN_APP_VIEW_WEB_VIEW_ALPHA;
747 FW_EXTERN NSString *
const FW_PARAMETER_VIDEO_AD_SCALING_MODE DEPRECATED_ATTRIBUTE;
748 FW_EXTERN NSString *
const FW_PARAMETER_VIDEO_AD_SCALING_MODE_NONE DEPRECATED_ATTRIBUTE;
749 FW_EXTERN NSString *
const FW_PARAMETER_VIDEO_AD_SCALING_MODE_ASPECT_FIT DEPRECATED_ATTRIBUTE;
750 FW_EXTERN NSString *
const FW_PARAMETER_VIDEO_AD_SCALING_MODE_ASPECT_FILL DEPRECATED_ATTRIBUTE;
751 FW_EXTERN NSString *
const FW_PARAMETER_VIDEO_AD_SCALING_MODE_FILL DEPRECATED_ATTRIBUTE;
758 FW_EXTERN NSString *
const FW_PARAMETER_VIDEO_AD_USE_APPLICATION_AUDIO_SESSION;
766 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_DISPLAY;
774 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_REFRESH_INTERVAL;
782 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_UPDATE_CALLBACK;
789 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_POSITION;
797 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_ALPHA;
805 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_HEIGHT;
813 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_WIDTH;
821 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_TEXT_SIZE;
829 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_BG_COLOR;
837 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_FONT_COLOR;
845 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_TEXT_FONT;
853 FW_EXTERN NSString *
const FW_PARAMETER_COUNTDOWN_TIMER_HTML;
860 FW_EXTERN NSString *
const FW_PARAMETER_NONTEMPORAL_SLOT_VISIBILITY_AUTO_TRACKING;
868 FW_EXTERN NSString *
const FW_PARAMETER_PAUSEAD_ENABLE;
875 FW_EXTERN NSString *
const FW_INFO_KEY_URL;
883 FW_EXTERN NSString *
const FW_INFO_KEY_ERROR;
890 FW_EXTERN NSString *
const FW_INFO_KEY_CUSTOM_ID;
897 FW_EXTERN NSString *
const FW_INFO_KEY_CONCRETE_EVENT_ID;
904 FW_EXTERN NSString *
const FW_INFO_KEY_SLOT;
911 FW_EXTERN NSString *
const FW_INFO_KEY_ADINSTANCE;
918 FW_EXTERN NSString *
const FW_INFO_KEY_AD_ID;
925 FW_EXTERN NSString *
const FW_INFO_KEY_CREATIVE_ID;
927 FW_EXTERN NSString *
const FW_INFO_KEY_USER_ACTION;
934 FW_EXTERN NSString *
const FW_INFO_KEY_MODULE_NAME;
940 FW_EXTERN NSString *
const FW_INFO_KEY_MODULE_TYPE;
947 FW_EXTERN NSString *
const FW_INFO_KEY_REQUIRED_API_VERSION;
953 FW_EXTERN NSString *
const FW_MODULE_TYPE_RENDERER;
959 FW_EXTERN NSString *
const FW_MODULE_TYPE_TRANSLATOR;
965 FW_EXTERN NSString *
const FW_INFO_KEY_ERROR_CODE;
971 FW_EXTERN NSString *
const FW_INFO_KEY_ERROR_INFO;
977 FW_EXTERN NSString *
const FW_INFO_KEY_ERROR_MODULE;
982 FW_EXTERN NSString *
const FW_ERROR_IO;
987 FW_EXTERN NSString *
const FW_ERROR_TIMEOUT;
992 FW_EXTERN NSString *
const FW_ERROR_NULL_ASSET;
997 FW_EXTERN NSString *
const FW_ERROR_ADINSTANCE_UNAVAILABLE;
1002 FW_EXTERN NSString *
const FW_ERROR_UNKNOWN;
1007 FW_EXTERN NSString *
const FW_ERROR_MISSING_PARAMETER;
1012 FW_EXTERN NSString *
const FW_ERROR_NO_AD_AVAILABLE;
1017 FW_EXTERN NSString *
const FW_ERROR_PARSE;
1022 FW_EXTERN NSString *
const FW_ERROR_INVALID_VALUE;
1027 FW_EXTERN NSString *
const FW_ERROR_INVALID_SLOT;
1032 FW_EXTERN NSString *
const FW_ERROR_NO_RENDERER;
1037 FW_EXTERN NSString *
const FW_ERROR_NO_PRELOAD_IN_TRANSLATOR;
1042 FW_EXTERN NSString *
const FW_ERROR_IN_APP_VIEW;
1047 FW_EXTERN NSString *
const FW_ERROR_3P_COMPONENT;
1052 FW_EXTERN NSString *
const FW_ERROR_UNSUPPORTED_3P_FEATURE;
1058 FW_EXTERN NSString *
const FW_INFO_KEY_SUB_EVENT_NAME;
1065 FW_EXTERN NSString *
const FW_INFO_KEY_CUSTOM_EVENT_NAME;
1075 FW_EXTERN NSString *
const FW_INFO_KEY_SHOW_BROWSER;
1080 FW_EXTERN NSString *
const FW_INFO_KEY_VIDEO_DISPLAY_BASE;
1085 FW_EXTERN NSString *
const FW_PARAMETER_POSTAL_CODE;
1090 FW_EXTERN NSString *
const FW_PARAMETER_AREA_CODE;
1095 FW_EXTERN NSString *
const FW_PARAMETER_DATE_OF_BIRTH;
1100 FW_EXTERN NSString *
const FW_PARAMETER_GENDER;
1105 FW_EXTERN NSString *
const FW_PARAMETER_KEYWORDS;
1110 FW_EXTERN NSString *
const FW_PARAMETER_SEARCH_STRING;
1115 FW_EXTERN NSString *
const FW_PARAMETER_MARITAL;
1120 FW_EXTERN NSString *
const FW_PARAMETER_ETHNICITY;
1125 FW_EXTERN NSString *
const FW_PARAMETER_ORIENTATION;
1130 FW_EXTERN NSString *
const FW_PARAMETER_INCOME;
1138 FW_EXTERN NSString *
const FW_PARAMETER_CLICK_DETECTION;
1146 FW_EXTERN NSString *
const FW_PARAMETER_USE_CONTROL_PANEL;
1154 FW_EXTERN NSString *
const FW_PARAMETER_DESIRED_BITRATE;
1156 FW_EXTERN NSString *
const FW_PARAMETER_DESIRED_ORIENTATION DEPRECATED_ATTRIBUTE;
1158 FW_EXTERN NSString *
const FW_PARAMETER_REQUEST_TEMPLATE_VARIABLES;
1160 FW_EXTERN NSString *
const FW_PARAMETER_REQUEST_ALTERNATIVE_URL;
1167 FW_EXTERN NSString *
const FW_PARAMETER_IDFA;
1169 FW_EXTERN NSString *
const FW_EVENT_AD_BUFFERING_END;
1171 FW_EXTERN NSString *
const FW_EVENT_AD_BUFFERING_START;
1173 FW_EXTERN NSString *
const FW_EVENT_TYPE_CUSTOM;