CEContentProgressProvider

Please implement all methods in this class otherwise InStream ad will not work properly or even not be served.

package com.intowow.sdk.InStream

public static interface CEContentProgressProvider

This interface is used for InstreamAd to let SDK know the current status of video content.

Public methods

long

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.**

long

getContentTotalDuration Please implement this function to provide the duration of video content.

boolean

isContentPlayerReady Please implement this function to notify once video content player is ready.

getContentCurrentPosition

long 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

long

Current progress time in millisecond

getContentTotalDuration

long getContentTotalDuration() Please implement this function to provide the duration of video content.

Returns

long

Duration of current video in millisecond

isContentPlayerReady

boolean isContentPlayerReady()

Please implement this function to notify once video content player is ready.

Returns

boolean

true for ready, otherwise false

Last updated