Package org.opensourcephysics.media.core
Interface IncrementallyLoadable
- All Known Implementing Classes:
XuggleVideo
public interface IncrementallyLoadable
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the total number of frames expected.int
Get the total number of frames loaded.boolean
Determines if the video is fully loaded.boolean
loadMoreFrames
(int n) Attempt to load n more frames.void
setLoadableFrameCount
(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
-