How can I play a Windows media file using the appropriate activex control in my GUI in MATLAB

4 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
To play a movie in the activex control, the URL method of the activex control can be used.
The attached example has a GUI with a windows media player activex embedded. A push button in the GUI, when pushed, plays a file in the media player.
To achieve this, in the push button's callback, the following lines have been added:
handles.activex1.URL = 'testmovie.wma';
Here testmovie.wma is any movie file that a user is interested in playing.

更多回答(0 个)

产品


版本

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by