transportCurrentMediaGet method
transportCurrentMediaGet
-> /v1/transport/{layer}/current
Requests the details of the currently playing content for the specified layer (presentation, announcement, audio).
PARAMETERS
layer
: The layer to perform the transport operation on
- Should be one of:
presentation
,announcement
,audio
RESPONSE 200:
The request was processed successfully.
content-type: application/json
schema:
{
"type": "object",
"required": [
"is_playing",
"uuid",
"name",
"artist",
"audio_only",
"length"
]
}
Implementation
Future<Map<String, dynamic>> transportCurrentMediaGet(String layer) async {
String url = '/v1/transport/$layer/current';
return await call('get', url, httpAccept: 'application/json');
}