Difference between revisions of "Attached Data Examples"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 15: | Line 15: | ||
<syntaxhighlight lang="json">  | <syntaxhighlight lang="json">  | ||
{  | {  | ||
| + |     "data": null  | ||
| + | }  | ||
| + | </syntaxhighlight>  | ||
| + | |-  | ||
| + | |  | ||
| + | <code>execute:code:{URL}</code><br/>  | ||
| + | <code>player:commit:code</code><br/>  | ||
| + | <code>interaction:commit:code</code><br/>  | ||
| + | |  | ||
| + | <syntaxhighlight lang="json">  | ||
| + | {  | ||
| + |     "code": "1234",  | ||
| + |     "data": null  | ||
| + | }  | ||
| + | </syntaxhighlight>  | ||
| + | |-  | ||
| + | |  | ||
| + | <code>execute:video:{URL}</code><br/>  | ||
| + | <code>player:commit:video</code><br/>  | ||
| + | <code>interaction:commit:video</code><br/>  | ||
| + | |  | ||
| + | <syntaxhighlight lang="json">  | ||
| + | {  | ||
| + |     "video": {  | ||
| + |         "info": {  | ||
| + |             "id": null,  | ||
| + |             "index": 0,  | ||
| + |             "number": 1,  | ||
| + |             "count": 3,  | ||
| + |             "listIndex": 0,  | ||
| + |             "listSize": 3,  | ||
| + |             "type": "video",  | ||
| + |             "url": "http://msx.benzac.de/media/video1.mp4",  | ||
| + |             "label": "Video 1",  | ||
| + |             "background": null,  | ||
| + |             "customLabel": null,  | ||
| + |             "customBackground": null,  | ||
| + |             "properties": null  | ||
| + |         },  | ||
| + |         "data": {  | ||
| + |             "state": 2,  | ||
| + |             "position": 4,  | ||
| + |             "duration": 118,  | ||
| + |             "speed": 1,  | ||
| + |             "ended": false  | ||
| + |         },  | ||
| + |         "resume": {  | ||
| + |             "key": null,  | ||
| + |             "count": 10,  | ||
| + |             "resuming": false,  | ||
| + |             "position": null,  | ||
| + |             "progress": -1  | ||
| + |         },  | ||
| + |         "volume": {  | ||
| + |             "type": "player",  | ||
| + |             "level": 100,  | ||
| + |             "muted": false  | ||
| + |         },  | ||
| + |         "scene": "foreground"  | ||
| + |     },  | ||
     "data": null  |      "data": null  | ||
}  | }  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
|}  | |}  | ||
Revision as of 11:50, 14 January 2021
These are examples of the attached data that is sent/committed to the server/plugin for specific execute/commit actions. They are only valid for version 0.1.125+. Please ensure that you are using the correct version, because the syntax in previous versions can be different. For more information about the execute/commit actions, please see Internal Actions.
Note: Please note that no action-related data property is used for all examples. Therefore, the sent/committed data property is always null.
| Action Example | Data Example | 
|---|---|
| 
 
  | 
{
    "data": null
}
 | 
| 
 
  | 
{
    "code": "1234",
    "data": null
}
 | 
| 
 
  | 
{
    "video": {
        "info": {
            "id": null,
            "index": 0,
            "number": 1,
            "count": 3,
            "listIndex": 0,
            "listSize": 3,
            "type": "video",
            "url": "http://msx.benzac.de/media/video1.mp4",
            "label": "Video 1",
            "background": null,
            "customLabel": null,
            "customBackground": null,
            "properties": null
        },
        "data": {
            "state": 2,
            "position": 4,
            "duration": 118,
            "speed": 1,
            "ended": false
        },
        "resume": {
            "key": null,
            "count": 10,
            "resuming": false,
            "position": null,
            "progress": -1
        },
        "volume": {
            "type": "player",
            "level": 100,
            "muted": false
        },
        "scene": "foreground"
    },
    "data": null
}
 |