INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MC11.exe needs DISCRETE PLAY and PAUSE commands.  (Read 1831 times)

slipknot

  • Galactic Citizen
  • ****
  • Posts: 255
MC11.exe needs DISCRETE PLAY and PAUSE commands.
« on: March 22, 2006, 09:41:15 am »

I have an extensive home automation system using a HomeVision controller.  When my phone rings, or the doorbell rings, my MediaCenter music stops automatically.  When the controller receives a phone or doorbell “event” it then sends out an IR command which my IRMan picks up and issues an MC11.exe STOP command.

I’d rather issue a PAUSE command, but what if MC is not running, then the PAUSE would START the music… Pause is better since it does not lose it's place in the playing track, so when I resume playback, it picks up right where it left off.  The STOP command stops playback, but when I restart, it starts the track over again.

For those of us that want to automate our homes and MC, we need discrete MC11.exe commands.

So will I suggest again that having an MC11.exe command that will PAUSE if the music is playing and will be ignored if the music is not playing is needed.  So is a PLAY command that will start playback if MC is stopped or paused, but will be ignored if MC is already playing.

I have the same need for a discreet PLAY command.  When I start up MediaCenter from a remote somewhere in the house, or on a schedule, the PLAY command is not guaranteed to start playback.  What if MediaCenter as already running and playing and a PLAY is issued?  It restarts the current track, when it would be so much better if it simply ignored the command since it's already playing.

DISCREET commands are available for lots of audio and video equipment, even if the remote that comes with the unit doesn’t have them.  My B&K surround sound processor has a separate ON and OFF buttons, making it easy to automate.  I sure wish MediaCenter would support automation better.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #1 on: March 22, 2006, 09:50:41 am »

This has actually been possible for a long time.  Give this a shot:
MC11.exe /MCC 10022,-1
Logged
Matt Ashland, JRiver Media Center

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72439
  • Where did I put my teeth?
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #2 on: March 22, 2006, 09:51:02 am »

Logged

slipknot

  • Galactic Citizen
  • ****
  • Posts: 255
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #3 on: March 22, 2006, 03:19:49 pm »

Thanks, I'll give it a shot tonight.
Logged

slipknot

  • Galactic Citizen
  • ****
  • Posts: 255
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #4 on: March 22, 2006, 03:52:15 pm »

This has actually been possible for a long time.  Give this a shot:
MC11.exe /MCC 10022,-1

Matt,

Looks like -1 toggles, what I'm looking for is a command that will force a PAUSE if MC is playing and will be ignored if MC is stopped or paused already.

MCC_SET_PAUSE,                                 // [BOOL bPause (-1 toggles)]

what else is valid other than -1  and what will those other values do?



What does this command do and what are the valid args?
MCC_PLAY_ADVANCED,       // [PLAY_COMMAND * pCommand (deleted by receiver)]

Thanks.

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #5 on: March 22, 2006, 03:54:51 pm »

0: unpause
1: pause
Logged
Matt Ashland, JRiver Media Center

slipknot

  • Galactic Citizen
  • ****
  • Posts: 255
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #6 on: March 22, 2006, 03:56:15 pm »

0: unpause
1: pause

Makes sense, thanks.  This is great to know.

What about PLAY, is there a way to issue a PLAY command that will be ignored if MC is already playing?

What does this command do and what are the valid args?
MCC_PLAY_ADVANCED,       // [PLAY_COMMAND * pCommand (deleted by receiver)]

Thanks
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #7 on: March 22, 2006, 04:14:33 pm »

There is no way to externally use commands that take complicated data types.
Logged
Matt Ashland, JRiver Media Center

slipknot

  • Galactic Citizen
  • ****
  • Posts: 255
Re: MC11.exe needs DISCRETE PLAY and PAUSE commands.
« Reply #8 on: March 22, 2006, 07:41:21 pm »

Thanks Matt, the PAUSE only if PLAYING works perfectly.
Logged
Pages: [1]   Go Up