open URL in Media Player

How to open a URL in Windows Media Player directly from Matlab? Can it be possible with system() ?

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2011년 6월 8일

0 개 추천

Have you tried using the OPEN command?

댓글 수: 1

Vaibhav
Vaibhav 2011년 6월 8일
open command only allows to open the file or program in specified path. Its not working for inserting a URL.

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

Fangjun Jiang
Fangjun Jiang 2011년 6월 8일

0 개 추천

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
Vaibhav 2011년 6월 8일
No, it's not working.
Fangjun Jiang
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에 대해 자세히 알아보기

태그

질문:

2011년 6월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by