{ "title": "mediaplayer.basic", "version": 0.2, "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", "variables": { "destination" : { "description": "Addresses of the audio mixer and the 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": { "getDestination": { "description": "Get devices that make the rendering of the medias", "parameters": { "destination" : { "description": "Addresses of the audio mixer and the 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 } } }, "relatedVariables": [ ] }, "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 } } }, "relatedVariables": [ "destination" ] }, "play": { "description": "Play", "parameters": { }, "relatedVariables": [ "activity" ] }, "pause": { "description": "Pause", "parameters": { }, "relatedVariables": [ "activity" ] }, "stop": { "description": "Stop", "parameters": { }, "relatedVariables": [ "activity" ] }, "next": { "description": "Next track", "parameters": { }, "relatedVariables": [ "activity" ] }, "prev": { "description": "Previous track", "parameters": { }, "relatedVariables": [ "activity" ] }, "ff": { "description": "Fast forward", "parameters": { }, "relatedVariables": [ "activity" ] }, "rw": { "description": "Rewind", "parameters": { }, "relatedVariables": [ "activity" ] } }, "notifications": { "variablesChange": { "description": "Activity changed", "parameters": { "activity": { "description": "Activity of the player", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "enum": [ "play", "pause", "stop" ] } } } } } }