Package ws.schild.jave
Class MultimediaInfo
- java.lang.Object
-
- ws.schild.jave.MultimediaInfo
-
public class MultimediaInfo extends java.lang.ObjectInstances of this class report informations about a decoded multimedia file.- Author:
- Carlo Pelliccia
-
-
Constructor Summary
Constructors Constructor Description MultimediaInfo()
-
Method Summary
Modifier and Type Method Description AudioInfogetAudio()Returns a set of audio-specific informations.longgetDuration()Returns the stream duration in millis.java.lang.StringgetFormat()Returns the multimedia file format name.VideoInfogetVideo()Returns a set of video-specific informations.java.lang.StringtoString()
-
-
-
Method Detail
-
getFormat
public java.lang.String getFormat()
Returns the multimedia file format name.- Returns:
- The multimedia file format name.
-
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.
-
getAudio
public AudioInfo 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.
-
getVideo
public VideoInfo 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-