open URL in Media Player
古いコメントを表示
How to open a URL in Windows Media Player directly from Matlab? Can it be possible with system() ?
回答 (2 件)
Fangjun Jiang
2011 年 6 月 8 日
You should be able to use system(). You just need to specify the full path of your wmplayer.exe. I tried below and the latter worked. I believe you can use URL to replace the file in my example.
>> system('wmplayer')
'wmplayer' is not recognized as an internal or external command,
operable program or batch file.
ans =
1
>> system('C:\WINDOWS\system32\dllcache\wmplayer c:\MyMusic\title.wma')
ans =
0
2 件のコメント
Vaibhav
2011 年 6 月 8 日
Fangjun Jiang
2011 年 6 月 8 日
It worked for me. You need to find the full path of your wmplayer.exe
system('C:\WINDOWS\system32\dllcache\wmplayer http://www.satelitemusical.net/mj-akon-hold-my-hand.wma')
カテゴリ
ヘルプ センター および File Exchange で Filename Construction についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!