MJZonesAutomation: Difference between revisions
Jump to navigation
Jump to search
Skeeterfood (talk | contribs) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Interface for working with multi-zone playback system. |
|||
Return to [[MJAutomation]] |
|||
==Functions== |
==Functions== |
||
===number GetNumberZones()=== |
===number GetNumberZones()=== |
||
Line 21: | Line 23: | ||
===MJZoneAutomation * GetZone(number nIndex) (requires MC 11.0.20 or later)=== |
===MJZoneAutomation * GetZone(number nIndex) (requires MC 11.0.20 or later)=== |
||
'''Description:''' gets a [[MJZoneAutomation]] interface for this zone (see below)<br> |
'''Description:''' gets a [[MJZoneAutomation]] interface for this zone (see below)<br> |
||
'''Return Value:''' |
'''Return Value:''' [[MJZoneAutomation]] interface |
||
===void SynchronizeZones(number nSource, number nDestination)=== |
===void SynchronizeZones(number nSource, number nDestination)=== |
||
Line 28: | Line 30: | ||
* '''nSource''': the master zone |
* '''nSource''': the master zone |
||
* '''nDestination''': the slave zone |
* '''nDestination''': the slave zone |
||
[[Category:COM Automation]] |
|||
[[Category:Zones]] |
Latest revision as of 05:36, 4 May 2015
Interface for working with multi-zone playback system.
Return to MJAutomation
Functions
number GetNumberZones()
Description: gets the total number of playback zones
Return Value: the number of playback zones
number GetActiveZone()
Description: gets the index of the active zone
Return Value: index of active zone
void SetActiveZone(number nIndex)
Description: sets the index of the active zone.
- nIndex: the zero based index of the new zone
string GetZoneName(number nIndex)
Description: gets the name of a given zone
Parameters:
- nIndex: the zero based index of the new zone
Return Value: the name of the zone
MJZoneAutomation * GetZone(number nIndex) (requires MC 11.0.20 or later)
Description: gets a MJZoneAutomation interface for this zone (see below)
Return Value: MJZoneAutomation interface
void SynchronizeZones(number nSource, number nDestination)
Description: attempts to have the two zones play the same content at the same time
Parameters:
- nSource: the master zone
- nDestination: the slave zone