Skip to content

Commit

Permalink
documented DeviceSettings platform implementation
Browse files Browse the repository at this point in the history
(cherry picked from commit 56ef292)
  • Loading branch information
jruzzi authored and anand-ky committed Oct 12, 2021
1 parent e695ee9 commit c05828b
Show file tree
Hide file tree
Showing 2 changed files with 499 additions and 96 deletions.
235 changes: 157 additions & 78 deletions PlayerInfo/PlayerInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,94 +7,173 @@
"description": "The `PlayerInfo` plugin helps to get system supported audio and video codecs"
},
"definitions": {
"audiocodecs": {
"description": "Audio Codec supported by the platform",
"type": "string",
"enum": [
"Undefined",
"AAC",
"AC3",
"AC3Plus",
"DTS",
"MPEG1",
"MPEG2",
"MPEG3",
"MPEG4",
"OPUS",
"VorbisOGG",
"WAV"
],
"enumvalues": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"example": "AudioAAC"
},
"videocodecs": {
"description": "Video Codec supported by the platform",
"type": "string",
"enum": [
"Undefined",
"H263",
"H264",
"H265",
"H26510",
"MPEG",
"VP8",
"VP9",
"VP10"
],
"enumvalues": [
0,
1,
2,
3,
4,
5,
6,
7,
8
],
"example": "VideoH264"
},
"codecs": {
"type": "object",
"result": {
"type":"object",
"properties": {
"audio": {
"type": "array",
"items": {
"$ref": "#/definitions/audiocodecs"
}
},
"video": {
"type": "array",
"items": {
"$ref": "#/definitions/videocodecs"
}
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"audio",
"video"
"success"
]
},
"success": {
"summary": "Whether the request succeeded",
"type": "boolean",
"example": "true"
}
},
"methods": {
"audiocodecs": {
"summary": "Returns the audio codec supported by the platform",
"result": {
"type":"array",
"items": {
"type": "string",
"enum": [
"AudioUndefined",
"AudioAac",
"AudioAc3",
"AudioAc3Plus",
"AudioDts",
"AudioMpeg1",
"AudioMpeg2",
"AudioMpeg3",
"AudioMpeg4",
"AudioOpus",
"AudioVorbisOgg",
"AudioWav"
],
"example": "AudioUndefined"
}
}
},
"videocodecs": {
"summary": "Returns the video codec supported by the platform",
"result": {
"type":"array",
"items": {
"type": "string",
"enum": [
"VideoUndefined",
"VideoH263",
"VideoH264",
"VideoH265",
"VideoH26510",
"VideoMpeg",
"VideoVp8",
"VideoVp9",
"VideoVp10"
],
"example": "VideoUndefined"
}
}
}
},
"properties": {
"playerinfo": {
"summary": "Player general information",
"resolution": {
"summary": "Current video playback resolution",
"readonly": true,
"params": {
"type": "string",
"enum": [
"ResolutionUnknown",
"Resolution480I",
"Resolution480P",
"Resolution576I",
"Resolution576P",
"Resolution720P",
"Resolution1080I",
"Resolution1080P",
"Resolution2160P30",
"Resolution2160P60"
],
"example": "ResolutionUnknown"
}
},
"isaudioequivalenceenabled": {
"summary": "Check for Loudness Equivalence in the platform",
"readonly": true,
"params": {
"$ref": "#/definitions/codecs"
"type": "boolean",
"example": false
}
},
"dolby_atmosmetadata":{
"summary": "Atmos capabilities of Sink",
"readonly": true,
"params": {
"type": "boolean",
"example": false
}
},
"dolby_soundmode":{
"summary": "Current sound mode",
"readonly": true,
"params": {
"type": "string",
"enum": [
"Unknown",
"Mono",
"Stereo",
"Surround",
"Passthru"
],
"example": "Unknown"
}
},
"dolby_enableatmosoutput":{
"summary": "Audio output enablement for Atmos",
"writeonly": true,
"params": {
"type": "boolean",
"example": false
}
},
"dolby_mode":{
"summary": "Dolby mode",
"params": {
"type": "string",
"enum": [
"DigitalPcm",
"DigitalPlus",
"DigitalAc3",
"Auto",
"Ms12"
],
"example": "DigitalPcm"
}
}
},
"events": {
"dolby_audiomodechanged": {
"summary": "Triggered after the audio sound mode changes",
"params": {
"type": "object",
"properties": {
"mode":{
"summary": "The sound mode",
"type": "string",
"enum": [
"Unknown",
"Mono",
"Stereo",
"Surround",
"Passthru"
],
"example": "Unknown"
},
"enable":{
"summary": "",
"type": "boolean",
"example": true
}
},
"required": [
"mode",
"enable"
]
}
}
}
Expand Down
Loading

0 comments on commit c05828b

Please sign in to comment.