Package org.opensourcephysics.media.core
Interface IncrementallyLoadable
- All Known Implementing Classes:
XuggleVideo
public interface IncrementallyLoadable
-
Method Summary
Modifier and TypeMethodDescriptionintGet the total number of frames expected.intGet the total number of frames loaded.booleanDetermines if the video is fully loaded.booleanloadMoreFrames(int n) Attempt to load n more frames.voidsetLoadableFrameCount(int n) Set the total number of frames expected.
-
Method Details
-
loadMoreFrames
Attempt to load n more frames.- Parameters:
n- the number of additional frames to load- Returns:
- true if n additional frames were loaded, false if fewer or none loaded
- Throws:
IOException
-
getLoadedFrameCount
int getLoadedFrameCount()Get the total number of frames loaded.- Returns:
- the number of frames loaded
-
getLoadableFrameCount
int getLoadableFrameCount()Get the total number of frames expected.- Returns:
-
setLoadableFrameCount
void setLoadableFrameCount(int n) Set the total number of frames expected.- Parameters:
n- the number of frames expected
-
isFullyLoaded
boolean isFullyLoaded()Determines if the video is fully loaded.- Returns:
- true if fully loaded
-