Package com.igrium.videolib.api.playback
Interface CodecInterface
- All Known Implementing Classes:
VLCVideoPlayer.VLCCodecInterface
public interface CodecInterface
Technical information about the current video.
-
Method Summary
Modifier and TypeMethodDescriptiondefault float
Get the aspect ratio of this video.float
Get the frame rate of this video.int
Get the height of the video.int
getWidth()
Get the width of the video.
-
Method Details
-
getWidth
int getWidth()Get the width of the video.- Returns:
- Width in pixels.
-
getHeight
int getHeight()Get the height of the video.- Returns:
- Height in pixels.
-
getAspectRatio
default float getAspectRatio()Get the aspect ratio of this video.- Returns:
- The aspect ratio in the form
[x]:1
, wherex
is this return value. If the video uses square pixels, this is equivilent togetWidth() / getHeight()
-
getFrameRate
float getFrameRate()Get the frame rate of this video.- Returns:
- Frames per second.
-