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

조회 수: 4 (최근 30일)
Varuna De Silva
Varuna De Silva 2011년 5월 31일
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.

채택된 답변

Walter Roberson
Walter Roberson 2011년 5월 31일
system('winplayer &')
  댓글 수: 1
Varuna De Silva
Varuna De Silva 2011년 5월 31일
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" &' )

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by