com.ooyala.android.captions.CaptionUtils Class Reference

Static Public Member Functions

static Caption getCaption (final Video currentItem, final String ccLanguage, final int playheadTimeMsec)
 Get the closed caption, if any, for a given playhead position from the currently playing asset. More...
 

Member Function Documentation

static Caption com.ooyala.android.captions.CaptionUtils.getCaption ( final Video  currentItem,
final String  ccLanguage,
final int  playheadTimeMsec 
)
static

Get the closed caption, if any, for a given playhead position from the currently playing asset.

Parameters
currentItempossibly null content from which to read Closed Captions.
ccLanguagepossibly null currently select Closed Caption language.
playheadTimeMsecthe playhead time in the currentItem from which to find a Caption.
Returns
possibly null Caption.