Experiment to rebuild Diffuse using web applets.
at main 1.3 kB view raw
1{ 2 "name": "diffuse/engine/queue", 3 "title": "Diffuse Queue", 4 "entrypoint": "index.html", 5 "actions": { 6 "add": { 7 "title": "Add", 8 "description": "Add tracks to the queue.", 9 "params_schema": { 10 "type": "array", 11 "description": "Array of tracks", 12 "items": { 13 "type": "object", 14 "properties": { 15 "id": { "type": "string" }, 16 "uri": { "type": "string" } 17 }, 18 "required": ["id", "uri"] 19 } 20 } 21 }, 22 "pool": { 23 "title": "Pool", 24 "description": "Set the queue pool.", 25 "params_schema": { 26 "type": "array", 27 "description": "Array of tracks", 28 "items": { 29 "type": "object", 30 "properties": { 31 "id": { "type": "string" }, 32 "uri": { "type": "string" } 33 }, 34 "required": ["id", "uri"] 35 } 36 } 37 }, 38 "shift": { 39 "title": "Shift", 40 "description": "Shift the queue, picking the first item from the up next array and putting the currently playing item into the history list." 41 }, 42 "unshift": { 43 "title": "Unshift", 44 "description": "Unshift the queue, going backwards in time, picking the last item from the history array and putting the currently playing item into the up next list." 45 } 46 } 47}