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.long
duration()
Get the durationmrl()
Get the media resource locator for the current media.state()
Get the media stateGet playback statistics for the current media.boolean
statistics
(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
-
state
-
duration
public long duration()Get the duration- Returns:
- duration, milliseconds
-
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:
true
if the statistics were updated;false
on error
-
statistics
Get playback statistics for the current media.- Returns:
- media statistics, or
null
on error
-