SCAdSequencingDelegate
@protocol SCAdSequencingDelegate
Delegate methods that are required to synchronise advertising video clips with clients custom content video player. Through this delegate the sequencing controller will provide information when to start and stop the content video player.
-
Optional
This delegate method is called to provide information about Variant videos. These are typically short video jingles that are played before, in between or after your advertising blocks.
Declaration
Objective-C
- (SCAdVariants *)addVariantsAt:(id)position controller:(SCAdSequencingController *)controller;
Return Value
The Variant object taht carries information about opener, prebumper or closer ad urls. Look up SCAdVariants reference about further information.
-
Optional
Called to be able to edit the configuration at a given sequence position.
Declaration
Objective-C
- (void)editConfiguration:(SCAdConfiguration *)configuration at:(id)position;
-
Required
Use this delegate method to provide the current playback position of a content video player to the sequencing controller. When there is an advertising clip for the given position in the sequence map the clip gets started and pauseContentVideoPlayer will be called.
Declaration
Objective-C
- (id)getContentVideoPlayerPosition:(SCAdSequencingController *)controller;
Return Value
The position of your content video player.
-
Required
Called when the sequencing player wants to play an advertising clip Implement code that causes your content video player to stop.
Declaration
Objective-C
- (void)pauseContentVideoPlayer:(SCAdSequencingController *)controller;
-
Required
Called when an advertising clip from sequence stopped. Implement code that causes your content video player to continue.
Declaration
Objective-C
- (void)playContentVideoPlayer:(SCAdSequencingController *)controller;