public interface

SVSContentPlayerPlugin

com.smartadserver.android.instreamsdk.SVSContentPlayerPlugin

Class Overview

Interface to be implemented by classes that pilot various content players

Summary

Public Methods
abstract void adBreakEnded()
Performs any action necessary when the ad playback has finished, including resuming the content playback
abstract void adBreakStarted()
Performs any action necessary when the ad playback is about to start, including pausing the content playback
abstract long getContentDuration()
Returns the content media duration in milliseconds (or -1 for live content)
abstract ViewGroup getContentPlayerContainer()
Returns the ViewGroup component that contains the content player
abstract float getContentPlayerVolumeLevel()
Returns the volume level of the content player.
abstract long getCurrentPosition()
Returns the current position in the content media, in milliseconds
abstract boolean isPlaying()
Returns whether the content media is currently being played

Public Methods

public abstract void adBreakEnded ()

Performs any action necessary when the ad playback has finished, including resuming the content playback

public abstract void adBreakStarted ()

Performs any action necessary when the ad playback is about to start, including pausing the content playback

public abstract long getContentDuration ()

Returns the content media duration in milliseconds (or -1 for live content)

public abstract ViewGroup getContentPlayerContainer ()

Returns the ViewGroup component that contains the content player

public abstract float getContentPlayerVolumeLevel ()

Returns the volume level of the content player.

public abstract long getCurrentPosition ()

Returns the current position in the content media, in milliseconds

public abstract boolean isPlaying ()

Returns whether the content media is currently being played