Package com.my.target.instreamads
Interface InstreamAdPlayer.AdPlayerListener
-
- All Implemented Interfaces:
public interface InstreamAdPlayer.AdPlayerListenerCalls from this listener must be implemented in videoplayer for calculating video ad statistics
-
-
Method Summary
Modifier and Type Method Description abstract voidonAdVideoCompleted()Should be called when video completes abstract voidonAdVideoError(@NonNull() String message)Should be called when video error occurs abstract voidonAdVideoPaused()Should be called when video pauses abstract voidonAdVideoResumed()Should be called when video resumes from pause abstract voidonAdVideoStarted()Should be called when video starts playing abstract voidonAdVideoStopped()Should be called when video stops abstract voidonVolumeChanged(float volume)Should be called when video volume changes -
-
Method Detail
-
onAdVideoCompleted
abstract void onAdVideoCompleted()
Should be called when video completes
-
onAdVideoError
abstract void onAdVideoError(@NonNull() String message)
Should be called when video error occurs
- Parameters:
message- reason for error
-
onAdVideoPaused
abstract void onAdVideoPaused()
Should be called when video pauses
-
onAdVideoResumed
abstract void onAdVideoResumed()
Should be called when video resumes from pause
-
onAdVideoStarted
abstract void onAdVideoStarted()
Should be called when video starts playing
-
onAdVideoStopped
abstract void onAdVideoStopped()
Should be called when video stops
-
onVolumeChanged
abstract void onVolumeChanged(float volume)
Should be called when video volume changes
- Parameters:
volume- - when 1 - full volume, and 0 - mute
-
-
-
-