{ "title": "mediaplayer.basic", "description": "Generic media player", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/mediaplayer.basic", "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": "any.any", "attributes": { "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" ] } } }, "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" ] }, "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" ] } } }, "relatedAttributes": [ ] }, "setDestination": { "description": "Set devices that make the rendering of the medias", "parameters": { "destination" : { "description": "Addresses of the audio mixer and the display screen", "unit": "%", "direction": "inout", "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 } } }, "relatedAttributes": [ "destination" ] }, "play": { "description": "Play", "parameters": { }, "relatedAttributes": [ "activity" ] }, "pause": { "description": "Pause", "parameters": { }, "relatedAttributes": [ "activity" ] }, "stop": { "description": "Stop", "parameters": { }, "relatedAttributes": [ "activity" ] }, "next": { "description": "Next track", "parameters": { }, "relatedAttributes": [ "activity" ] }, "prev": { "description": "Previous track", "parameters": { }, "relatedAttributes": [ "activity" ] }, "ff": { "description": "Fast forward", "parameters": { }, "relatedAttributes": [ "activity" ] }, "rw": { "description": "Rewind", "parameters": { }, "relatedAttributes": [ "activity" ] } }, "notifications": { "attributesChange": { "description": "Destination or 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" ] } } } } } }