INTERACT FORUM

Please login or register.

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

Author Topic: Zone Switch + Car Radio not working?  (Read 2040 times)

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Zone Switch + Car Radio not working?
« on: August 07, 2013, 06:26:43 am »

Set this up last night. Thanks 6233638, always said you were more than just a number!

It appeared to work, and work well, but sadly, not quite.

The video zone uses the rule [Media Type]=[Video], and then the reverse, -[Media Type]=[Video], to kick it back to the default zone if it's currently in Video.

All good so far...

I have a secondary roller here for Radio...


"Random Music" sends the following: C:\Windows\System32\MC19.exe /MCC 10047
"Car Radio" lists the contents of the "Car Radio" playlist group.

The common denominator here is "Car Radio", which is obviously sending Audio to Playing Now, but the zone does not switch. I'm hoping this is either a bug that can be fixed or a configuration error, and not 'by design'.

-marko

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Re: Zone Switch + Car Radio not working?
« Reply #1 on: August 08, 2013, 09:50:21 am »

Any thoughts regarding this?

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: Zone Switch + Car Radio not working?
« Reply #2 on: August 08, 2013, 10:21:51 am »

I haven't gotten to it yet, but it seems like a bug.

Maybe just add a link to this thread to your running list of bugs.

Thanks.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: Zone Switch + Car Radio not working?
« Reply #3 on: August 08, 2013, 04:45:45 pm »

This one is complicated.

A zone owns a Play Doctor object that builds playlists in a background thread.  Then it calls back with files.

Once the files get delivered, it's too late to engage zone switch because the Play Doctor is owned by the zone.

A work around for now would be to add the zone to your call:
MC19.exe "/MCWS/v1/Playback/PlayDoctor?Seed=Abba&Zone=Stereo&ZoneType=Name"

Logged
Matt Ashland, JRiver Media Center

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Re: Zone Switch + Car Radio not working?
« Reply #4 on: August 08, 2013, 05:42:48 pm »

I can try that. Thanks for looking.

My understanding was that MCC 10047 called a seedless prescription, using the settings currently in Playing Now. To that end, would:

MC19.exe "/MCWS/v1/Playback/PlayDoctor?Zone=Stereo&ZoneType=Name" give the same result?

The default zone is called "Player", I just left it like that. So am I entering Zone=Player&ZoneType=Name or Zone=Stereo&ZoneType=Player

Finally, is it possible to call the presets from the Playlist group in a similar fashion?

-marko

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: Zone Switch + Car Radio not working?
« Reply #5 on: August 08, 2013, 05:53:16 pm »

MC19.exe "/MCWS/v1/Playback/PlayDoctor?Zone=Stereo&ZoneType=Name" give the same result?

Perfect.
Logged
Matt Ashland, JRiver Media Center

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Re: Zone Switch + Car Radio not working?
« Reply #6 on: August 08, 2013, 08:06:34 pm »

Hard Work.

Is it possible to string these together?

MC19.exe "/MCWS/v1/Playback/SetZone?Zone=Player&ZoneType=Name"
MC19.exe "/MCWS/v1/Playback/PlayDoctor?Zone=Player&ZoneType=Name"

and is it possible to launch a saved playchart as a playchart?

I tried using
MC19.exe "/MCWS/v1/Playlist/Files?Playlist=Car Radio\04. Random 80's&PlaylistType=Path&Playdoctor=1&Action=play&ActiveFile=-1&Zone=Player&ZoneType=Name"

but it didn't honour the saved playchart's settings.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: Zone Switch + Car Radio not working?
« Reply #7 on: August 08, 2013, 08:09:02 pm »

Make a batch file if you want to run more than one thing.
Logged
Matt Ashland, JRiver Media Center

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Re: Zone Switch + Car Radio not working?
« Reply #8 on: August 08, 2013, 08:42:32 pm »

Code: [Select]
@echo off

MC19.exe "/MCWS/v1/Playback/Stop?Zone=-1&ZoneType=ID"
MC19.exe "/MCWS/v1/Playback/SetZone?Zone=Player&ZoneType=Name"
MC19.exe "/MCWS/v1/Playback/PlayDoctor?Zone=Player&ZoneType=Name"

OK, Seems to be working.
I've tried to be as self sufficient as possible, but can't get saved playcharts to work via MCWS. If I can nail that, this will do for me. The family won't see any difference in behaviour, except that movies will sound better, which is a good thing, and takes the urgency out of this little problem of mine.
I've gone through the MCWS docs but don't see anything jumping out at me.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Re: Zone Switch + Car Radio not working?
« Reply #9 on: October 18, 2014, 06:33:48 am »

Could someone shunt this to the main board so that metac can read it?
Pages: [1]   Go Up