|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LanguageControl
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 |
|---|
String[] getSupportedLanguages()
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()String getLanguage()
null if no language is selectedsetLanguage(java.lang.String)String getDefaultLanguage()
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||