This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Michael Zanetti 015d09432b Simplify and extend media interfaces
Merges the basic and extended variants into one using the optional entries.
2020-12-17 00:14:11 +01:00

36 lines
1.1 KiB
JSON

{
"description": "Media player interface. Used by devices/services which can play back media. Even if a device only supports e.g. audio, the playerType state must still be added to the metadata. It may default to a single value and never change in this case. Players supporting duration and play time should provide those values in seconds.",
"extends": "media",
"states": [
{
"name": "playbackStatus",
"type": "QString",
"allowedValues": ["Playing", "Paused", "Stopped"]
},
{
"name": "playerType",
"type": "QString",
"allowedValues": ["audio", "video"]
},
{
"name": "inputSource",
"type": "QString",
"allowedValues": "any",
"writable": true,
"optional": true
},
{
"name": "playDuration",
"type": "uint",
"unit": "Seconds",
"optional": true
},
{
"name": "playTime",
"type": "uint",
"unit": "Seconds",
"optional": true
}
]
}