R5905948 /12 Event Master Devices 563
"method":"3dControl", "id":"1234", "jsonrpc":"2.0"}
changeContent
• Definition:
- This API changes the content of a screen destination by putting background and layers in it.
• Request:
- params: {"id":0,"BGLyr":[{"id":0,"LastBGSourceIndex":0,"BGShowMatte":0,
"BGColor":[{"id":0,"Red":0,"Green":0,"Blue":0}]},{"id":1,
"LastBGSourceIndex":0,"BGShowMatte":0,"BGColor":
[{"id":0,"Red":0,"Green":0,"Blue":0}]}],"Layers":
[{"id":0,"LastSrcIdx":0,"Window":
{"HPos":0,"VPos":0,"HSize":400,"VSize":300},
"Source":{"HPos":0,"VPos":0,"HSize":1920,"VSize":1080}, "Mask":
{ "Left":0.01, "Right":10.1, "Top":0.0,"Bottom":0.0},"PvwMode":1,"PgmMode":0,
"Freeze":0,"PgmZOrder":0,"PvwZOrder":0}]}
◦ id—Screen destination index.
◦ BGLyr—Background layer index, Last source index of background.
“id”:0 affects the Background in Program. “id”:1 affects the Background in Preview.
◦ Layers—Layer information.
◦ Window—Layer window size.
◦ Source—Source info and size.
◦ Mask—Crop the visible part of the layer.
◦ PvwMode—Set 1 if you want the content in preview. (Default)
◦ PgmMode—Set 1 if you want the content in program.
• Response:
- response: null
- success: (0=success, anything else is an error)
• Example:
- {"params":{"id":0,"BGLyr":[{"id":0,"LastBGSourceIndex":0,"BGShowMatte":0,
"BGColor":[{"id":0,"Red":0,"Green":0,"Blue":0}]},{"id":1,
"LastBGSourceIndex":0,"BGShowMatte":0,"BGColor":[{"id":0,"Red":0,
"Green":0,"Blue":0}]}],"Layers":[{"id":0,"LastSrcIdx":0,
"Window":{"HPos":0,"VPos":0,"HSize":400,"VSize":300},
"Source":{"HPos":0,"VPos":0,"HSize":1920,"VSize":1080},
"Mask":{ "Left":0.01, "Right":10.1, "Top":0.0,"Bottom":0.0},
"PvwMode":1,"PgmMode":0,"Freeze":0,"PgmZOrder":0,"PvwZOrder":0}]},
"method":"changeContent", "id":"1234", "jsonrpc":"2.0"}.
- {"params":{"id":0, "TestPattern" :5 }, "method":"changeContent", "id":"1234",
"jsonrpc":"2.0"}
freezeDestSource
• Definition:
- This API Freezes/Unfreezes the sources.
• Request:
- params: {"type": x, "id": y, "screengroup": z ,"mode": 0/1}
◦ type—type of source.
◦ 0—Input source.
◦ 1—Background source.
◦ 2—ScreenDestination.
◦ 3—AuxDestination.
◦ id—Index of the source.
- Screengroup—For future use. Always set to 0.
- Mode—0 : UnFreeze, 1 : Freeze.
Remote Control Protocol