How to open an .avi file and get the control back

7 vues (au cours des 30 derniers jours)
Varuna De Silva
Varuna De Silva le 31 Mai 2011
Hello all,
For a project of mine, I need to open a file with windows media player (not mmplayer) and then once it starts playing, I need to do some other tasks in matlab.
I tried with the System() command but it does not return the control until it is finish playing.
Is there any way that I can work around this. Any help is much appreciated.
- Thanks in advance for your help.

Réponse acceptée

Walter Roberson
Walter Roberson le 31 Mai 2011
system('winplayer &')
  1 commentaire
Varuna De Silva
Varuna De Silva le 31 Mai 2011
Thanks alot this worked for me. In fact the command looked like this,
system('"C:\Program Files\Windows Media Player\wmplayer.exe" /open "C:\Documents and Settings\dd00028\My Documents\My Videos\Interview2.wmv" &' )

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by