open URL in Media Player

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

Respuestas (2)

Kaustubha Govind
Kaustubha Govind el 8 de Jun. de 2011

0 votos

Have you tried using the OPEN command?

1 comentario

Vaibhav
Vaibhav el 8 de Jun. de 2011
open command only allows to open the file or program in specified path. Its not working for inserting a URL.

Iniciar sesión para comentar.

Fangjun Jiang
Fangjun Jiang el 8 de Jun. de 2011

0 votos

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 comentarios

Vaibhav
Vaibhav el 8 de Jun. de 2011
No, it's not working.
Fangjun Jiang
Fangjun Jiang el 8 de Jun. de 2011
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')

Iniciar sesión para comentar.

Categorías

Más información sobre Filename Construction en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Jun. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by