The CasaTunes iPhone and iPad Apps (iOS Apps) enable launching the CasaTunes App from a 3rd party iOS control App and returning control back to the iOS control App without requiring users to manually switch between applications.
This seamless integration is a great advantage to homeowners and integrators, as it allows them to pick and choose the best home automation and whole house music control solutions available.
This integration is made possible by application developers who implement support for custom URL schemes in their applications. The concept of a custom URL scheme is analogous to launching an application from the command line and specifying various optional startup parameters.
In order for a control App to launch the CasaTunes App, the control App must implement support for entering 3rd party url schemes. Today, there are many control Apps that can launch other Apps, including those from Bitwise Controls, CommandFusion, OnControls, and Roomie.
When CasaTunes is launched from another iOS App, iOS displays a back arrow and the name of the control App that launched CasaTunes in the top left hand corner of the iOS device. Touching the back arrow returns control back to the original control App that launched the CasaTunes App.
The CasaTunes custom URL scheme is defined as follows:
casatunes://?key1=value1&key2=value2&key3=value3
The following optional parameters can be specified:
casatunes://?power=on&room=office&source=1&volume=40
Start the CasaTunes App and select the Office, power on the room, switch the source to the second source (zero based), and set the volume level to 40.
casatunes://?power=on&room=office&source=1&volume=40&backURL=bwtouch://&timeout=30
Start the CasaTunes App and select the Office, power on the room, switch the source to the second source (zero based), and set the volume level to 40. After 30 seconds on inactivity, return control back to the BitWise control App (whose url scheme is bwtouch://)