End-of-file status (logical)
returns a logical value indicating that the
status = isDone(
videoFReader , has reached the end of the multimedia file after
PlayCount number of times. After the
object plays the file the number of times set by the
PlayCount property, it sets the status to
Read and Play a Video File
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.
status — Status of reader file
Status of reader file, returned as
Introduced in R2012a