More > JRiver Media Center 33 for Windows
Can't get MCC Command MCC_PLAY_PAUSE to only work for a specific Zone
datdude:
I may be misunderstanding how the MCC Commands works with parameters and zones. Whenever I use the MCC_PLAY_PAUSE command using the syntax of 1000,0:0 to ONLY play or pause zone 0, if I am currently viewing a different zone via the GUI (either standard view or theater view), such as zone 1, that command will play/pause zone 1 instead of zone 0. I'm clearly doing something wrong. Can anyone help with this?
Thanks!
Matt:
The notes in MCCommands.h might help about issuing to a specific zone:
--- Code: --- ///////////////////////////////////////////////////////////////////////////////
// Playback (range 10,000 to 20,000)
//
// To issue playback commands to a specific zone, mask these values with the parameter:
// Current Zone: 0
// Zone Index 0: 16777216 (or 0x1000000 hex)
// Zone Index 1: 33554432 (or 0x2000000 hex)
// Zone Index 2: 50331648 (or 0x3000000 hex)
// Zone Index 3: 67108864 (or 0x4000000 hex)
// Zone Index 4: 83886080 (or 0x5000000 hex)
// Zone Index 5: 100663296 (or 0x6000000 hex)
// etc... (keep adding 16777216 (or 2^24)) (up to Zone Index 31)
//
// for the geeks, this is the top 6 bits of the 32-bit parameter
// the lower 24 bits are used for the rest of the parameter (see the C++ macros below if you like)
// if bit 32 is set, we assume someone passed in a simple negative number, so discard the zone portion
//
// for parameters >= 0: zone number + parameter
// for parameters < 0: zone number + (16777216 + parameter)
// example: parameter -1 to zone 3: 67108864 + (16777216 + -1) = 83886079
///////////////////////////////////////////////////////////////////////////////
--- End code ---
zybex:
Matt, how to differentiate between "current zone" and "zone 0" using the new syntax (MCC code,arg:zone) ?
The documentation is not clear on that - zones are 0-based, but 0 is also the "default zone"...
ZoneOld syntaxNew syntaxdefault mc33 /MCC 10000,0 mc33 /MCC 10000,0:00 mc33 /MCC 10000,16777216 mc33 /MCC 10000,0:01 mc33 /MCC 10000,33554432 mc33 /MCC 10000,0:1
Matt:
It's using the zone index value. 0 is the first index. To target that zone, use 0x1000000 hex.
It's the order the zones are returned from the MCWS Playback/Zones command.
We could add a function to return the zone index from a zone ID if people would find it useful.
zybex:
So that explains the OP's issue, I think.
MCC 10000,0:0 - applies to default/current zone
MCC 10000,0:1 - applies to zone 0 (the first zone)
These are then the correct values?
ZoneOld syntaxNew syntaxcurrent mc33 /MCC 10000,0 mc33 /MCC 10000,0:00 mc33 /MCC 10000,16777216 mc33 /MCC 10000,0:11 mc33 /MCC 10000,33554432 mc33 /MCC 10000,0:2
Navigation
[0] Message Index
[#] Next page
Go to full version