|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Control to query the supported languages and to set a specific language for a player. Languages must be coded in three letter abbreviations defined by ISO 639-2 and specified in ABNT NBR 15603-2 for the usage in service descriptors.
Player
Method Summary | |
String |
getDefaultLanguage()
Returns the default language of the stream/network signaling. |
String |
getLanguage()
Provides the currently selected language to the application. |
String[] |
getSupportedLanguages()
Provides a list of all supported language of the current service to the application. |
boolean |
setLanguage(String language)
Sets the language for the player, overrides all previously selected languages. |
Methods inherited from interface javax.media.Control |
getControlComponent |
Method Detail |
public String[] getSupportedLanguages()
public boolean setLanguage(String language) throws LanguageNotSupportedException, IllegalArgumentException
language
- to be used either for Audio or Subtitles coded as three
letter String
true
if setting the language was succesful,
false
otherwise
LanguageNotSupportedException
- in case a language is set that is
not supported by the system
IllegalArgumentException
- if the language
String is
not three characters longgetLanguage()
public String getLanguage()
null
if no language is selectedsetLanguage(java.lang.String)
public String getDefaultLanguage()
|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |