Show video in App designers
Show older comments
Hi, I read a lot of answer how to show video in App designer. I want to show it in UI Figure not popup a new figure.

Would you mind have a look to my code and give me some suggestions ?
% Callbacks that handle component events
methods (Access = private)
% Image clicked function: Image
function ImageClicked(app, event)
vidObj = VideoReader('testvideo.mp4');
vidObj.CurrentTime = 0;
while hasFrame(vidObj)
vidFrame = readFrame(vidObj);
image(vidFrame, "Visible","on")
%imshow(vidFrame, "Parent",ax);
pause(0.01);
end
end
end
Thank you very much.
Accepted Answer
More Answers (1)
evaydh
on 27 Jun 2022
0 votes
Try using uiimage to play video and timer to control video playback. Don't worry. Mainstream computer configurations are sufficient.
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!