forked from LibertyGlobal/rdkservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHdmiInput.json
449 lines (448 loc) · 15.4 KB
/
HdmiInput.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
{
"$schema": "https://raw.githubusercontent.com/rdkcentral/Thunder/master/Tools/JsonGenerator/schemas/interface.schema.json",
"jsonrpc": "2.0",
"info": {
"title": "HdmiInput API",
"class": "HdmiInput",
"description": "The `HdmiInput` plugin allows you to control the HDMI Input on a set-top box."
},
"definitions": {
"devices":{
"summary": "An object [] that describes each HDMI Input port",
"type":"array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/id"
},
"locator": {
"$ref": "#/definitions/locator"
},
"connected": {
"$ref": "#/definitions/connected"
}
},
"required": [
"id",
"locator",
"connected"
]
}
},
"id": {
"summary": "The port identifier for the HDMI Input",
"type": "number",
"example": 0
},
"locator": {
"summary": "A URL corresponding to the HDMI Input port",
"type": "string",
"example": "hdmiin://localhost/deviceid/0"
},
"connected": {
"summary": "Whether a device is currently connected to this HDMI Input port",
"type": "boolean",
"example": true
},
"portId":{
"summary": "An ID of an HDMI Input port as returned by the `getHdmiInputDevices` method",
"type": "string",
"example": "0"
},
"result": {
"type":"object",
"properties": {
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"success"
]
},
"success": {
"summary": "Whether the request succeeded",
"type": "boolean",
"example": "true"
}
},
"methods": {
"getHDMIInputDevices": {
"summary": "Returns an array of available HDMI Input ports.\n \n### Events\n \nNo Events.",
"result": {
"type": "object",
"properties": {
"devices": {
"$ref": "#/definitions/devices"
},
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"devices",
"success"
]
}
},
"getEdidVersion":{
"summary": "(Version 2) Returns the EDID version.\n \n### Events\n \nNo Events.",
"params": {
"type":"object",
"properties": {
"portId":{
"$ref": "#/definitions/portId"
}
},
"required": [
"portid"
]
},
"result": {
"type": "object",
"properties": {
"edidVersion": {
"summary": "The EDID version",
"type": "string",
"example": "HDMI2.0"
},
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"edidVersion",
"success"
]
}
},
"getHDMISPD": {
"summary": "(Version 2) Returns the Source Data Product Descriptor (SPD) infoFrame packet information for the specified HDMI Input device. The SPD infoFrame packet includes vendor name, product description, and source information.\n \n### Events\n \nNo Events.",
"params": {
"type":"object",
"properties": {
"portId":{
"$ref": "#/definitions/portId"
}
},
"required": [
"portid"
]
},
"result": {
"type": "object",
"properties": {
"HDMISPD": {
"summary": "The SPD information",
"type": "string",
"example": ""
},
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"HDMISPD",
"success"
]
}
},
"getRawHDMISPD":{
"summary": "(Version 2) Returns the Source Data Product Descriptor (SPD) infoFrame packet information for the specified HDMI Input device as raw bits.\n \n### Events\n \nNo Events.",
"params": {
"type":"object",
"properties": {
"portId":{
"$ref": "#/definitions/portId"
}
},
"required": [
"portId"
]
},
"result": {
"type": "object",
"properties": {
"HDMISPD": {
"summary": "The SPD information as raw bits",
"type": "string",
"example": ""
},
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"HDMISPD",
"success"
]
}
},
"readEDID":{
"summary": "Returns the current EDID value.\n \n### Events\n \nNo Events.",
"params": {
"type":"object",
"properties": {
"deviceId": {
"$ref": "#/definitions/id"
}
},
"required": [
"deviceId"
]
},
"result": {
"type": "object",
"properties": {
"EDID": {
"summary": "The EDID Value",
"type": "string",
"example": ""
},
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"EDID",
"success"
]
}
},
"startHdmiInput": {
"summary": "Activates the specified HDMI Input port as the primary video source.\n \n### Events \n| Event | Description | \n| :----------- | :----------- | \n| `onInputStatusChanged` | Triggers the event when HDMI Input source is activated and Input status changes to `started` | \n| `onSignalChanged` | Triggers the event when HDMI Input signal changes (must be one of the following:noSignal, unstableSignal, notSupportedSignal, stableSignal)",
"events": [
"onInputStatusChanged",
"onSignalChanged"
],
"params": {
"type":"object",
"properties": {
"portId":{
"$ref": "#/definitions/portId"
}
},
"required": [
"portid"
]
},
"result": {
"$ref": "#/definitions/result"
}
},
"stopHdmiInput": {
"summary": "Deactivates the HDMI Input port currently selected as the primary video source.\n \n### Events \n| Event | Description | \n| :----------- | :----------- | \n| `onInputStatusChanged` | Triggers the event when HDMI Input source is deactivated and Input status changes to `stopped`",
"events": [
"onInputStatusChanged"
],
"result": {
"type": "object",
"properties": {
"success": {
"$ref": "#/definitions/success"
}
},
"required": [
"success"
]
}
},
"setEdidVersion": {
"summary": "(Version 2) Sets an HDMI EDID version.\n \n### Events\n \nNo Events.",
"params": {
"type":"object",
"properties": {
"portId":{
"$ref": "#/definitions/portId"
},
"edidVersion":{
"summary": "The EDID version",
"type": "string",
"example": "HDMI2.0"
}
},
"required": [
"portId",
"edidVersion"
]
},
"result": {
"$ref": "#/definitions/result"
}
},
"setVideoRectangle": {
"summary": "Sets an HDMI Input video window.\n \n### Events\n \nNo Events.",
"params": {
"type":"object",
"properties": {
"x":{
"summary": "The x-coordinate of the video rectangle",
"type": "integer",
"example": 0
},
"y":{
"summary": "The y-coordinate of the video rectangle",
"type": "integer",
"example": 0
},
"w":{
"summary": "The width of the video rectangle",
"type": "integer",
"example": 1920
},
"h":{
"summary": "The height of the video rectangle",
"type": "integer",
"example": 1080
}
},
"required": [
"x",
"y",
"w",
"h" ]
},
"result": {
"$ref": "#/definitions/result"
}
},
"writeEDID": {
"summary": "Changes a current EDID value.\n \n### Events\n \nNo Events.",
"params": {
"type":"object",
"properties": {
"deviceId":{
"summary": "The ID of an input device for which the EDID should be changed",
"type": "number",
"example": 0
},
"message":{
"summary": "A new EDID value",
"type": "string",
"example": "EDID"
}
},
"required": [
"deviceId",
"message"
]
},
"result": {
"$ref": "#/definitions/result"
}
}
},
"events": {
"onDevicesChanged": {
"summary": "Triggered whenever a new HDMI device is connected to an HDMI Input",
"params": {
"type":"object",
"properties": {
"devices":{
"$ref": "#/definitions/devices"
}
},
"required": [
"devices"
]
}
},
"onInputStatusChanged": {
"summary": "Triggered whenever the status changes for an HDMI Input",
"params": {
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/id"
},
"locator": {
"$ref": "#/definitions/locator"
},
"status": {
"summary": "Status of the HDMI Input. Valid values are `started` or `stopped`.",
"type": "string",
"example": "started"
}
},
"required": [
"id",
"locator",
"status"
]
}
},
"onSignalChanged": {
"summary": "Triggered whenever the signal status changes for an HDMI Input",
"params": {
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/id"
},
"locator": {
"$ref": "#/definitions/locator"
},
"signalStatus": {
"summary": "Signal Status of the HDMI Input. Valid values are `noSignal`, `unstableSignal`, `notSupportedSignal`, `stableSignal`.",
"type": "string",
"example": "stableSignal"
}
},
"required": [
"id",
"locator",
"signalStatus"
]
}
},
"videoStreamInfoUpdate": {
"summary": "Triggered whenever there is an update in HDMI Input video stream info",
"params": {
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/id"
},
"locator": {
"$ref": "#/definitions/locator"
},
"width": {
"summary": "Width of the Video Stream",
"type": "integer",
"example": 3840
},
"height": {
"summary": "Height of the Video Stream",
"type": "integer",
"example": 2160
},
"progressive": {
"summary": "Whether the streaming video is progressive or not?",
"type": "boolean",
"example": "true"
},
"frameRateN": {
"summary": "FrameRate Numerator",
"type": "integer",
"example": 60000
},
"frameRateD": {
"summary": "FrameRate Denomirator",
"type": "integer",
"example": 1001
}
},
"required": [
"id",
"locator",
"width",
"height",
"progressive",
"frameRateN",
"frameRateD"
]
}
}
}
}