Package ws.schild.jave.info
Class MultimediaInfo
java.lang.Object
ws.schild.jave.info.MultimediaInfo
Instances of this class report informations about a decoded multimedia file.
- Author:
- Carlo Pelliccia
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAudio()Returns a set of audio-specific informations.longReturns the stream duration in millis.Returns the multimedia file format name.Returns the multimedia metadata.getVideo()Returns a set of video-specific informations.Sets a set of audio-specific informations.setDuration(long duration) Sets the stream duration in millis.Sets the multimedia file format name.setMetadata(Map<String, String> metadata) Sets the multimedia metadata.Sets a set of video-specific informations.toString()
-
Constructor Details
-
MultimediaInfo
public MultimediaInfo()
-
-
Method Details
-
getFormat
Returns the multimedia file format name.- Returns:
- The multimedia file format name.
-
setFormat
Sets the multimedia file format name.- Parameters:
format- The multimedia file format name.- Returns:
- this instance
-
getMetadata
Returns the multimedia metadata.- Returns:
- The multimedia metadata.
-
setMetadata
Sets the multimedia metadata.- Parameters:
metadata- The multimedia metadata.- Returns:
- this instance
-
getDuration
public long getDuration()Returns the stream duration in millis. If less than 0 this information is not available.- Returns:
- The stream duration in millis. If less than 0 this information is not available.
-
setDuration
Sets the stream duration in millis.- Parameters:
duration- The stream duration in millis.- Returns:
- this instance
-
getAudio
Returns a set of audio-specific informations. If null, there's no audio stream in the multimedia file.- Returns:
- A set of audio-specific informations.
-
setAudio
Sets a set of audio-specific informations.- Parameters:
audio- A set of audio-specific informations.- Returns:
- this instance
-
getVideo
Returns a set of video-specific informations. If null, there's no video stream in the multimedia file.- Returns:
- A set of audio-specific informations.
-
setVideo
Sets a set of video-specific informations.- Parameters:
video- A set of video-specific informations.- Returns:
- this instance
-
toString
-