{ "title": "mediaplayer.spotify", "description": "A Spotify player", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/mediaplayer.spotify", "license": "Copyright Christophe Lohr Telecom Bretagne 2014 - Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.", "extends": "mediaplayer.basic", "attributes": { "url": { "description": "URL of the played media", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "format": "uri" } } }, "methods": { "getAttributes": { "description": "Retreive rendring devices and activity of the player", "parameters": { "attributes": { "description": "List of wanted attributes", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "enum": [ "destination", "activity", "url" ] }, "additionalItems": false } }, "destination" : { "description": "Addresses of the rendering devices (audio mixer and/or display screen)", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": [ { "description": "Audio mixer", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, { "description": "Display screen", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } ], "additionalItems": false } }, "activity": { "description": "Activity of the player", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "enum": [ "play", "pause", "stop" ] } }, "url": { "description": "URL of the played media", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "format": "uri" } } }, "relatedAttributes": [ ] }, "playUrl": { "description": "Play an URL", "parameters": { "url": { "description": "URL of the media to play", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "format": "uri" } } }, "relatedAttributes": [ "url" ] } }, "notifications": { "attributesChange": { "description": "Activity changed", "parameters": { "destination" : { "description": "Addresses of the rendering devices (audio mixer and/or display screen)", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": [ { "description": "Audio mixer", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, { "description": "Display screen", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } ], "additionalItems": false } }, "activity": { "description": "Activity of the player", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "enum": [ "play", "pause", "stop" ] } }, "url": { "description": "URL of the media to play", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "format": "uri" } } } } } }