public class VGetVideo extends Video<MBFImage>
VGet
, which supports video download from youtube, vimeo
and a few other video sites. Just providing the URL uses the first video URL
VGet
finds. You can also provide a VideoInfoUser
to control
the quality of video downloadedcurrentFrame
Constructor and Description |
---|
VGetVideo(String url) |
VGetVideo(String url,
com.github.axet.vget.info.VideoInfoUser iu) |
Modifier and Type | Method and Description |
---|---|
long |
countFrames()
Return the number of frames in the whole video.
|
MBFImage |
getCurrentFrame()
Get the current frame
|
double |
getFPS()
Get the frame rate
|
int |
getHeight()
Get the height of the video frame.
|
MBFImage |
getNextFrame()
Get the next frame.
|
long |
getTimeStamp()
Get the timestamp of the current frame in milliseconds
|
int |
getWidth()
Get the width of the video frame
|
boolean |
hasNextFrame()
Returns whether this video has another frame to provide.
|
void |
reset()
Reset the video - putting the frame counter back to the start.
|
close, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public VGetVideo(String url) throws MalformedURLException
url
- MalformedURLException
public VGetVideo(String url, com.github.axet.vget.info.VideoInfoUser iu) throws MalformedURLException
url
- iu
- MalformedURLException
public MBFImage getNextFrame()
Video
getNextFrame
in class Video<MBFImage>
public MBFImage getCurrentFrame()
Video
getCurrentFrame
in class Video<MBFImage>
public int getWidth()
Video
public int getHeight()
Video
public long getTimeStamp()
Video
getTimeStamp
in class Video<MBFImage>
public boolean hasNextFrame()
Video
hasNextFrame
in class Video<MBFImage>
public long countFrames()
Video
countFrames
in class Video<MBFImage>