public interface POBPlayer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
POBPlayer.POBPlayerListener
Player Listener to provides callback methods like ad ready to play, failed etc.
|
| Modifier and Type | Field and Description |
|---|---|
static double |
PROGRESS_UPDATE_DELAY
Time interval to update progress event
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Method to do resource cleanup
|
int |
getDuration()
Gets the duration of the media.
|
int |
getVideoHeight()
Get video player height
|
int |
getVideoWidth()
Get video player width
|
void |
onSurfaceCreated(android.view.Surface surface)
Method to notify surface created
|
void |
onSurfaceDestroyed(android.view.Surface surface)
Method to notify surface destroyed
|
void |
pause()
Pauses current playback.
|
void |
setPlayerListener(POBPlayer.POBPlayerListener playerListener)
Register listener to get Video Player callbacks
|
void |
setPrepareTimeout(int timeout)
Set prepare timeout to handle Player url loading.
|
void |
setStallTimeout(int stallTimeout)
Set stall timeout to handle Player buffering.
|
void |
setVolume(int leftVolume,
int rightVolume)
Set audio volume of Player
|
void |
start()
Start current playback.
|
void |
stop()
Stops playback after playback has been onStart or onPause.
|
static final double PROGRESS_UPDATE_DELAY
void setPlayerListener(@NonNull
POBPlayer.POBPlayerListener playerListener)
playerListener - callback listener instancevoid setPrepareTimeout(int timeout)
timeout - the timeout value in milliseconds.void setStallTimeout(int stallTimeout)
stallTimeout - the timeout value in milliseconds.void start()
void pause()
void stop()
void setVolume(int leftVolume,
int rightVolume)
leftVolume - left volumerightVolume - right volumeint getDuration()
int getVideoWidth()
int getVideoHeight()
void destroy()
void onSurfaceCreated(@NonNull
android.view.Surface surface)
surface - surface to render videovoid onSurfaceDestroyed(@NonNull
android.view.Surface surface)
surface - surface to render video