How to save videos in a MATLAB standalone application?

I am trying to build a standalone application using MATLAB App Designer. In that, I want to play videos according to the given instructions or keywords. Those videos are saved on my desktop. How should I proceed in building the standalone application so that to play these videos after installing the application on any other target desktop system (without having/saving the videos on the target system)?
Can anyone suggest some way out?
Feel free to comment if my query is not clear

 Akzeptierte Antwort

Voss
Voss am 5 Jun. 2024
Bearbeitet: Voss am 5 Jun. 2024

1 Stimme

In Application Compiler, you can add the videos to the project in the "Files required for your application to run" section.

4 Kommentare

Thank you for your reply. Now, the problem I am facing is "how to access the saved videos after saving it in Files required for your application to run". My videos files are in .avi format.
You can put them in the same directory as your mlapp file, add them to the compiler project in the "Files required for your application to run" section, and in your code just refer to them by name as if they are located in the current directory, e.g.:
v = VideoReader('video1.avi');
That should work whether you are running the mlapp or the exe. The end users won't see the files on their systems because they are embedded in the exe.
Thank you so much for the answer and all the clarifications.
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 5 Jun. 2024

Kommentiert:

am 7 Jun. 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by