How to control/interface Windows media player with MATLAB?

조회 수: 7 (최근 30일)
shorya gupta
shorya gupta 2012년 1월 11일
My objective is to change the playlist in Windows media player using matlab, i.e., on a triggering signal output by a matlab code the playlist must change in windows media player. Is this kind of interfacing possible? If yes please guide me. I am using Matlab 7.10 and windows media player 11
P.S. the media player can be any conventional media player used in day to day life eg. vlc, itunes, foobar, mediamonkey, windows media player.

답변 (2개)

Chirag Gupta
Chirag Gupta 2012년 1월 11일
You can take a look at the Windows Media Player Object Model here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd563945(v=VS.85).aspx
Sample MATLAB code (and I'm no expert on WMedia Player)
actx = actxcontrol('WMPlayer.ocx.7'); % Create Controller
media = actx.newMedia('C:\Music\Sample.mp3'); % Create Media object
actx.CurrentMedia = media;
actx.Controls.play
You should be able to check other properties and configure it from the Microsoft document

Walter Roberson
Walter Roberson 2012년 1월 11일
You might be able to use activex . If not then you would have to use Java Robot Class.
  댓글 수: 1
shorya gupta
shorya gupta 2012년 1월 11일
I am sorry I am not aware of its programming could you please guide me how to go about it?

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

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by