SCAdFacadeDelegate
@protocol SCAdFacadeDelegate <NSObject>
The SCAdFacadeDelegate protocol needs to be implemented by the video player implementation it receives its commands and delivers information through this protocol
-
if you want to support subtitles (captions), implement this function in addition to the normal loadAdWithUrlString function (see below)
Declaration
Objective-C
- (BOOL)loadAdWithCaptions:(NSDictionary *_Nonnull)loadDict disableSeeking:(BOOL)disableSeeking completion:(nullable SCEmptyCompletionBlock)completion;
-
The player should load the ad from this url and is told to disable/enable seeking
Declaration
Objective-C
- (BOOL)loadAdWithUrlString:(NSString *_Nonnull)urlString disableSeeking:(BOOL)disableSeeking completion:(nullable SCEmptyCompletionBlock)completion;
-
The player should start its playback
Declaration
Objective-C
- (void)start;
-
The player should pause its playback
Declaration
Objective-C
- (void)pause;
-
The player should resume its playback
Declaration
Objective-C
- (void)resume;
-
The player is being asked if it is paused
Declaration
Objective-C
- (BOOL)isPaused;
-
The player should mute sound
Declaration
Objective-C
- (void)mutePlayer;
-
The player should unmute sound
Declaration
Objective-C
- (void)unmutePlayer;
-
The player is being asked if it is muted
Declaration
Objective-C
- (BOOL)isMuted;
-
The player should seek from its current position to a time offset
Declaration
Objective-C
- (void)seek:(NSInteger)offset;
-
The player must give back its current playback position
Declaration
Objective-C
- (double)getCurrentTime;
-
The player must give back the duration of its current video
Declaration
Objective-C
- (double)getDuration;
-
The player should set its volume to the desired value (unused at the moment)
Declaration
Objective-C
- (void)setVolume:(id)volume;
-
The player should give back the current volume (currently unused)
Declaration
Objective-C
- (id)getVolume;
-
The player should lock the current content source
Declaration
Objective-C
- (void)lockContent;
-
The player should give back its current content source
Declaration
Objective-C
- (SCContentSource *_Nullable)getCurrentContentSource;
-
The player should release its source to the content source (after an adSlot is finished)
Declaration
Objective-C
- (BOOL)releaseContent;
-
Give back an error, if a playback error occured
Declaration
Objective-C
- (nullable NSString *)getError;