The following methods are available for media :
- Coming soon
get.list.media
Syntax
{"jsonrpc":"2.0","method":"get.list.media", "id": 1}
Indented display
{
"jsonrpc": "2.0",
"method": "get.list.media",
"id": 1
}
Returns
Returns the complete list of media with the following properties:
Property | Description |
---|---|
extension | File extension of the media |
fileName | Complete path of the media on the disk drive |
folder | Path to the folder containing the media |
info | Various information on the media |
lastModified | Timestamp of the last modification on the file |
name | Local Path in project folder for the media |
objectType | For this method, this field contains media |
shortname | Contains only the name of the media with its extension |
size | Size of the media (In bytes) |
type | Indication of the type of media |
uiColor | Color assigned to the media |
uuid | uuid of the media |
set.property.media
Syntax
Change Simple Text
{"jsonrpc":"2.0","method":"set.property.media","params":{"name":"[TEXT NAME OR UUID]","property":"text","value":"[TEXT TO INSERT]"}, "id": 1}
Indented display
{
"jsonrpc": "2.0",
"method": "set.property.media",
"params": {
"name": "[TEXT NAME OR UUID]",
"property": "text",
"value": "[TEXT TO INSERT]"
},
"id": 1
}
Change Color of a Solid
{"jsonrpc":"2.0","method":"set.property.media","params":{"name":"[SOLID NAME OR UUID]","property":"color","value":"#0099ff"}, "id": 1}
Indented display
{
"jsonrpc": "2.0",
"method": "set.property.media",
"params": {
"name": "[SOLID NAME OR UUID]",
"property": "color",
"value": "#0099ff"
},
"id": 1
}
Parameters
Parameter | Description |
---|---|
name | Name or uuid of Simple Text or Solid |
property | Set to text for Simple Text or color for Solid |
value | Use a string to set a text or a hex color to set a color |
Need more help with this?
Don’t hesitate to contact us here.