Protocol for AdManager context.
- (void FWContext) loadExtension: |
|
(NSString *) |
extensionName |
|
Load player extension by its class name.
Parameters: extensionName - the class name of the extension
Events: FW_NOTIFICATION_EXTENSION_LOADED will be posted by the FWContext object when an extension succeeds or fails to initialize. If the notification's userInfo dict contains key FW_INFO_KEY_ERROR, it indicate the extension failed to initialize.
- (void FWContext) requestTimelinePause |
|
|
|
Request timeline to pause.
The timeline consists of the content video and all linear slots. When the renderer or extension requires the timeline to be temporarily paused, e.g. when expanding to a fullscreen view that covers the whole player and other ads, calling this method will result in the notification FW_NOTIFICATION_CONTENT_PAUSE_REQUEST being dispatched from the current FWContext instance if content video is currently playing, and send pause requests to all active temporal slots.
- (void FWContext) requestTimelineResume |
|
|
|
Request timeline to resume.
The timeline consists of the content video and all linear slots. When the renderer or extension requires the timeline to be resumed, e.g. when dismissing a fullscreen view that covers the whole player and other ads, calling this method will result in the notification FW_NOTIFICATION_CONTENT_RESUME_REQUEST being dispatched from the current FWContext instance if content video is currently paused, and send resume requests to all active temporal slots.
- (void FWContext) setVideoDisplayBase: |
|
(UIView *) |
value |
|
Set video display base UIView.
REQUIRED. Video ads are rendered within the base view in the same frame. When video display base view changes, app needs to call this method again with the new video display to notify AdManager to render video ads in the updated video display. App does not need to call this method when video display view's frame changes. Prior to AdManager 3.8, renderer assumes main video's MPMoviePlayerController view is the video display base. Starting from AdManager 3.8, for iOS>=3.2, app must invoke this method to specify video display base explicitly. For iOS3.0-3.1, app does not need to invoke this method since the legacy MPMoviePlayerController is always played in fullscreen.
- (void FWContext) startSubsessionWithToken: |
|
(NSUInteger) |
subsessionToken |
|
Start a subsession in live mode.
Subsequent requests will be in the same subsession, until this method is called again with a different token.
- Parameters
-
subsessionToken | a token to identify the subsession, should be unique across different subsessions. Use a different token to start a new subsession. |
Note: Calling this method multiple times with the same token will have no effect. Subsession only works when FW_CAPABILITY_SYNC_MULTI_REQUESTS is on, calling this method will turn on this capability.