com.ooyala.android.imasdk.VideoProgressCalculatorRunningState Class Reference

This class saves the states related to the IMA Ads playback. More...

Public Member Functions

 VideoProgressCalculatorRunningState (boolean isPlayingIMAAd, int lastPausedMs, int liveContentTimePlayed)
 Initialize a VideoProgressCalculatorRunningState with given params. More...
 
boolean isPlayingIMAAd ()
 
void setPlayingIMAAd (boolean _isPlayingIMAAd)
 Set the private filed _isPlayingIMAAd to the given param. More...
 
int getLastPausedMs ()
 Fetch the time when the content is paused last time. More...
 
void setLastPausedMs (int _lastPausedMs)
 Set the time when the content is paused last time to the given time. More...
 
int getLiveContentTimePlayed ()
 Fetch playhead time of the current Live content. More...
 
void setLiveContentTimePlayed (int _liveContentTimePlayed)
 Set played time of the current Live content to the given time. More...
 
void incrementLiveContentTimePlayed (int ms)
 Increment the played time of the current Live content by the given time. More...
 

Detailed Description

This class saves the states related to the IMA Ads playback.

Constructor & Destructor Documentation

com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.VideoProgressCalculatorRunningState ( boolean  isPlayingIMAAd,
int  lastPausedMs,
int  liveContentTimePlayed 
)

Initialize a VideoProgressCalculatorRunningState with given params.

Parameters
isPlayingIMAAdtrue if a IMA Ad is playing
lastPausedMsthe last time that the content is paused in millisecond
liveContentTimePlayedthe playhead time of live content in millisecond

Member Function Documentation

int com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.getLastPausedMs ( )

Fetch the time when the content is paused last time.

Returns
the time that content paused last time in millisecond
int com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.getLiveContentTimePlayed ( )

Fetch playhead time of the current Live content.

Returns
the playhead time of the current live content in millisecond
void com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.incrementLiveContentTimePlayed ( int  ms)

Increment the played time of the current Live content by the given time.

Parameters
mstime to be added to played time of the current Live content in millisecond
boolean com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.isPlayingIMAAd ( )
Returns
true if a IMA ad is playing, false otherwise
void com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.setLastPausedMs ( int  _lastPausedMs)

Set the time when the content is paused last time to the given time.

Parameters
_lastPausedMsthe given time in millisecond
void com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.setLiveContentTimePlayed ( int  _liveContentTimePlayed)

Set played time of the current Live content to the given time.

Parameters
_liveContentTimePlayedthe played time of the current Live in millisecond
void com.ooyala.android.imasdk.VideoProgressCalculatorRunningState.setPlayingIMAAd ( boolean  _isPlayingIMAAd)

Set the private filed _isPlayingIMAAd to the given param.

Parameters
_isPlayingIMAAdgiven value for _isPlayingIMAAd