Show video in App designers
30 vues (au cours des 30 derniers jours)
Le Dinh Minh Nhat le 25 Juin 2021
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;
vidFrame = readFrame(vidObj);
Thank you very much.
Mohammad Sami le 25 Juin 2021
Do you need to get the frames of the video for some reason. If not I propose you use uihtml to display the video instead.
The example on how to do this is available in the uihtml documentations here.