Skip to content

Commit

Permalink
Fix passing airPlayServiceMode option to startDiscovery().
Browse files Browse the repository at this point in the history
Add warning about changing this mode after discovery is started.
  • Loading branch information
Jason Lai committed Jun 24, 2014
1 parent 5ffbcd4 commit f85f653
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions www/ConnectSDK.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,10 @@ var DiscoveryManager = createClass(
if (config.pairingLevel) {
this._setPairingLevel(config.pairingLevel, false);
}

if (config.airPlayServiceMode) {
this._setAirPlayServiceMode(config.airPlayServiceMode, false);
}

if (config.capabilityFilters) {
this._setCapabilityFilters(config.capabilityFilters, false);
Expand Down Expand Up @@ -505,6 +509,9 @@ var DiscoveryManager = createClass(
* Set mode for AirPlay support. If set to ConnectSDK.AirPlayServiceMode.WebApp, a web app will
* will be mirrored to the TV. If set to ConnectSDK.AirPlayServiceMode.Media, only media
* APIs will be available. On Android, media mode is the only option.
*
* NOTE: This setting must be configured before calling startDiscovery(), or passed in the options
* parameter to startDiscovery(). The mode should not be changed once configured.
*/
setAirPlayServiceMode: function (mode) {
this._setAirPlayServiceMode(mode, true);
Expand Down

0 comments on commit f85f653

Please sign in to comment.