java.lang.Object
uk.co.caprica.vlcj.media.InfoApi
Behaviour pertaining to media information, providing things like the media resource locator, type, state and duration
of this media. Also provides access to the various media tracks and playback statistics.
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of audio tracks on the current media.longduration()Get the durationmrl()Get the media resource locator for the current media.state()Get the media stateGet playback statistics for the current media.booleanstatistics(MediaStatistics mediaStatistics) Get playback statistics for the current media.Get the list of text (subtitle) tracks on the current media.Get the list of all media tracks, or only those that match specified types.type()Get the current media typeGet the list of video tracks on the current media.
-
Method Details
-
mrl
Get the media resource locator for the current media.- Returns:
- media resource locator
-
type
Get the current media type- Returns:
- media type
-
state
Get the media state- Returns:
- state
-
duration
public long duration()Get the duration- Returns:
- duration, milliseconds
-
tracks
Get the list of all media tracks, or only those that match specified types.- Parameters:
types- zero or more track types, if none specified then all track types will be returned- Returns:
- track information, empty list if no tracks
-
audioTracks
Get the list of audio tracks on the current media.- Returns:
- audio tracks, empty list if none
-
videoTracks
Get the list of video tracks on the current media.- Returns:
- video tracks, empty list if none
-
textTracks
Get the list of text (subtitle) tracks on the current media.- Returns:
- text tracks, empty list if none
-
statistics
Get playback statistics for the current media.- Parameters:
mediaStatistics- caller-supplied structure to receive the media statistics- Returns:
trueif the statistics were updated;falseon error
-
statistics
Get playback statistics for the current media.- Returns:
- media statistics, or
nullon error
-