Difference between revisions of "Developer:KazooIntegrationOnIos"

From LinnDocs
Jump to: navigation, search
(URL Specification)
(Examples)
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
= Introduction =
 
= Introduction =
  
This article describes how developers of integration controller apps on iOS can provide full integration for customers with Linn systems.
+
This article describes how developers of control apps on iOS can provide full integration for customers with Linn systems.
  
A 3rd party controller app can provide control of a Linn system using the OpenHome Media specification. However for the best customer experience, we would recommend using the iOS custom URL scheme specified in this document to allow a user to launch Kazoo. Once inside Kazoo the user can return to the controller app by clicking the back button an the top of the screen. The back button is only visible when Kazoo is launched using the iOS custom URL scheme.
+
A 3rd party control app can provide control of a Linn system using the [http://wiki.openhome.org/wiki/OhMedia OpenHome Media specification] (ohMedia). For full ohMedia support a developer would need to invest a significant amount of time and resource, so Kazoo has been designed integrate seamlessly with other apps. This is done using the iOS custom URL scheme specified in this document. Once Kazoo has been launched, via a custom URL scheme, the user can return to the controller app by clicking the back button at the top of the screen.
 +
 
 +
The back button is only visible when Kazoo is launched using a custom URL scheme.
  
 
= URL Specification =
 
= URL Specification =
Line 23: Line 25:
 
| || room || Room to be select on launch of Kazoo (optional)
 
| || room || Room to be select on launch of Kazoo (optional)
 
|-
 
|-
| || server || Media server to be select on launch of Kazoo (optional)
+
| || server || Media server udn to be selected on launch of Kazoo (optional)
 
|-
 
|-
| || select || Name of UI screen to select (optional)<br>home, music, radio, multi room etc
+
| || select || Name of UI screen to select (optional)<br>home, music, radio, tidal, multiroom, inputs
 
|-
 
|-
 
| || location || Location to browse to in the selected UI screen (optional)
 
| || location || Location to browse to in the selected UI screen (optional)
 +
|-
 +
| || view || View to select on launch of Kazoo (optional)<br>none or fullscreenheaderinfo
 
|}
 
|}
  
All query key values must be escaped to be used in a URL.
+
If any of the optional keys are not specified Kazoo will default where the user was last time that Kazoo was launched.
 +
 
 +
Note: All query key values must be escaped to be used in a URL.
  
Note that query keys "select" and "location" do not work as expect in Kazoo 4.1.504.
+
Note: Kazoo 4.1.504 does not implement the query keys "select" and "location" but subsequent Kazoo releases will.
  
 
== Examples ==
 
== Examples ==
  
To open Kazoo and enable a user to return to a fictional controller app, "Integrater App", with a URL scheme, integrater, you would use the following Kazoo URL scheme,
+
To open Kazoo and enable a user to return to a fictional controller app, "Integrater App", with a URL scheme, integrater, you would use the following Kazoo URL scheme, (The "?backButton" & ""returnUrl" must be present to select Rooms etc),
  
kazoo://launch?backButton=Integrator App&returnUrl=integrator://
+
<pre>kazoo://launch?backButton=Integrator App&returnUrl=integrator://</pre>
  
 
A particular room can be selected, as follows,
 
A particular room can be selected, as follows,
  
kazoo://launch?backButton=Integrator App&returnUrl=integrator://&room=Sitting Room
+
<pre>kazoo://launch?backButton=Integrator App&returnUrl=integrator://&room=Sitting Room</pre>
  
 
Starting in the radio station selection screen, as follow,
 
Starting in the radio station selection screen, as follow,
  
kazoo://launch?backButton=Integrator App&returnUrl=integrator://&room=Sitting Room&select=radio
+
<pre>kazoo://launch?backButton=Integrator App&returnUrl=integrator://&room=Sitting Room&select=radio</pre>
  
 
A particular server in the "Album" container can be selected, as follows,
 
A particular server in the "Album" container can be selected, as follows,
  
kazoo://launch?backButton=Integrator App&returnUrl=integrator://&room=Sitting Room&server=Media Library&select=music&location=/Album
+
<pre>kazoo://launch?
 +
backButton=Integrator App&returnUrl=integrator://&room=Sitting Room&server=Media Server Udn&select=music&location=/Album</pre>

Latest revision as of 14:27, 10 January 2017

Introduction

This article describes how developers of control apps on iOS can provide full integration for customers with Linn systems.

A 3rd party control app can provide control of a Linn system using the OpenHome Media specification (ohMedia). For full ohMedia support a developer would need to invest a significant amount of time and resource, so Kazoo has been designed integrate seamlessly with other apps. This is done using the iOS custom URL scheme specified in this document. Once Kazoo has been launched, via a custom URL scheme, the user can return to the controller app by clicking the back button at the top of the screen.

The back button is only visible when Kazoo is launched using a custom URL scheme.

URL Specification

The table below to construct a custom URL to launch Kazoo.

scheme kazoo Launch Kazoo
host launch Add a back button
query keys title Title to be shown in title bar (optional)
backButton Text to be shown in back button
returnUrl URL to launch or re-open controller app
room Room to be select on launch of Kazoo (optional)
server Media server udn to be selected on launch of Kazoo (optional)
select Name of UI screen to select (optional)
home, music, radio, tidal, multiroom, inputs
location Location to browse to in the selected UI screen (optional)
view View to select on launch of Kazoo (optional)
none or fullscreenheaderinfo

If any of the optional keys are not specified Kazoo will default where the user was last time that Kazoo was launched.

Note: All query key values must be escaped to be used in a URL.

Note: Kazoo 4.1.504 does not implement the query keys "select" and "location" but subsequent Kazoo releases will.

Examples

To open Kazoo and enable a user to return to a fictional controller app, "Integrater App", with a URL scheme, integrater, you would use the following Kazoo URL scheme, (The "?backButton" & ""returnUrl" must be present to select Rooms etc),

kazoo://launch?backButton=Integrator App&returnUrl=integrator://

A particular room can be selected, as follows,

kazoo://launch?backButton=Integrator App&returnUrl=integrator://&room=Sitting Room

Starting in the radio station selection screen, as follow,

kazoo://launch?backButton=Integrator App&returnUrl=integrator://&room=Sitting Room&select=radio

A particular server in the "Album" container can be selected, as follows,

kazoo://launch?
backButton=Integrator App&returnUrl=integrator://&room=Sitting Room&server=Media Server Udn&select=music&location=/Album