|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LanguageControl
This interface is the base interface for both audio and subtitling language control. This interface should never be implemented in a control alone, but always either as audio or subtitling language control. If a language can not be selected because the user/application is not entitled to access it, the language is reset to that before the invocation of the method. If more than one stream with the same language exists, the behaviour of selectLanguage(String)is to select the first listed in the network signalling. NOTE:This is equivalent to item b under 11.4.2.3,"Default media player behaviour".
Method Summary | |
---|---|
java.lang.String |
getCurrentLanguage()
Returns the language code of the currently selected language. |
java.lang.String[] |
listAvailableLanguages()
Provides the application a list of available languages. |
java.lang.String |
selectDefaultLanguage()
Changes the language to the default language determined by the implementation. |
void |
selectLanguage(java.lang.String lang)
Changes the language to the language given in the parameter. |
Methods inherited from interface javax.media.Control |
---|
getControlComponent |
Method Detail |
---|
java.lang.String[] listAvailableLanguages()
void selectLanguage(java.lang.String lang) throws LanguageNotAvailableException, NotAuthorizedException
lang
- the desired language code according to the ISO 639 standard.
LanguageNotAvailableException
- if the language given in the parameter is not available,
NotAuthorizedException
- if access to the required language is not
permittedjava.lang.String getCurrentLanguage()
java.lang.String selectDefaultLanguage() throws NotAuthorizedException
NotAuthorizedException
- If access to the default language is not
permitted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |