Main Content

isDone

End-of-file status (logical)

Description

status = isDone(videoFReader) returns a logical value indicating that the VideoFileReader System object™ videoFReader , has reached the end of the multimedia file after playing it PlayCount number of times. After the object plays the file the number of times set by the PlayCount property, it sets the status to true.

example

Examples

collapse all

Load the video using a video reader object.

vidReader = VideoReader('ecolicells.avi');

Create a video player object to play the video file.

videoPlayer = vision.VideoPlayer;

Use a while loop to read and play the video frames. Pause for 0.1 seconds after displaying each frame.

while hasFrame(vidReader)
    videoFrame = readFrame(vidReader);
    videoPlayer(videoFrame);
    pause(0.1)
end

Release the objects.

release(videoPlayer);

Input Arguments

collapse all

Video file reader, specified as a vision.VideoFileReader System object.

Output Arguments

collapse all

Status of reader file, returned as true or false.

Version History

Introduced in R2012a