com.ooyala.android.item.VTTClosedCaptions Class Reference

Classes

class  VTTCaption
 

Public Member Functions

Set< String > getLanguages ()
 
List< VTTCaptiongetCaptions ()
 
String getDefaultLanguage ()
 
String getLanguageFullName (String languageCode)
 Get the language full name given a language code. More...
 
String getLanguageCode (String languageFullName)
 Get the language code given a language full name. More...
 

Static Public Member Functions

static VTTClosedCaptions build (JSONObject data)
 

Protected Attributes

Set< String > languages = new HashSet<>()
 
List< VTTCaptioncaptions = new ArrayList<>()
 
String defaultLanguage
 

Member Function Documentation

static VTTClosedCaptions com.ooyala.android.item.VTTClosedCaptions.build ( JSONObject  data)
static
List<VTTCaption> com.ooyala.android.item.VTTClosedCaptions.getCaptions ( )
String com.ooyala.android.item.VTTClosedCaptions.getDefaultLanguage ( )
String com.ooyala.android.item.VTTClosedCaptions.getLanguageCode ( String  languageFullName)

Get the language code given a language full name.

Parameters
languageFullName,forexample 'English'
Returns
language code, for example 'en'. Returns null if no match found.
String com.ooyala.android.item.VTTClosedCaptions.getLanguageFullName ( String  languageCode)

Get the language full name given a language code.

Parameters
languageCode,forexample 'en'
Returns
language full name, for example 'English'. Returns null if no match found.
Set<String> com.ooyala.android.item.VTTClosedCaptions.getLanguages ( )

Member Data Documentation

List<VTTCaption> com.ooyala.android.item.VTTClosedCaptions.captions = new ArrayList<>()
protected
String com.ooyala.android.item.VTTClosedCaptions.defaultLanguage
protected
Set<String> com.ooyala.android.item.VTTClosedCaptions.languages = new HashSet<>()
protected