java.lang.Object
uk.co.caprica.vlcj.factory.ApplicationApi
Behaviour pertaining to the application itself.
Includes features such as the native library version and build information, the application, user agent, id and icon, native log, native clock, codec information, and lists of the available native audio and video modules.
-
Method Summary
Modifier and TypeMethodDescriptionGet the available audio filters.Get the source code change-set id used to build libvlc.longclock()Get the time as defined by LibVLC.codecDescription(TrackType type, int codec) Get a description for a particular codec value.compiler()Get the compiler used to build libvlc.newLog()Create a new native log component.voidsetApplicationId(String id, String version, String icon) Set the application identification information.voidsetUserAgent(String userAgent) Set the application name.voidsetUserAgent(String userAgent, String httpUserAgent) Set the application name.version()Get the libvlc version.Get the available video filters.
-
Method Details
-
version
Get the libvlc version.- Returns:
- native library version
-
compiler
Get the compiler used to build libvlc.- Returns:
- compiler
-
changeset
Get the source code change-set id used to build libvlc.- Returns:
- change-set
-
setUserAgent
Set the application name.- Parameters:
userAgent- application name
-
setUserAgent
Set the application name.- Parameters:
userAgent- application namehttpUserAgent- application name for HTTP
-
setApplicationId
Set the application identification information.- Parameters:
id- application id, e.g. com.somecompany.myappversion- application versionicon- path to application icon
-
newLog
Create a new native log component.- Returns:
- native log component, or
nullif the native log is not available
-
clock
public long clock()Get the time as defined by LibVLC.The time is not meaningful in the sense of what time it is, rather it is a monotonic clock with an arbitrary starting value.
- Returns:
- current clock time value, in microseconds
-
codecDescription
Get a description for a particular codec value.- Parameters:
type- type of trackcodec- codec value (or codec FourCC)- Returns:
- codec description
-
audioFilters
Get the available audio filters.- Returns:
- collection of audio filter descriptions
-
videoFilters
Get the available video filters.- Returns:
- collection of video filter descriptions
-