CEContentProgressProvider
Please implement all methods in this class otherwise InStream ad will not work properly or even not be served.
API Reference
Public methods
NSTimeInterval
getContentCurrentPosition Please implement this function to provide progress of video content. Current position must be exclusively handled as user is seeking. Please refer to below detail.
NSTimeInterval
getContentTotalDuration Please implement this function to provide the duration of video content.
BOOL
isContentPlayerReady Please implement this function to notify once video content player is ready.
Public Methods
getContentCurrentPosition
- (NSTimeInterval) getContentCurrentPosition
Please implement this function to provide the progress of video content that is playing. Please read this carefully: During the time user is seeking video, APP should always return the progress time that user start seeking instead of the current time that user has sought to. Once user stop seeking, please return the progress time that user stopped at.
Returns
NSTimeInterval
Current progress time in NSTimeInterval
getContentTotalDuration
- (NSTimeInterval) getContentTotalDuration
Please implement this function to provide the duration of video content.
Returns
NSTimeInterval
Duration of current video in NSTimeInterval
isContentPlayerReady
- (BOOL) isContentPlayerReady
Please implement this function to notify once video content player is ready.
Returns
BOOL
true
for ready, otherwise false
Last updated