Archive:JSON-RPC API/v4: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Montellese
(updated method, type and notification documentation)
>Montellese
(added json schema descriptions for every method, global type and notification)
Line 198: Line 198:
</div>
</div>
'''Returns:''' ''[[#Application.Property.Value|Application.Property.Value]]''
'''Returns:''' ''[[#Application.Property.Value|Application.Property.Value]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "$ref": "Application.Property.Value"
  },
  "params": [
    {
      "uniqueItems": true,
      "items": {
        "$ref": "Application.Property.Name"
      },
      "required": true,
      "type": "array",
      "name": "properties"
    }
  ],
  "description": "Retrieves the values of the given properties"
}</syntaxhighlight>}}


====Application.Quit====
====Application.Quit====
Line 206: Line 223:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Quit application"
}</syntaxhighlight>}}


====Application.SetMute====
====Application.SetMute====
Line 216: Line 240:
</div>
</div>
'''Returns:''' ''boolean''
'''Returns:''' ''boolean''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "boolean",
    "description": "Mute state"
  },
  "params": [
    {
      "required": true,
      "type": [
        {
          "type": "boolean"
        },
        {
          "enums": [
            "toggle"
          ],
          "type": "string"
        }
      ],
      "name": "mute"
    }
  ],
  "description": "Toggle mute/unmute"
}</syntaxhighlight>}}


====Application.SetVolume====
====Application.SetVolume====
Line 226: Line 274:
</div>
</div>
'''Returns:''' ''integer''
'''Returns:''' ''integer''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "minimum": 0,
    "type": "integer"
  },
  "params": [
    {
      "required": true,
      "minimum": 0,
      "type": "integer",
      "maximum": 100,
      "name": "volume"
    }
  ],
  "description": "Set the current volume"
}</syntaxhighlight>}}


===AudioLibrary===
===AudioLibrary===
Line 235: Line 299:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Cleans the audio library from non-existent items"
}</syntaxhighlight>}}


====AudioLibrary.Export====
====AudioLibrary.Export====
Line 245: Line 316:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "type": [
        {
          "additionalProperties": false,
          "type": "object",
          "properties": {
            "path": {
              "minLength": 1,
              "required": true,
              "type": "string",
              "description": "Path to the directory to where the data should be exported"
            }
          }
        },
        {
          "additionalProperties": false,
          "type": "object",
          "properties": {
            "images": {
              "default": false,
              "type": "boolean",
              "description": "Whether to export thumbnails and fanart images"
            },
            "overwrite": {
              "default": false,
              "type": "boolean",
              "description": "Whether to overwrite existing exported files"
            }
          }
        }
      ],
      "name": "options"
    }
  ],
  "description": "Exports all items from the audio library"
}</syntaxhighlight>}}


====AudioLibrary.GetAlbumDetails====
====AudioLibrary.GetAlbumDetails====
Line 262: Line 374:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "albumdetails": {
        "$ref": "Audio.Details.Album"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "albumid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Audio.Fields.Album"
    }
  ],
  "description": "Retrieve details about a specific album"
}</syntaxhighlight>}}


====AudioLibrary.GetAlbums====
====AudioLibrary.GetAlbums====
Line 283: Line 417:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "albums": {
        "items": {
          "$ref": "Audio.Details.Album"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "default": -1,
      "name": "artistid",
      "$ref": "Library.Id"
    },
    {
      "default": -1,
      "name": "genreid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Audio.Fields.Album"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all albums from specified artist or genre"
}</syntaxhighlight>}}


====AudioLibrary.GetArtistDetails====
====AudioLibrary.GetArtistDetails====
Line 300: Line 476:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "artistdetails": {
        "$ref": "Audio.Details.Artist"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "artistid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Audio.Fields.Artist"
    }
  ],
  "description": "Retrieve details about a specific artist"
}</syntaxhighlight>}}


====AudioLibrary.GetArtists====
====AudioLibrary.GetArtists====
Line 321: Line 519:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      },
      "artists": {
        "items": {
          "$ref": "Audio.Details.Artist"
        },
        "type": "array"
      }
    }
  },
  "params": [
    {
      "default": null,
      "description": "Whether or not to include artists only appearing in compilations. If the parameter is not passed or is passed as null the GUI setting will be used",
      "name": "albumartistsonly",
      "$ref": "Optional.Boolean"
    },
    {
      "default": -1,
      "name": "genreid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Audio.Fields.Artist"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all artists"
}</syntaxhighlight>}}


====AudioLibrary.GetGenres====
====AudioLibrary.GetGenres====
Line 340: Line 581:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "genres": {
        "items": {
          "$ref": "Library.Details.Genre"
        },
        "required": true,
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Library.Fields.Genre"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all genres"
}</syntaxhighlight>}}


====AudioLibrary.GetRecentlyAddedAlbums====
====AudioLibrary.GetRecentlyAddedAlbums====
Line 359: Line 633:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "albums": {
        "items": {
          "$ref": "Audio.Details.Album"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Audio.Fields.Album"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve recently added albums"
}</syntaxhighlight>}}


====AudioLibrary.GetRecentlyAddedSongs====
====AudioLibrary.GetRecentlyAddedSongs====
Line 379: Line 685:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      },
      "songs": {
        "items": {
          "$ref": "Audio.Details.Song"
        },
        "type": "array"
      }
    }
  },
  "params": [
    {
      "default": -1,
      "description": "The amount of recently added albums from which to return the songs",
      "name": "albumlimit",
      "$ref": "List.Amount"
    },
    {
      "name": "properties",
      "$ref": "Audio.Fields.Song"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve recently added songs"
}</syntaxhighlight>}}


====AudioLibrary.GetSongDetails====
====AudioLibrary.GetSongDetails====
Line 396: Line 740:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "songdetails": {
        "$ref": "Audio.Details.Song"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "songid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Audio.Fields.Song"
    }
  ],
  "description": "Retrieve details about a specific song"
}</syntaxhighlight>}}


====AudioLibrary.GetSongs====
====AudioLibrary.GetSongs====
Line 418: Line 784:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      },
      "songs": {
        "items": {
          "$ref": "Audio.Details.Song"
        },
        "type": "array"
      }
    }
  },
  "params": [
    {
      "default": -1,
      "name": "artistid",
      "$ref": "Library.Id"
    },
    {
      "default": -1,
      "name": "albumid",
      "$ref": "Library.Id"
    },
    {
      "default": -1,
      "name": "genreid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Audio.Fields.Song"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all songs from specified album, artist or genre"
}</syntaxhighlight>}}


====AudioLibrary.Scan====
====AudioLibrary.Scan====
Line 426: Line 839:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Scans the audio sources for new library items"
}</syntaxhighlight>}}


===Files===
===Files===
Line 443: Line 863:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "path": {
        "required": true,
        "type": "string"
      }
    }
  },
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "path"
    }
  ],
  "description": "Provides a way to download a given file (e.g. providing an URL to the real file location)"
}</syntaxhighlight>}}


====Files.GetDirectory====
====Files.GetDirectory====
Line 463: Line 902:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "files": {
        "items": {
          "$ref": "List.Item.File"
        },
        "required": true,
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "directory"
    },
    {
      "default": "files",
      "name": "media",
      "$ref": "Files.Media"
    },
    {
      "name": "properties",
      "$ref": "List.Fields.All"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Get the directories and files in the given directory"
}</syntaxhighlight>}}


====Files.GetSources====
====Files.GetSources====
Line 482: Line 960:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "sources": {
        "required": true,
        "$ref": "List.Items.Sources"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "media",
      "$ref": "Files.Media"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Get the sources of the media windows"
}</syntaxhighlight>}}


===Input===
===Input===
Line 491: Line 1,000:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Goes back in GUI"
}</syntaxhighlight>}}


====Input.Down====
====Input.Down====
Line 499: Line 1,015:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Navigate down in GUI"
}</syntaxhighlight>}}


====Input.Home====
====Input.Home====
Line 507: Line 1,030:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Goes to home window in GUI"
}</syntaxhighlight>}}


====Input.Left====
====Input.Left====
Line 515: Line 1,045:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Navigate left in GUI"
}</syntaxhighlight>}}


====Input.Right====
====Input.Right====
Line 523: Line 1,060:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Navigate right in GUI"
}</syntaxhighlight>}}


====Input.Select====
====Input.Select====
Line 531: Line 1,075:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Select current item in GUI"
}</syntaxhighlight>}}


====Input.Up====
====Input.Up====
Line 539: Line 1,090:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Navigate up in GUI"
}</syntaxhighlight>}}


===JSONRPC===
===JSONRPC===
Line 561: Line 1,119:
'''Type:''' ''object''
'''Type:''' ''object''
</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object"
  },
  "params": [
    {
      "default": true,
      "type": "boolean",
      "name": "getdescriptions"
    },
    {
      "default": false,
      "type": "boolean",
      "name": "getmetadata"
    },
    {
      "default": true,
      "type": "boolean",
      "name": "filterbytransport"
    },
    {
      "type": "object",
      "name": "filter",
      "properties": {
        "type": {
          "enums": [
            "method",
            "namespace",
            "type",
            "notification"
          ],
          "type": "string",
          "description": "Type of the given name",
          "required": true
        },
        "id": {
          "required": true,
          "type": "string",
          "description": "Name of a namespace, method or type"
        },
        "getreferences": {
          "default": true,
          "type": "boolean",
          "description": "Whether or not to print the schema for referenced types"
        }
      }
    }
  ],
  "description": "Enumerates all actions and descriptions"
}</syntaxhighlight>}}


====JSONRPC.NotifyAll====
====JSONRPC.NotifyAll====
Line 573: Line 1,181:
</div>
</div>
'''Returns:''' ''any''
'''Returns:''' ''any''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "any"
  },
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "string",
      "name": "message"
    },
    {
      "default": null,
      "type": "any",
      "name": "data"
    }
  ],
  "description": "Notify all other connected clients"
}</syntaxhighlight>}}


====JSONRPC.Permission====
====JSONRPC.Permission====
Line 594: Line 1,225:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "navigate": {
        "required": true,
        "type": "boolean"
      },
      "removedata": {
        "required": true,
        "type": "boolean"
      },
      "controlplayback": {
        "required": true,
        "type": "boolean"
      },
      "readdata": {
        "required": true,
        "type": "boolean"
      },
      "updatedata": {
        "required": true,
        "type": "boolean"
      },
      "writefile": {
        "required": true,
        "type": "boolean"
      },
      "controlnotify": {
        "required": true,
        "type": "boolean"
      },
      "controlpower": {
        "required": true,
        "type": "boolean"
      }
    }
  },
  "params": [],
  "description": "Retrieve the clients permissions"
}</syntaxhighlight>}}


====JSONRPC.Ping====
====JSONRPC.Ping====
Line 602: Line 1,274:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Ping responder"
}</syntaxhighlight>}}


====JSONRPC.Version====
====JSONRPC.Version====
Line 610: Line 1,289:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Retrieve the jsonrpc protocol version"
}</syntaxhighlight>}}


===Player===
===Player===
Line 622: Line 1,308:
'''Type:''' ''array''
'''Type:''' ''array''
</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "uniqueItems": true,
    "items": {
      "type": "object",
      "properties": {
        "playerid": {
          "required": true,
          "$ref": "Player.Id"
        },
        "type": {
          "required": true,
          "$ref": "Player.Type"
        }
      }
    },
    "type": "array"
  },
  "params": [],
  "description": "Returns all active players"
}</syntaxhighlight>}}


====Player.GetItem====
====Player.GetItem====
Line 639: Line 1,346:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "item": {
        "required": true,
        "$ref": "List.Item.All"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "name": "properties",
      "$ref": "List.Fields.All"
    }
  ],
  "description": "Retrieves the currently played item"
}</syntaxhighlight>}}


====Player.GetProperties====
====Player.GetProperties====
Line 650: Line 1,380:
</div>
</div>
'''Returns:''' ''[[#Player.Property.Value|Player.Property.Value]]''
'''Returns:''' ''[[#Player.Property.Value|Player.Property.Value]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "$ref": "Player.Property.Value"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "uniqueItems": true,
      "items": {
        "$ref": "Player.Property.Name"
      },
      "required": true,
      "type": "array",
      "name": "properties"
    }
  ],
  "description": "Retrieves the values of the given properties"
}</syntaxhighlight>}}


====Player.GoNext====
====Player.GoNext====
Line 660: Line 1,412:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Go to next item on the playlist"
}</syntaxhighlight>}}


====Player.GoPrevious====
====Player.GoPrevious====
Line 670: Line 1,435:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Go to previous item on the playlist"
}</syntaxhighlight>}}


====Player.GoTo====
====Player.GoTo====
Line 681: Line 1,459:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "required": true,
      "name": "position",
      "$ref": "Playlist.Position"
    }
  ],
  "description": "Go to item at the given position in the playlist"
}</syntaxhighlight>}}


====Player.MoveDown====
====Player.MoveDown====
Line 691: Line 1,487:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "If picture is zoomed move viewport down"
}</syntaxhighlight>}}


====Player.MoveLeft====
====Player.MoveLeft====
Line 701: Line 1,510:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "If picture is zoomed move viewport left otherwise skip previous"
}</syntaxhighlight>}}


====Player.MoveRight====
====Player.MoveRight====
Line 711: Line 1,533:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "If picture is zoomed move viewport right otherwise skip next"
}</syntaxhighlight>}}


====Player.MoveUp====
====Player.MoveUp====
Line 721: Line 1,556:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "If picture is zoomed move viewport up"
}</syntaxhighlight>}}


====Player.Open====
====Player.Open====
Line 731: Line 1,579:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "type": [
        {
          "additionalProperties": false,
          "type": "object",
          "properties": {
            "position": {
              "default": 0,
              "$ref": "Playlist.Position"
            },
            "playlistid": {
              "required": true,
              "$ref": "Playlist.Id"
            }
          }
        },
        {
          "$ref": "Playlist.Item"
        },
        {
          "additionalProperties": false,
          "type": "object",
          "properties": {
            "path": {
              "required": true,
              "type": "string"
            },
            "random": {
              "default": true,
              "type": "boolean"
            },
            "recursive": {
              "default": true,
              "type": "boolean"
            }
          }
        }
      ],
      "name": "item"
    }
  ],
  "description": "Start playback of either the playlist with the given ID, a slideshow with the pictures from the given directory or a single file or an item from the database."
}</syntaxhighlight>}}


====Player.PlayPause====
====Player.PlayPause====
Line 741: Line 1,637:
</div>
</div>
'''Returns:''' ''[[#Player.Speed|Player.Speed]]''
'''Returns:''' ''[[#Player.Speed|Player.Speed]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "$ref": "Player.Speed"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Pauses or unpause playback and returns the new state"
}</syntaxhighlight>}}


====Player.Repeat====
====Player.Repeat====
Line 752: Line 1,661:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "required": true,
      "name": "state",
      "$ref": "Player.Repeat"
    }
  ],
  "description": "Set the repeat mode of the player"
}</syntaxhighlight>}}


====Player.Rotate====
====Player.Rotate====
Line 762: Line 1,689:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Rotates current picture"
}</syntaxhighlight>}}


====Player.Seek====
====Player.Seek====
Line 781: Line 1,721:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "totaltime": {
        "$ref": "Global.Time"
      },
      "percentage": {
        "default": 0,
        "$ref": "Player.Position.Percentage"
      },
      "time": {
        "$ref": "Global.Time"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "required": true,
      "type": [
        {
          "description": "Percentage value to seek to",
          "$ref": "Player.Position.Percentage"
        },
        {
          "additionalProperties": false,
          "type": "object",
          "description": "Time to seek to",
          "properties": {
            "hours": {
              "default": 0,
              "minimum": 0,
              "type": "integer",
              "maximum": 23
            },
            "seconds": {
              "default": 0,
              "minimum": 0,
              "type": "integer",
              "maximum": 59
            },
            "minutes": {
              "default": 0,
              "minimum": 0,
              "type": "integer",
              "maximum": 59
            },
            "milliseconds": {
              "default": 0,
              "minimum": 0,
              "type": "integer",
              "maximum": 999
            }
          }
        },
        {
          "enums": [
            "smallforward",
            "smallbackward",
            "bigforward",
            "bigbackward"
          ],
          "type": "string",
          "description": "Seek by predefined jumps"
        }
      ],
      "name": "value"
    }
  ],
  "description": "Seek through the playing item"
}</syntaxhighlight>}}


====Player.SetAudioStream====
====Player.SetAudioStream====
Line 792: Line 1,808:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "required": true,
      "type": [
        {
          "enums": [
            "previous",
            "next"
          ],
          "type": "string"
        },
        {
          "minimum": 0,
          "type": "integer",
          "description": "Index of the audio stream to play"
        }
      ],
      "name": "stream"
    }
  ],
  "description": "Set the audio stream played by the player"
}</syntaxhighlight>}}


====Player.SetSpeed====
====Player.SetSpeed====
Line 803: Line 1,850:
</div>
</div>
'''Returns:''' ''[[#Player.Speed|Player.Speed]]''
'''Returns:''' ''[[#Player.Speed|Player.Speed]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "$ref": "Player.Speed"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "enums": [
        -32,
        -16,
        -8,
        -4,
        -2,
        -1,
        0,
        1,
        2,
        4,
        8,
        16,
        32,
        "increment",
        "decrement"
      ],
      "type": [
        {
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "name": "speed",
      "required": true
    }
  ],
  "description": "Set the speed of the current playback"
}</syntaxhighlight>}}


====Player.SetSubtitle====
====Player.SetSubtitle====
Line 814: Line 1,904:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "required": true,
      "type": [
        {
          "enums": [
            "previous",
            "next",
            "off",
            "on"
          ],
          "type": "string"
        },
        {
          "minimum": 0,
          "type": "integer",
          "description": "Index of the subtitle to display"
        }
      ],
      "name": "subtitle"
    }
  ],
  "description": "Set the subtitle displayed by the player"
}</syntaxhighlight>}}


====Player.Shuffle====
====Player.Shuffle====
Line 824: Line 1,947:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Shuffle items in the player"
}</syntaxhighlight>}}


====Player.Stop====
====Player.Stop====
Line 834: Line 1,970:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Stops playback"
}</syntaxhighlight>}}


====Player.UnShuffle====
====Player.UnShuffle====
Line 844: Line 1,993:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Unshuffle items in the player"
}</syntaxhighlight>}}


====Player.Zoom====
====Player.Zoom====
Line 855: Line 2,017:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    },
    {
      "description": "Zoom level",
      "required": true,
      "maximum": 10,
      "minimum": 1,
      "type": "integer",
      "name": "value"
    }
  ],
  "description": "Zooms current picture"
}</syntaxhighlight>}}


====Player.ZoomIn====
====Player.ZoomIn====
Line 865: Line 2,048:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Zoom in once"
}</syntaxhighlight>}}


====Player.ZoomOut====
====Player.ZoomOut====
Line 875: Line 2,071:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playerid",
      "$ref": "Player.Id"
    }
  ],
  "description": "Zoom out once"
}</syntaxhighlight>}}


===Playlist===
===Playlist===
Line 887: Line 2,096:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playlistid",
      "$ref": "Playlist.Id"
    },
    {
      "required": true,
      "name": "item",
      "$ref": "Playlist.Item"
    }
  ],
  "description": "Add item(s) to playlist"
}</syntaxhighlight>}}


====Playlist.Clear====
====Playlist.Clear====
Line 897: Line 2,124:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playlistid",
      "$ref": "Playlist.Id"
    }
  ],
  "description": "Clear playlist"
}</syntaxhighlight>}}


====Playlist.GetItems====
====Playlist.GetItems====
Line 917: Line 2,157:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "items": {
        "items": {
          "$ref": "List.Item.All"
        },
        "required": true,
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "playlistid",
      "$ref": "Playlist.Id"
    },
    {
      "name": "properties",
      "$ref": "List.Fields.All"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Get all items from playlist"
}</syntaxhighlight>}}


====Playlist.GetPlaylists====
====Playlist.GetPlaylists====
Line 928: Line 2,206:
'''Type:''' ''array''
'''Type:''' ''array''
</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "uniqueItems": true,
    "items": {
      "type": "object",
      "properties": {
        "playlistid": {
          "required": true,
          "$ref": "Playlist.Id"
        },
        "type": {
          "required": true,
          "$ref": "Playlist.Type"
        }
      }
    },
    "type": "array"
  },
  "params": [],
  "description": "Returns all existing playlists"
}</syntaxhighlight>}}


====Playlist.GetProperties====
====Playlist.GetProperties====
Line 939: Line 2,238:
</div>
</div>
'''Returns:''' ''[[#Playlist.Property.Value|Playlist.Property.Value]]''
'''Returns:''' ''[[#Playlist.Property.Value|Playlist.Property.Value]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "$ref": "Playlist.Property.Value"
  },
  "params": [
    {
      "required": true,
      "name": "playlistid",
      "$ref": "Playlist.Id"
    },
    {
      "uniqueItems": true,
      "items": {
        "$ref": "Playlist.Property.Name"
      },
      "required": true,
      "type": "array",
      "name": "properties"
    }
  ],
  "description": "Retrieves the values of the given properties"
}</syntaxhighlight>}}


====Playlist.Insert====
====Playlist.Insert====
Line 951: Line 2,272:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playlistid",
      "$ref": "Playlist.Id"
    },
    {
      "required": true,
      "name": "position",
      "$ref": "Playlist.Position"
    },
    {
      "required": true,
      "name": "item",
      "$ref": "Playlist.Item"
    }
  ],
  "description": "Insert item(s) into playlist. Does not work for picture playlists (aka slideshows)."
}</syntaxhighlight>}}


====Playlist.Remove====
====Playlist.Remove====
Line 962: Line 2,306:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playlistid",
      "$ref": "Playlist.Id"
    },
    {
      "required": true,
      "name": "position",
      "$ref": "Playlist.Position"
    }
  ],
  "description": "Remove item from playlist. Does not work for picture playlists (aka slideshows)."
}</syntaxhighlight>}}


====Playlist.Swap====
====Playlist.Swap====
Line 974: Line 2,336:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "required": true,
      "name": "playlistid",
      "$ref": "Playlist.Id"
    },
    {
      "required": true,
      "name": "position1",
      "$ref": "Playlist.Position"
    },
    {
      "required": true,
      "name": "position2",
      "$ref": "Playlist.Position"
    }
  ],
  "description": "Swap items in the playlist. Does not work for picture playlists (aka slideshows)."
}</syntaxhighlight>}}


===System===
===System===
Line 985: Line 2,370:
</div>
</div>
'''Returns:''' ''[[#System.Property.Value|System.Property.Value]]''
'''Returns:''' ''[[#System.Property.Value|System.Property.Value]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "$ref": "System.Property.Value"
  },
  "params": [
    {
      "uniqueItems": true,
      "items": {
        "$ref": "System.Property.Name"
      },
      "required": true,
      "type": "array",
      "name": "properties"
    }
  ],
  "description": "Retrieves the values of the given properties"
}</syntaxhighlight>}}


====System.Hibernate====
====System.Hibernate====
Line 993: Line 2,395:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Puts the system running XBMC into hibernate mode"
}</syntaxhighlight>}}


====System.Reboot====
====System.Reboot====
Line 1,001: Line 2,410:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Reboots the system running XBMC"
}</syntaxhighlight>}}


====System.Shutdown====
====System.Shutdown====
Line 1,009: Line 2,425:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Shuts the system running XBMC down"
}</syntaxhighlight>}}


====System.Suspend====
====System.Suspend====
Line 1,017: Line 2,440:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Suspends the system running XBMC"
}</syntaxhighlight>}}


===VideoLibrary===
===VideoLibrary===
Line 1,026: Line 2,456:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Cleans the video library from non-existent items"
}</syntaxhighlight>}}


====VideoLibrary.Export====
====VideoLibrary.Export====
Line 1,036: Line 2,473:
</div>
</div>
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [
    {
      "type": [
        {
          "additionalProperties": false,
          "type": "object",
          "properties": {
            "path": {
              "minLength": 1,
              "required": true,
              "type": "string",
              "description": "Path to the directory to where the data should be exported"
            }
          }
        },
        {
          "additionalProperties": false,
          "type": "object",
          "properties": {
            "images": {
              "default": false,
              "type": "boolean",
              "description": "Whether to export thumbnails and fanart images"
            },
            "overwrite": {
              "default": false,
              "type": "boolean",
              "description": "Whether to overwrite existing exported files"
            },
            "actorthumbs": {
              "default": false,
              "type": "boolean",
              "description": "Whether to export actor thumbnails"
            }
          }
        }
      ],
      "name": "options"
    }
  ],
  "description": "Exports all items from the video library"
}</syntaxhighlight>}}


====VideoLibrary.GetEpisodeDetails====
====VideoLibrary.GetEpisodeDetails====
Line 1,053: Line 2,536:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "episodedetails": {
        "$ref": "Video.Details.Episode"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "episodeid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.Episode"
    }
  ],
  "description": "Retrieve details about a specific tv show episode"
}</syntaxhighlight>}}


====VideoLibrary.GetEpisodes====
====VideoLibrary.GetEpisodes====
Line 1,074: Line 2,579:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "episodes": {
        "items": {
          "$ref": "Video.Details.Episode"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "default": -1,
      "name": "tvshowid",
      "$ref": "Library.Id"
    },
    {
      "default": -1,
      "minimum": 0,
      "type": "integer",
      "name": "season"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.Episode"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all tv show episodes"
}</syntaxhighlight>}}


====VideoLibrary.GetGenres====
====VideoLibrary.GetGenres====
Line 1,094: Line 2,642:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "genres": {
        "items": {
          "$ref": "Library.Details.Genre"
        },
        "required": true,
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "enums": [
        "movie",
        "tvshow",
        "musicvideo"
      ],
      "type": "string",
      "name": "type",
      "required": true
    },
    {
      "name": "properties",
      "$ref": "Library.Fields.Genre"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all genres"
}</syntaxhighlight>}}


====VideoLibrary.GetMovieDetails====
====VideoLibrary.GetMovieDetails====
Line 1,111: Line 2,702:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "moviedetails": {
        "$ref": "Video.Details.Movie"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "movieid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.Movie"
    }
  ],
  "description": "Retrieve details about a specific movie"
}</syntaxhighlight>}}


====VideoLibrary.GetMovieSetDetails====
====VideoLibrary.GetMovieSetDetails====
Line 1,134: Line 2,747:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "setdetails": {
        "$ref": "Video.Details.MovieSet.Extended"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "setid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.MovieSet"
    },
    {
      "type": "object",
      "name": "movies",
      "properties": {
        "sort": {
          "$ref": "List.Sort"
        },
        "properties": {
          "$ref": "Video.Fields.Movie"
        },
        "limits": {
          "$ref": "List.Limits"
        }
      }
    }
  ],
  "description": "Retrieve details about a specific movie set"
}</syntaxhighlight>}}


====VideoLibrary.GetMovieSets====
====VideoLibrary.GetMovieSets====
Line 1,153: Line 2,803:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      },
      "sets": {
        "items": {
          "$ref": "Video.Details.MovieSet"
        },
        "type": "array"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Video.Fields.MovieSet"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all movie sets"
}</syntaxhighlight>}}


====VideoLibrary.GetMovies====
====VideoLibrary.GetMovies====
Line 1,172: Line 2,854:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "movies": {
        "items": {
          "$ref": "Video.Details.Movie"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Video.Fields.Movie"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all movies"
}</syntaxhighlight>}}


====VideoLibrary.GetMusicVideoDetails====
====VideoLibrary.GetMusicVideoDetails====
Line 1,189: Line 2,903:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "musicvideodetails": {
        "$ref": "Video.Details.MusicVideo"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "musicvideoid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.MusicVideo"
    }
  ],
  "description": "Retrieve details about a specific music video"
}</syntaxhighlight>}}


====VideoLibrary.GetMusicVideos====
====VideoLibrary.GetMusicVideos====
Line 1,210: Line 2,946:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "musicvideos": {
        "items": {
          "$ref": "Video.Details.MusicVideo"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "default": -1,
      "name": "artistid",
      "$ref": "Library.Id"
    },
    {
      "default": -1,
      "name": "albumid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.MusicVideo"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all music videos"
}</syntaxhighlight>}}


====VideoLibrary.GetRecentlyAddedEpisodes====
====VideoLibrary.GetRecentlyAddedEpisodes====
Line 1,229: Line 3,007:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "episodes": {
        "items": {
          "$ref": "Video.Details.Episode"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Video.Fields.Episode"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all recently added tv episodes"
}</syntaxhighlight>}}


====VideoLibrary.GetRecentlyAddedMovies====
====VideoLibrary.GetRecentlyAddedMovies====
Line 1,248: Line 3,058:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "movies": {
        "items": {
          "$ref": "Video.Details.Movie"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Video.Fields.Movie"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all recently added movies"
}</syntaxhighlight>}}


====VideoLibrary.GetRecentlyAddedMusicVideos====
====VideoLibrary.GetRecentlyAddedMusicVideos====
Line 1,267: Line 3,109:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "musicvideos": {
        "items": {
          "$ref": "Video.Details.MusicVideo"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Video.Fields.MusicVideo"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all recently added music videos"
}</syntaxhighlight>}}


====VideoLibrary.GetSeasons====
====VideoLibrary.GetSeasons====
Line 1,287: Line 3,161:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "seasons": {
        "items": {
          "$ref": "Video.Details.Season"
        },
        "type": "array"
      },
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "tvshowid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.Season"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all tv seasons"
}</syntaxhighlight>}}


====VideoLibrary.GetTVShowDetails====
====VideoLibrary.GetTVShowDetails====
Line 1,304: Line 3,215:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "tvshowdetails": {
        "$ref": "Video.Details.TVShow"
      }
    }
  },
  "params": [
    {
      "required": true,
      "name": "tvshowid",
      "$ref": "Library.Id"
    },
    {
      "name": "properties",
      "$ref": "Video.Fields.TVShow"
    }
  ],
  "description": "Retrieve details about a specific tv show"
}</syntaxhighlight>}}


====VideoLibrary.GetTVShows====
====VideoLibrary.GetTVShows====
Line 1,323: Line 3,256:


</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "properties": {
      "limits": {
        "required": true,
        "$ref": "List.LimitsReturned"
      },
      "tvshows": {
        "items": {
          "$ref": "Video.Details.TVShow"
        },
        "type": "array"
      }
    }
  },
  "params": [
    {
      "name": "properties",
      "$ref": "Video.Fields.TVShow"
    },
    {
      "name": "limits",
      "$ref": "List.Limits"
    },
    {
      "name": "sort",
      "$ref": "List.Sort"
    }
  ],
  "description": "Retrieve all tv shows"
}</syntaxhighlight>}}


====VideoLibrary.Scan====
====VideoLibrary.Scan====
Line 1,331: Line 3,296:
<br />
<br />
'''Returns:''' ''string''
'''Returns:''' ''string''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "string"
  },
  "params": [],
  "description": "Scans the video sources for new library items"
}</syntaxhighlight>}}


===XBMC===
===XBMC===
Line 1,345: Line 3,317:
'''Type:''' ''object''
'''Type:''' ''object''
</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "description": "List of key-value pairs of the retrieved info booleans"
  },
  "params": [
    {
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "required": true,
      "type": "array",
      "name": "booleans"
    }
  ],
  "description": "Retrieve info booleans about XBMC and the system"
}</syntaxhighlight>}}


====XBMC.GetInfoLabels====
====XBMC.GetInfoLabels====
Line 1,358: Line 3,348:
'''Type:''' ''object''
'''Type:''' ''object''
</div>
</div>
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "returns": {
    "type": "object",
    "description": "List of key-value pairs of the retrieved info labels"
  },
  "params": [
    {
      "description": "See http://wiki.xbmc.org/index.php?title=InfoLabels for a list of possible info labels",
      "minItems": 1,
      "items": {
        "type": "string"
      },
      "required": true,
      "type": "array",
      "name": "labels"
    }
  ],
  "description": "Retrieve info labels about XBMC and the system"
}</syntaxhighlight>}}




Line 1,363: Line 3,372:
===Application===
===Application===
====Application.Property.Name====
====Application.Property.Name====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "volume",
  "enums": [
    "volume",
    "muted",
    "name",
    "version"
  ],
  "type": "string",
  "id": "Application.Property.Name"
}</syntaxhighlight>}}
 
====Application.Property.Value====
====Application.Property.Value====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
Line 1,377: Line 3,397:


*[ ''string'' name = "" ]
*[ ''string'' name = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Application.Property.Value",
  "properties": {
    "muted": {
      "default": false,
      "type": "boolean"
    },
    "volume": {
      "default": 0,
      "type": "integer"
    },
    "version": {
      "type": "object",
      "properties": {
        "major": {
          "minimum": 0,
          "type": "integer",
          "required": true
        },
        "tag": {
          "enums": [
            "prealpha",
            "alpha",
            "beta",
            "releasecandidate",
            "stable"
          ],
          "type": "string",
          "required": true
        },
        "minor": {
          "minimum": 0,
          "type": "integer",
          "required": true
        },
        "revision": {
          "default": null,
          "type": [
            {
              "type": "string"
            },
            {
              "minimum": 0,
              "type": "integer"
            }
          ]
        }
      }
    },
    "name": {
      "default": "",
      "minLength": 1,
      "type": "string"
    }
  }
}</syntaxhighlight>}}


===Array===
===Array===
====Array.Integer====
====Array.Integer====
'''Type:''' ''array''
'''Type:''' ''array''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "type": "integer"
  },
  "type": "array",
  "id": "Array.Integer"
}</syntaxhighlight>}}
 
====Array.String====
====Array.String====
'''Type:''' ''array''
'''Type:''' ''array''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "minLength": 1,
    "type": "string"
  },
  "type": "array",
  "id": "Array.String"
}</syntaxhighlight>}}
 
===Audio===
===Audio===
====Audio.Details.Album====
====Audio.Details.Album====
Line 1,397: Line 3,489:
*[ ''string'' type = "" ]
*[ ''string'' type = "" ]
*[ ''string'' description = "" ]
*[ ''string'' description = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Audio.Details.Media",
  "id": "Audio.Details.Album",
  "properties": {
    "style": {
      "default": "",
      "type": "string"
    },
    "mood": {
      "default": "",
      "type": "string"
    },
    "albumlabel": {
      "default": "",
      "type": "string"
    },
    "theme": {
      "default": "",
      "type": "string"
    },
    "albumid": {
      "required": true,
      "$ref": "Library.Id"
    },
    "artistid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "type": {
      "default": "",
      "type": "string"
    },
    "description": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Audio.Details.Artist====
====Audio.Details.Artist====
Line 1,415: Line 3,545:
*[ ''string'' died = "" ]
*[ ''string'' died = "" ]
*[ ''string'' mood = "" ]
*[ ''string'' mood = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Audio.Details.Base",
  "id": "Audio.Details.Artist",
  "properties": {
    "style": {
      "default": "",
      "type": "string"
    },
    "description": {
      "default": "",
      "type": "string"
    },
    "musicbrainzartistid": {
      "default": "",
      "type": "string"
    },
    "artist": {
      "required": true,
      "type": "string"
    },
    "formed": {
      "default": "",
      "type": "string"
    },
    "disbanded": {
      "default": "",
      "type": "string"
    },
    "born": {
      "default": "",
      "type": "string"
    },
    "artistid": {
      "required": true,
      "$ref": "Library.Id"
    },
    "yearsactive": {
      "default": "",
      "type": "string"
    },
    "instrument": {
      "default": "",
      "type": "string"
    },
    "died": {
      "default": "",
      "type": "string"
    },
    "mood": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Audio.Details.Base====
====Audio.Details.Base====
Line 1,422: Line 3,606:
'''Properties:'''
'''Properties:'''
*[ ''string'' genre = "" ]
*[ ''string'' genre = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Media.Details.Base",
  "id": "Audio.Details.Base",
  "properties": {
    "genre": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Audio.Details.Media====
====Audio.Details.Media====
Line 1,434: Line 3,628:
*[ ''integer'' year = 0 ]
*[ ''integer'' year = 0 ]
*[ ''string'' musicbrainzalbumid = "" ]
*[ ''string'' musicbrainzalbumid = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Audio.Details.Base",
  "id": "Audio.Details.Media",
  "properties": {
    "rating": {
      "default": 0,
      "type": "integer"
    },
    "title": {
      "default": "",
      "type": "string"
    },
    "artist": {
      "default": "",
      "type": "string"
    },
    "musicbrainzalbumartistid": {
      "default": "",
      "type": "string"
    },
    "year": {
      "default": 0,
      "type": "integer"
    },
    "musicbrainzalbumid": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Audio.Details.Song====
====Audio.Details.Song====
Line 1,453: Line 3,677:
*[ ''integer'' duration = 0 ]
*[ ''integer'' duration = 0 ]
*[ ''integer'' playcount = 0 ]
*[ ''integer'' playcount = 0 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Audio.Details.Media",
  "id": "Audio.Details.Song",
  "properties": {
    "album": {
      "default": "",
      "type": "string"
    },
    "comment": {
      "default": "",
      "type": "string"
    },
    "songid": {
      "required": true,
      "$ref": "Library.Id"
    },
    "musicbrainzartistid": {
      "default": "",
      "type": "string"
    },
    "lyrics": {
      "default": "",
      "type": "string"
    },
    "track": {
      "default": 0,
      "type": "integer"
    },
    "musicbrainztrackid": {
      "default": "",
      "type": "string"
    },
    "albumid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "artistid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "albumartist": {
      "default": "",
      "type": "string"
    },
    "file": {
      "default": "",
      "type": "string"
    },
    "duration": {
      "default": 0,
      "type": "integer"
    },
    "playcount": {
      "default": 0,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====Audio.Fields.Album====
====Audio.Fields.Album====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "description",
      "artist",
      "genre",
      "theme",
      "mood",
      "style",
      "type",
      "albumlabel",
      "rating",
      "year",
      "musicbrainzalbumid",
      "musicbrainzalbumartistid",
      "fanart",
      "thumbnail",
      "artistid"
    ],
    "type": "string"
  },
  "extends": "Item.Fields.Base",
  "id": "Audio.Fields.Album"
}</syntaxhighlight>}}


====Audio.Fields.Artist====
====Audio.Fields.Artist====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "instrument",
      "style",
      "mood",
      "born",
      "formed",
      "description",
      "genre",
      "died",
      "disbanded",
      "yearsactive",
      "musicbrainzartistid",
      "fanart",
      "thumbnail"
    ],
    "type": "string"
  },
  "extends": "Item.Fields.Base",
  "id": "Audio.Fields.Artist"
}</syntaxhighlight>}}


====Audio.Fields.Song====
====Audio.Fields.Song====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "artist",
      "albumartist",
      "genre",
      "year",
      "rating",
      "album",
      "track",
      "duration",
      "comment",
      "lyrics",
      "musicbrainztrackid",
      "musicbrainzartistid",
      "musicbrainzalbumid",
      "musicbrainzalbumartistid",
      "playcount",
      "fanart",
      "thumbnail",
      "file",
      "artistid",
      "albumid"
    ],
    "type": "string"
  },
  "extends": "Item.Fields.Base",
  "id": "Audio.Fields.Song"
}</syntaxhighlight>}}


===Configuration===
===Configuration===
Line 1,471: Line 3,830:
'''Properties:'''
'''Properties:'''
*''[[#Configuration.Notifications|Configuration.Notifications]]'' notifications
*''[[#Configuration.Notifications|Configuration.Notifications]]'' notifications
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "required": true,
  "type": "object",
  "id": "Configuration",
  "properties": {
    "notifications": {
      "required": true,
      "$ref": "Configuration.Notifications"
    }
  }
}</syntaxhighlight>}}


====Configuration.Notifications====
====Configuration.Notifications====
Line 1,481: Line 3,851:
*''boolean'' other
*''boolean'' other
*''boolean'' videolibrary
*''boolean'' videolibrary
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "additionalProperties": false,
  "type": "object",
  "id": "Configuration.Notifications",
  "properties": {
    "gui": {
      "required": true,
      "type": "boolean"
    },
    "system": {
      "required": true,
      "type": "boolean"
    },
    "player": {
      "required": true,
      "type": "boolean"
    },
    "audiolibrary": {
      "required": true,
      "type": "boolean"
    },
    "other": {
      "required": true,
      "type": "boolean"
    },
    "videolibrary": {
      "required": true,
      "type": "boolean"
    }
  }
}</syntaxhighlight>}}


===Files===
===Files===
====Files.Media====
====Files.Media====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "video",
  "enums": [
    "video",
    "music",
    "pictures",
    "files",
    "programs"
  ],
  "type": "string",
  "id": "Files.Media"
}</syntaxhighlight>}}
 
===Global===
===Global===
====Global.Time====
====Global.Time====
Line 1,493: Line 3,906:
*''integer'' minutes
*''integer'' minutes
*''integer'' milliseconds
*''integer'' milliseconds
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "additionalProperties": false,
  "type": "object",
  "id": "Global.Time",
  "properties": {
    "hours": {
      "minimum": 0,
      "type": "integer",
      "maximum": 23,
      "required": true
    },
    "seconds": {
      "minimum": 0,
      "type": "integer",
      "maximum": 59,
      "required": true
    },
    "minutes": {
      "minimum": 0,
      "type": "integer",
      "maximum": 59,
      "required": true
    },
    "milliseconds": {
      "minimum": 0,
      "type": "integer",
      "maximum": 999,
      "required": true
    }
  }
}</syntaxhighlight>}}


===Item===
===Item===
Line 1,499: Line 3,943:
'''Properties:'''
'''Properties:'''
*''string'' label
*''string'' label
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Item.Details.Base",
  "properties": {
    "label": {
      "required": true,
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Item.Fields.Base====
====Item.Fields.Base====
'''Type:''' ''array''
'''Type:''' ''array''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "uniqueItems": true,
  "items": {
    "type": "string"
  },
  "type": "array",
  "id": "Item.Fields.Base"
}</syntaxhighlight>}}
 
===Library===
===Library===
====Library.Details.Genre====
====Library.Details.Genre====
Line 1,511: Line 3,973:
*[ ''string'' thumbnail = "" ]
*[ ''string'' thumbnail = "" ]
*[ ''string'' title = "" ]
*[ ''string'' title = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Item.Details.Base",
  "id": "Library.Details.Genre",
  "properties": {
    "genreid": {
      "required": true,
      "$ref": "Library.Id"
    },
    "thumbnail": {
      "default": "",
      "type": "string"
    },
    "title": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Library.Fields.Genre====
====Library.Fields.Genre====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "thumbnail"
    ],
    "type": "string"
  },
  "extends": "Item.Fields.Base",
  "id": "Library.Fields.Genre"
}</syntaxhighlight>}}


====Library.Id====
====Library.Id====
'''Type:''' ''integer''
'''Type:''' ''integer''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": -1,
  "minimum": 1,
  "type": "integer",
  "id": "Library.Id"
}</syntaxhighlight>}}
 
===List===
===List===
====List.Amount====
====List.Amount====
'''Type:''' ''integer''
'''Type:''' ''integer''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": -1,
  "minimum": 0,
  "type": "integer",
  "id": "List.Amount"
}</syntaxhighlight>}}
 
====List.Fields.All====
====List.Fields.All====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "artist",
      "albumartist",
      "genre",
      "year",
      "rating",
      "album",
      "track",
      "duration",
      "comment",
      "lyrics",
      "musicbrainztrackid",
      "musicbrainzartistid",
      "musicbrainzalbumid",
      "musicbrainzalbumartistid",
      "playcount",
      "fanart",
      "director",
      "trailer",
      "tagline",
      "plot",
      "plotoutline",
      "originaltitle",
      "lastplayed",
      "writer",
      "studio",
      "mpaa",
      "cast",
      "country",
      "imdbnumber",
      "premiered",
      "productioncode",
      "runtime",
      "set",
      "showlink",
      "streamdetails",
      "top250",
      "votes",
      "firstaired",
      "season",
      "episode",
      "showtitle",
      "thumbnail",
      "file",
      "resume",
      "artistid",
      "albumid",
      "tvshowid",
      "setid"
    ],
    "type": "string"
  },
  "extends": "Item.Fields.Base",
  "id": "List.Fields.All"
}</syntaxhighlight>}}


====List.Item.All====
====List.Item.All====
Line 1,565: Line 4,126:
*[ ''integer'' top250 = 0 ]
*[ ''integer'' top250 = 0 ]
*[ ''string'' trailer = "" ]
*[ ''string'' trailer = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": [
    "Video.Details.File",
    "Audio.Details.Media"
  ],
  "id": "List.Item.All",
  "properties": {
    "comment": {
      "default": "",
      "type": "string"
    },
    "tvshowid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "set": {
      "$ref": "Array.String"
    },
    "lyrics": {
      "default": "",
      "type": "string"
    },
    "albumartist": {
      "default": "",
      "type": "string"
    },
    "duration": {
      "default": 0,
      "type": "integer"
    },
    "setid": {
      "$ref": "Array.Integer"
    },
    "id": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "album": {
      "default": "",
      "type": "string"
    },
    "votes": {
      "default": "",
      "type": "string"
    },
    "mpaa": {
      "default": "",
      "type": "string"
    },
    "writer": {
      "default": "",
      "type": "string"
    },
    "albumid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "type": {
      "default": "unknown",
      "enums": [
        "unknown",
        "movie",
        "episode",
        "musicvideo",
        "song",
        "picture"
      ],
      "type": "string"
    },
    "plotoutline": {
      "default": "",
      "type": "string"
    },
    "track": {
      "default": 0,
      "type": "integer"
    },
    "season": {
      "default": 0,
      "type": "integer"
    },
    "musicbrainztrackid": {
      "default": "",
      "type": "string"
    },
    "imdbnumber": {
      "default": "",
      "type": "string"
    },
    "studio": {
      "default": "",
      "type": "string"
    },
    "showlink": {
      "default": "",
      "type": "string"
    },
    "showtitle": {
      "default": "",
      "type": "string"
    },
    "episode": {
      "default": 0,
      "type": "integer"
    },
    "musicbrainzartistid": {
      "default": "",
      "type": "string"
    },
    "productioncode": {
      "default": "",
      "type": "string"
    },
    "country": {
      "default": "",
      "type": "string"
    },
    "premiered": {
      "default": "",
      "type": "string"
    },
    "originaltitle": {
      "default": "",
      "type": "string"
    },
    "cast": {
      "$ref": "Video.Cast"
    },
    "artistid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "firstaired": {
      "default": "",
      "type": "string"
    },
    "tagline": {
      "default": "",
      "type": "string"
    },
    "top250": {
      "default": 0,
      "type": "integer"
    },
    "trailer": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====List.Item.File====
====List.Item.File====
Line 1,573: Line 4,284:
*''string'' filetype
*''string'' filetype
*''string'' file
*''string'' file
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "List.Item.All",
  "id": "List.Item.File",
  "properties": {
    "filetype": {
      "enums": [
        "file",
        "directory"
      ],
      "type": "string",
      "required": true
    },
    "file": {
      "required": true,
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====List.Items.Sources====
====List.Items.Sources====
'''Type:''' ''array''
'''Type:''' ''array''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "extends": "Item.Details.Base",
    "properties": {
      "file": {
        "required": true,
        "type": "string"
      }
    }
  },
  "type": "array",
  "id": "List.Items.Sources"
}</syntaxhighlight>}}
 
====List.Limits====
====List.Limits====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
Line 1,581: Line 4,323:
*[ ''integer'' start = 0 ]
*[ ''integer'' start = 0 ]
*[ ''integer'' end = -1 ]
*[ ''integer'' end = -1 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "additionalProperties": false,
  "type": "object",
  "id": "List.Limits",
  "properties": {
    "start": {
      "default": 0,
      "minimum": 0,
      "type": "integer"
    },
    "end": {
      "default": -1,
      "minimum": 0,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====List.LimitsReturned====
====List.LimitsReturned====
Line 1,588: Line 4,347:
*''integer'' total
*''integer'' total
*[ ''integer'' end = -1 ]
*[ ''integer'' end = -1 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "additionalProperties": false,
  "type": "object",
  "id": "List.LimitsReturned",
  "properties": {
    "start": {
      "default": 0,
      "minimum": 0,
      "type": "integer"
    },
    "total": {
      "minimum": 0,
      "type": "integer",
      "required": true
    },
    "end": {
      "default": -1,
      "minimum": 0,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====List.Sort====
====List.Sort====
Line 1,595: Line 4,376:
*[ ''boolean'' ignorearticle = False ]
*[ ''boolean'' ignorearticle = False ]
*[ ''string'' method = "none" ]
*[ ''string'' method = "none" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "List.Sort",
  "properties": {
    "order": {
      "default": "ascending",
      "enums": [
        "ascending",
        "descending"
      ],
      "type": "string"
    },
    "ignorearticle": {
      "default": false,
      "type": "boolean"
    },
    "method": {
      "default": "none",
      "enums": [
        "none",
        "label",
        "date",
        "size",
        "file",
        "drivetype",
        "track",
        "duration",
        "title",
        "artist",
        "album",
        "genre",
        "year",
        "videorating",
        "programcount",
        "playlist",
        "episode",
        "videotitle",
        "sorttitle",
        "productioncode",
        "songrating",
        "mpaarating",
        "videoruntime",
        "studio",
        "fullpath",
        "lastplayed",
        "unsorted",
        "max"
      ],
      "type": "string"
    }
  }
}</syntaxhighlight>}}


===Media===
===Media===
Line 1,604: Line 4,437:
*[ ''string'' fanart = "" ]
*[ ''string'' fanart = "" ]
*[ ''string'' thumbnail = "" ]
*[ ''string'' thumbnail = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Item.Details.Base",
  "id": "Media.Details.Base",
  "properties": {
    "fanart": {
      "default": "",
      "type": "string"
    },
    "thumbnail": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


===Optional===
===Optional===
====Optional.Boolean====
====Optional.Boolean====
'''Type:''' ''mixed''
'''Type:''' ''mixed''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": null,
  "type": [
    {
      "type": "null"
    },
    {
      "type": "boolean"
    }
  ],
  "id": "Optional.Boolean"
}</syntaxhighlight>}}
 
===Player===
===Player===
====Player.Audio.Stream====
====Player.Audio.Stream====
Line 1,615: Line 4,474:
*''string'' name
*''string'' name
*''string'' language
*''string'' language
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Player.Audio.Stream",
  "properties": {
    "index": {
      "minimum": 0,
      "type": "integer",
      "required": true
    },
    "name": {
      "required": true,
      "type": "string"
    },
    "language": {
      "required": true,
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Player.Audio.Stream.Extended====
====Player.Audio.Stream.Extended====
Line 1,624: Line 4,502:
*''string'' codec
*''string'' codec
*''integer'' bitrate
*''integer'' bitrate
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Player.Audio.Stream",
  "id": "Player.Audio.Stream.Extended",
  "properties": {
    "channels": {
      "required": true,
      "type": "integer"
    },
    "codec": {
      "required": true,
      "type": "string"
    },
    "bitrate": {
      "required": true,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====Player.Id====
====Player.Id====
'''Type:''' ''integer''
'''Type:''' ''integer''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": -1,
  "minimum": 0,
  "type": "integer",
  "id": "Player.Id",
  "maximum": 2
}</syntaxhighlight>}}
 
====Player.Notifications.Data====
====Player.Notifications.Data====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
Line 1,632: Line 4,535:
*''[[#Player.Notifications.Item|Player.Notifications.Item]]'' item
*''[[#Player.Notifications.Item|Player.Notifications.Item]]'' item
*''[[#Player.Notifications.Player|Player.Notifications.Player]]'' player
*''[[#Player.Notifications.Player|Player.Notifications.Player]]'' player
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Player.Notifications.Data",
  "properties": {
    "item": {
      "required": true,
      "$ref": "Player.Notifications.Item"
    },
    "player": {
      "required": true,
      "$ref": "Player.Notifications.Player"
    }
  }
}</syntaxhighlight>}}


====Player.Notifications.Item====
====Player.Notifications.Item====
'''Type:''' ''mixed''
'''Type:''' ''mixed''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": [
    {
      "type": "object",
      "description": "An unknown item does not have any additional information.",
      "properties": {
        "type": {
          "required": true,
          "$ref": "Player.Notifications.Item.Type"
        }
      }
    },
    {
      "type": "object",
      "description": "An item known to the database has an identification.",
      "properties": {
        "type": {
          "required": true,
          "$ref": "Player.Notifications.Item.Type"
        },
        "id": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    },
    {
      "type": "object",
      "description": "A movie item has a title and may have a release year.",
      "properties": {
        "year": {
          "default": 0,
          "type": "integer"
        },
        "type": {
          "required": true,
          "$ref": "Player.Notifications.Item.Type"
        },
        "title": {
          "required": true,
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "description": "A tv episode has a title and may have an episode number, season number and the title of the show it belongs to.",
      "properties": {
        "season": {
          "default": 0,
          "type": "integer"
        },
        "type": {
          "required": true,
          "$ref": "Player.Notifications.Item.Type"
        },
        "episode": {
          "default": 0,
          "type": "integer"
        },
        "showtitle": {
          "default": "",
          "type": "string"
        },
        "title": {
          "required": true,
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "description": "A music video has a title and may have an album and an artist.",
      "properties": {
        "album": {
          "default": "",
          "type": "string"
        },
        "title": {
          "required": true,
          "type": "string"
        },
        "type": {
          "required": true,
          "$ref": "Player.Notifications.Item.Type"
        },
        "artist": {
          "default": "",
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "description": "A song has a title and may have an album, an artist and a track number.",
      "properties": {
        "album": {
          "default": "",
          "type": "string"
        },
        "track": {
          "default": 0,
          "type": "integer"
        },
        "title": {
          "required": true,
          "type": "string"
        },
        "type": {
          "required": true,
          "$ref": "Player.Notifications.Item.Type"
        },
        "artist": {
          "default": "",
          "type": "string"
        }
      }
    }
  ],
  "id": "Player.Notifications.Item"
}</syntaxhighlight>}}
 
====Player.Notifications.Item.Type====
====Player.Notifications.Item.Type====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "unknown",
  "enums": [
    "unknown",
    "movie",
    "episode",
    "musicvideo",
    "song"
  ],
  "type": "string",
  "id": "Player.Notifications.Item.Type"
}</syntaxhighlight>}}
 
====Player.Notifications.Player====
====Player.Notifications.Player====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
Line 1,642: Line 4,692:
*''[[#Player.Id|Player.Id]]'' playerid
*''[[#Player.Id|Player.Id]]'' playerid
*[ ''integer'' speed = 0 ]
*[ ''integer'' speed = 0 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Player.Notifications.Player",
  "properties": {
    "playerid": {
      "required": true,
      "$ref": "Player.Id"
    },
    "speed": {
      "default": 0,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====Player.Notifications.Player.Seek====
====Player.Notifications.Player.Seek====
Line 1,650: Line 4,714:
*[ ''[[#Global.Time|Global.Time]]'' seekoffset ]
*[ ''[[#Global.Time|Global.Time]]'' seekoffset ]
*[ ''[[#Global.Time|Global.Time]]'' time ]
*[ ''[[#Global.Time|Global.Time]]'' time ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Player.Notifications.Player",
  "id": "Player.Notifications.Player.Seek",
  "properties": {
    "seekoffset": {
      "$ref": "Global.Time"
    },
    "time": {
      "$ref": "Global.Time"
    }
  }
}</syntaxhighlight>}}


====Player.Position.Percentage====
====Player.Position.Percentage====
'''Type:''' ''number''
'''Type:''' ''number''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": 0,
  "minimum": 0,
  "type": "number",
  "id": "Player.Position.Percentage",
  "maximum": 100
}</syntaxhighlight>}}
 
====Player.Property.Name====
====Player.Property.Name====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "type",
  "enums": [
    "type",
    "partymode",
    "speed",
    "time",
    "percentage",
    "totaltime",
    "playlistid",
    "position",
    "repeat",
    "shuffled",
    "canseek",
    "canchangespeed",
    "canmove",
    "canzoom",
    "canrotate",
    "canshuffle",
    "canrepeat",
    "currentaudiostream",
    "audiostreams",
    "subtitleenabled",
    "currentsubtitle",
    "subtitles"
  ],
  "type": "string",
  "id": "Player.Property.Name"
}</syntaxhighlight>}}
 
====Player.Property.Value====
====Player.Property.Value====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
Line 1,680: Line 4,792:
*[ ''[[#Playlist.Position|Playlist.Position]]'' position = -1 ]
*[ ''[[#Playlist.Position|Playlist.Position]]'' position = -1 ]
*[ ''boolean'' canchangespeed = False ]
*[ ''boolean'' canchangespeed = False ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Player.Property.Value",
  "properties": {
    "canrotate": {
      "default": false,
      "type": "boolean"
    },
    "canrepeat": {
      "default": false,
      "type": "boolean"
    },
    "speed": {
      "default": 0,
      "type": "integer"
    },
    "canshuffle": {
      "default": false,
      "type": "boolean"
    },
    "shuffled": {
      "default": false,
      "type": "boolean"
    },
    "canmove": {
      "default": false,
      "type": "boolean"
    },
    "subtitleenabled": {
      "default": false,
      "type": "boolean"
    },
    "percentage": {
      "default": 0,
      "$ref": "Player.Position.Percentage"
    },
    "type": {
      "default": "video",
      "$ref": "Player.Type"
    },
    "repeat": {
      "default": "off",
      "$ref": "Player.Repeat"
    },
    "canseek": {
      "default": false,
      "type": "boolean"
    },
    "currentsubtitle": {
      "$ref": "Player.Subtitle"
    },
    "subtitles": {
      "items": {
        "$ref": "Player.Subtitle"
      },
      "type": "array"
    },
    "totaltime": {
      "$ref": "Global.Time"
    },
    "canzoom": {
      "default": false,
      "type": "boolean"
    },
    "currentaudiostream": {
      "$ref": "Player.Audio.Stream.Extended"
    },
    "playlistid": {
      "default": -1,
      "$ref": "Playlist.Id"
    },
    "audiostreams": {
      "items": {
        "$ref": "Player.Audio.Stream.Extended"
      },
      "type": "array"
    },
    "partymode": {
      "default": false,
      "type": "boolean"
    },
    "time": {
      "$ref": "Global.Time"
    },
    "position": {
      "default": -1,
      "$ref": "Playlist.Position"
    },
    "canchangespeed": {
      "default": false,
      "type": "boolean"
    }
  }
}</syntaxhighlight>}}


====Player.Repeat====
====Player.Repeat====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "off",
  "enums": [
    "off",
    "one",
    "all"
  ],
  "type": "string",
  "id": "Player.Repeat"
}</syntaxhighlight>}}
 
====Player.Speed====
====Player.Speed====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
'''Properties:'''
'''Properties:'''
*[ ''integer'' speed = 0 ]
*[ ''integer'' speed = 0 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "required": true,
  "type": "object",
  "id": "Player.Speed",
  "properties": {
    "speed": {
      "default": 0,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====Player.Subtitle====
====Player.Subtitle====
Line 1,694: Line 4,921:
*''string'' name
*''string'' name
*''string'' language
*''string'' language
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Player.Subtitle",
  "properties": {
    "index": {
      "minimum": 0,
      "type": "integer",
      "required": true
    },
    "name": {
      "required": true,
      "type": "string"
    },
    "language": {
      "required": true,
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Player.Type====
====Player.Type====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "video",
  "enums": [
    "video",
    "audio",
    "picture"
  ],
  "type": "string",
  "id": "Player.Type"
}</syntaxhighlight>}}
 
===Playlist===
===Playlist===
====Playlist.Id====
====Playlist.Id====
'''Type:''' ''integer''
'''Type:''' ''integer''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": -1,
  "minimum": 0,
  "type": "integer",
  "id": "Playlist.Id",
  "maximum": 2
}</syntaxhighlight>}}
 
====Playlist.Item====
====Playlist.Item====
'''Type:''' ''mixed''
'''Type:''' ''mixed''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": [
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "file": {
          "required": true,
          "type": "string",
          "description": "Path to a file (not a directory) to be added to the playlist"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "directory": {
          "required": true,
          "type": "string"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "movieid": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "episodeid": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "musicvideoid": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "artistid": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "albumid": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "songid": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    },
    {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "genreid": {
          "required": true,
          "description": "Identification of a genre from the AudioLibrary",
          "$ref": "Library.Id"
        }
      }
    }
  ],
  "id": "Playlist.Item"
}</syntaxhighlight>}}
 
====Playlist.Position====
====Playlist.Position====
'''Type:''' ''integer''
'''Type:''' ''integer''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": -1,
  "minimum": 0,
  "type": "integer",
  "id": "Playlist.Position"
}</syntaxhighlight>}}
 
====Playlist.Property.Name====
====Playlist.Property.Name====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "type",
  "enums": [
    "type",
    "size"
  ],
  "type": "string",
  "id": "Playlist.Property.Name"
}</syntaxhighlight>}}
 
====Playlist.Property.Value====
====Playlist.Property.Value====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
Line 1,711: Line 5,086:
*[ ''[[#Playlist.Type|Playlist.Type]]'' type = "unknown" ]
*[ ''[[#Playlist.Type|Playlist.Type]]'' type = "unknown" ]
*[ ''integer'' size = 0 ]
*[ ''integer'' size = 0 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "Playlist.Property.Value",
  "properties": {
    "type": {
      "default": "unknown",
      "$ref": "Playlist.Type"
    },
    "size": {
      "default": 0,
      "minimum": 0,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====Playlist.Type====
====Playlist.Type====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "unknown",
  "enums": [
    "unknown",
    "video",
    "audio",
    "picture",
    "mixed"
  ],
  "type": "string",
  "id": "Playlist.Type"
}</syntaxhighlight>}}
 
===System===
===System===
====System.Property.Name====
====System.Property.Name====
'''Type:''' ''string''
'''Type:''' ''string''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "default": "canshutdown",
  "enums": [
    "canshutdown",
    "cansuspend",
    "canhibernate",
    "canreboot"
  ],
  "type": "string",
  "id": "System.Property.Name"
}</syntaxhighlight>}}
 
====System.Property.Value====
====System.Property.Value====
'''Type:''' ''object''<br />
'''Type:''' ''object''<br />
Line 1,724: Line 5,137:
*[ ''boolean'' canhibernate = False ]
*[ ''boolean'' canhibernate = False ]
*[ ''boolean'' canshutdown = False ]
*[ ''boolean'' canshutdown = False ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "type": "object",
  "id": "System.Property.Value",
  "properties": {
    "canreboot": {
      "default": false,
      "type": "boolean"
    },
    "cansuspend": {
      "default": false,
      "type": "boolean"
    },
    "canhibernate": {
      "default": false,
      "type": "boolean"
    },
    "canshutdown": {
      "default": false,
      "type": "boolean"
    }
  }
}</syntaxhighlight>}}


===Video===
===Video===
====Video.Cast====
====Video.Cast====
'''Type:''' ''array''
'''Type:''' ''array''{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "additionalProperties": false,
    "type": "object",
    "properties": {
      "role": {
        "required": true,
        "type": "string"
      },
      "name": {
        "required": true,
        "type": "string"
      },
      "thumbnail": {
        "default": "",
        "type": "string"
      }
    }
  },
  "type": "array",
  "id": "Video.Cast"
}</syntaxhighlight>}}
 
====Video.Details.Base====
====Video.Details.Base====
'''Extends:'''
'''Extends:'''
Line 1,734: Line 5,191:
'''Properties:'''
'''Properties:'''
*[ ''integer'' playcount = 0 ]
*[ ''integer'' playcount = 0 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Media.Details.Base",
  "id": "Video.Details.Base",
  "properties": {
    "playcount": {
      "default": 0,
      "type": "integer"
    }
  }
}</syntaxhighlight>}}


====Video.Details.Episode====
====Video.Details.Episode====
Line 1,752: Line 5,219:
*[ ''string'' firstaired = "" ]
*[ ''string'' firstaired = "" ]
*[ ''string'' showtitle = "" ]
*[ ''string'' showtitle = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.File",
  "id": "Video.Details.Episode",
  "properties": {
    "rating": {
      "default": 0,
      "type": "number"
    },
    "tvshowid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "votes": {
      "default": "",
      "type": "string"
    },
    "episode": {
      "default": 0,
      "type": "integer"
    },
    "productioncode": {
      "default": "",
      "type": "string"
    },
    "season": {
      "default": 0,
      "type": "integer"
    },
    "writer": {
      "default": "",
      "type": "string"
    },
    "episodeid": {
      "required": true,
      "$ref": "Library.Id"
    },
    "originaltitle": {
      "default": "",
      "type": "string"
    },
    "cast": {
      "$ref": "Video.Cast"
    },
    "firstaired": {
      "default": "",
      "type": "string"
    },
    "showtitle": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Video.Details.File====
====Video.Details.File====
Line 1,762: Line 5,282:
*[ ''string'' runtime = "" ]
*[ ''string'' runtime = "" ]
*[ ''[[#Video.Resume|Video.Resume]]'' resume ]
*[ ''[[#Video.Resume|Video.Resume]]'' resume ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.Item",
  "id": "Video.Details.File",
  "properties": {
    "director": {
      "default": "",
      "type": "string"
    },
    "streamdetails": {
      "$ref": "Video.Streams"
    },
    "runtime": {
      "default": "",
      "type": "string"
    },
    "resume": {
      "$ref": "Video.Resume"
    }
  }
}</syntaxhighlight>}}


====Video.Details.Item====
====Video.Details.Item====
Line 1,771: Line 5,311:
*[ ''string'' lastplayed = "" ]
*[ ''string'' lastplayed = "" ]
*[ ''string'' file = "" ]
*[ ''string'' file = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.Media",
  "id": "Video.Details.Item",
  "properties": {
    "plot": {
      "default": "",
      "type": "string"
    },
    "lastplayed": {
      "default": "",
      "type": "string"
    },
    "file": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Video.Details.Media====
====Video.Details.Media====
Line 1,778: Line 5,336:
'''Properties:'''
'''Properties:'''
*[ ''string'' title = "" ]
*[ ''string'' title = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.Base",
  "id": "Video.Details.Media",
  "properties": {
    "title": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Video.Details.Movie====
====Video.Details.Movie====
Line 1,806: Line 5,374:
*[ ''integer'' top250 = 0 ]
*[ ''integer'' top250 = 0 ]
*[ ''string'' trailer = "" ]
*[ ''string'' trailer = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.File",
  "id": "Video.Details.Movie",
  "properties": {
    "rating": {
      "default": 0,
      "type": "number"
    },
    "set": {
      "$ref": "Array.String"
    },
    "year": {
      "default": 0,
      "type": "integer"
    },
    "setid": {
      "$ref": "Array.Integer"
    },
    "votes": {
      "default": "",
      "type": "string"
    },
    "tagline": {
      "default": "",
      "type": "string"
    },
    "writer": {
      "default": "",
      "type": "string"
    },
    "plotoutline": {
      "default": "",
      "type": "string"
    },
    "sorttitle": {
      "default": "",
      "type": "string"
    },
    "imdbnumber": {
      "default": "",
      "type": "string"
    },
    "studio": {
      "default": "",
      "type": "string"
    },
    "showlink": {
      "default": "",
      "type": "string"
    },
    "genre": {
      "default": "",
      "type": "string"
    },
    "movieid": {
      "required": true,
      "$ref": "Library.Id"
    },
    "productioncode": {
      "default": "",
      "type": "string"
    },
    "country": {
      "default": "",
      "type": "string"
    },
    "premiered": {
      "default": "",
      "type": "string"
    },
    "originaltitle": {
      "default": "",
      "type": "string"
    },
    "cast": {
      "$ref": "Video.Cast"
    },
    "mpaa": {
      "default": "",
      "type": "string"
    },
    "top250": {
      "default": 0,
      "type": "integer"
    },
    "trailer": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Video.Details.MovieSet====
====Video.Details.MovieSet====
Line 1,813: Line 5,472:
'''Properties:'''
'''Properties:'''
*''[[#Library.Id|Library.Id]]'' setid
*''[[#Library.Id|Library.Id]]'' setid
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.Media",
  "id": "Video.Details.MovieSet",
  "properties": {
    "setid": {
      "required": true,
      "$ref": "Library.Id"
    }
  }
}</syntaxhighlight>}}


====Video.Details.MovieSet.Extended====
====Video.Details.MovieSet.Extended====
Line 1,820: Line 5,489:
'''Properties:'''
'''Properties:'''
*[ ''[[#Video.Details.Movie|Video.Details.Movie]]''[] movies ]
*[ ''[[#Video.Details.Movie|Video.Details.Movie]]''[] movies ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.MovieSet",
  "id": "Video.Details.MovieSet.Extended",
  "properties": {
    "movies": {
      "items": {
        "$ref": "Video.Details.Movie"
      },
      "type": "array"
    }
  }
}</syntaxhighlight>}}


====Video.Details.MusicVideo====
====Video.Details.MusicVideo====
Line 1,833: Line 5,514:
*[ ''string'' genre = "" ]
*[ ''string'' genre = "" ]
*''[[#Library.Id|Library.Id]]'' musicvideoid
*''[[#Library.Id|Library.Id]]'' musicvideoid
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.File",
  "id": "Video.Details.MusicVideo",
  "properties": {
    "album": {
      "default": "",
      "type": "string"
    },
    "artist": {
      "default": "",
      "type": "string"
    },
    "track": {
      "default": 0,
      "type": "integer"
    },
    "studio": {
      "default": "",
      "type": "string"
    },
    "year": {
      "default": 0,
      "type": "integer"
    },
    "genre": {
      "default": "",
      "type": "string"
    },
    "musicvideoid": {
      "required": true,
      "$ref": "Library.Id"
    }
  }
}</syntaxhighlight>}}


====Video.Details.Season====
====Video.Details.Season====
Line 1,843: Line 5,558:
*[ ''integer'' episode = 0 ]
*[ ''integer'' episode = 0 ]
*[ ''string'' showtitle = "" ]
*[ ''string'' showtitle = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.Base",
  "id": "Video.Details.Season",
  "properties": {
    "season": {
      "required": true,
      "type": "integer"
    },
    "tvshowid": {
      "default": -1,
      "$ref": "Library.Id"
    },
    "episode": {
      "default": 0,
      "type": "integer"
    },
    "showtitle": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Video.Details.TVShow====
====Video.Details.TVShow====
Line 1,863: Line 5,600:
*[ ''string'' sorttitle = "" ]
*[ ''string'' sorttitle = "" ]
*[ ''string'' genre = "" ]
*[ ''string'' genre = "" ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "extends": "Video.Details.Item",
  "id": "Video.Details.TVShow",
  "properties": {
    "episodeguide": {
      "default": "",
      "type": "string"
    },
    "tvshowid": {
      "required": true,
      "$ref": "Library.Id"
    },
    "episode": {
      "default": 0,
      "type": "integer"
    },
    "imdbnumber": {
      "default": "",
      "type": "string"
    },
    "rating": {
      "default": 0,
      "type": "number"
    },
    "mpaa": {
      "default": "",
      "type": "string"
    },
    "year": {
      "default": 0,
      "type": "integer"
    },
    "votes": {
      "default": "",
      "type": "string"
    },
    "premiered": {
      "default": "",
      "type": "string"
    },
    "originaltitle": {
      "default": "",
      "type": "string"
    },
    "cast": {
      "$ref": "Video.Cast"
    },
    "studio": {
      "default": "",
      "type": "string"
    },
    "sorttitle": {
      "default": "",
      "type": "string"
    },
    "genre": {
      "default": "",
      "type": "string"
    }
  }
}</syntaxhighlight>}}


====Video.Fields.Episode====
====Video.Fields.Episode====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "plot",
      "votes",
      "rating",
      "writer",
      "firstaired",
      "playcount",
      "runtime",
      "director",
      "productioncode",
      "season",
      "episode",
      "originaltitle",
      "showtitle",
      "cast",
      "streamdetails",
      "lastplayed",
      "fanart",
      "thumbnail",
      "file",
      "resume",
      "tvshowid"
    ],
    "type": "string",
    "description": "Requesting the cast and/or resume field will result in increased response times"
  },
  "extends": "Item.Fields.Base",
  "id": "Video.Fields.Episode"
}</syntaxhighlight>}}


====Video.Fields.Movie====
====Video.Fields.Movie====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "genre",
      "year",
      "rating",
      "director",
      "trailer",
      "tagline",
      "plot",
      "plotoutline",
      "originaltitle",
      "lastplayed",
      "playcount",
      "writer",
      "studio",
      "mpaa",
      "cast",
      "country",
      "imdbnumber",
      "premiered",
      "productioncode",
      "runtime",
      "set",
      "showlink",
      "streamdetails",
      "top250",
      "votes",
      "fanart",
      "thumbnail",
      "file",
      "sorttitle",
      "resume",
      "setid"
    ],
    "type": "string",
    "description": "Requesting the cast, set, showling and/or resume field will result in increased response times"
  },
  "extends": "Item.Fields.Base",
  "id": "Video.Fields.Movie"
}</syntaxhighlight>}}


====Video.Fields.MovieSet====
====Video.Fields.MovieSet====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "playcount",
      "fanart",
      "thumbnail"
    ],
    "type": "string"
  },
  "extends": "Item.Fields.Base",
  "id": "Video.Fields.MovieSet"
}</syntaxhighlight>}}


====Video.Fields.MusicVideo====
====Video.Fields.MusicVideo====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "playcount",
      "runtime",
      "director",
      "studio",
      "year",
      "plot",
      "album",
      "artist",
      "genre",
      "track",
      "streamdetails",
      "lastplayed",
      "fanart",
      "thumbnail",
      "file",
      "resume"
    ],
    "type": "string",
    "description": "Requesting the resume field will result in increased response times"
  },
  "extends": "Item.Fields.Base",
  "id": "Video.Fields.MusicVideo"
}</syntaxhighlight>}}


====Video.Fields.Season====
====Video.Fields.Season====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "season",
      "showtitle",
      "playcount",
      "episode",
      "fanart",
      "thumbnail",
      "tvshowid"
    ],
    "type": "string"
  },
  "extends": "Item.Fields.Base",
  "id": "Video.Fields.Season"
}</syntaxhighlight>}}


====Video.Fields.TVShow====
====Video.Fields.TVShow====
'''Extends:'''
'''Extends:'''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
*''[[#Item.Fields.Base|Item.Fields.Base]]''
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "items": {
    "enums": [
      "title",
      "genre",
      "year",
      "rating",
      "plot",
      "studio",
      "mpaa",
      "cast",
      "playcount",
      "episode",
      "imdbnumber",
      "premiered",
      "votes",
      "lastplayed",
      "fanart",
      "thumbnail",
      "file",
      "originaltitle",
      "sorttitle",
      "episodeguide"
    ],
    "type": "string",
    "description": "Requesting the cast field will result in increased response times"
  },
  "extends": "Item.Fields.Base",
  "id": "Video.Fields.TVShow"
}</syntaxhighlight>}}


====Video.Resume====
====Video.Resume====
Line 1,893: Line 5,851:
*[ ''number'' position = 0 ]
*[ ''number'' position = 0 ]
*[ ''number'' total = 0 ]
*[ ''number'' total = 0 ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "additionalProperties": false,
  "type": "object",
  "id": "Video.Resume",
  "properties": {
    "position": {
      "default": 0,
      "minimum": 0,
      "type": "number"
    },
    "total": {
      "default": 0,
      "minimum": 0,
      "type": "number"
    }
  }
}</syntaxhighlight>}}


====Video.Streams====
====Video.Streams====
Line 1,900: Line 5,875:
*[ ''array''[1..X] audio ]
*[ ''array''[1..X] audio ]
*[ ''array''[1..X] subtitle ]
*[ ''array''[1..X] subtitle ]
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "additionalProperties": false,
  "type": "object",
  "id": "Video.Streams",
  "properties": {
    "video": {
      "minItems": 1,
      "items": {
        "additionalProperties": false,
        "type": "object",
        "properties": {
          "duration": {
            "default": 0,
            "type": "integer"
          },
          "width": {
            "default": 0,
            "type": "integer"
          },
          "codec": {
            "default": "",
            "type": "string"
          },
          "aspect": {
            "default": 0,
            "type": "number"
          },
          "height": {
            "default": 0,
            "type": "integer"
          }
        }
      },
      "type": "array"
    },
    "audio": {
      "minItems": 1,
      "items": {
        "additionalProperties": false,
        "type": "object",
        "properties": {
          "channels": {
            "default": 0,
            "type": "integer"
          },
          "codec": {
            "default": "",
            "type": "string"
          },
          "language": {
            "default": "",
            "type": "string"
          }
        }
      },
      "type": "array"
    },
    "subtitle": {
      "minItems": 1,
      "items": {
        "additionalProperties": false,
        "type": "object",
        "properties": {
          "language": {
            "default": "",
            "type": "string"
          }
        }
      },
      "type": "array"
    }
  }
}</syntaxhighlight>}}




Line 1,915: Line 5,963:


</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "object",
      "name": "data",
      "properties": {
        "type": {
          "required": true,
          "$ref": "Notifications.Library.Audio.Type"
        },
        "id": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    }
  ],
  "description": "An audio item has been removed."
}</syntaxhighlight>}}


====AudioLibrary.OnUpdate====
====AudioLibrary.OnUpdate====
Line 1,928: Line 6,001:


</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "object",
      "name": "data",
      "properties": {
        "type": {
          "enum": [
            "song"
          ],
          "type": "string",
          "id": "Notifications.Library.Audio.Type",
          "required": true
        },
        "id": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    }
  ],
  "description": "An audio item has been updated."
}</syntaxhighlight>}}


===Player===
===Player===
Line 1,938: Line 6,040:
#''[[#Player.Notifications.Data|Player.Notifications.Data]]'' data
#''[[#Player.Notifications.Data|Player.Notifications.Data]]'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "name": "data",
      "$ref": "Player.Notifications.Data"
    }
  ],
  "description": "Playback of a media item has been paused. If there is no ID available extra information will be provided."
}</syntaxhighlight>}}


====Player.OnPlay====
====Player.OnPlay====
Line 1,947: Line 6,064:
#''[[#Player.Notifications.Data|Player.Notifications.Data]]'' data
#''[[#Player.Notifications.Data|Player.Notifications.Data]]'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "name": "data",
      "$ref": "Player.Notifications.Data"
    }
  ],
  "description": "Playback of a media item has been started or the playback speed has changed. If there is no ID available extra information will be provided."
}</syntaxhighlight>}}


====Player.OnSeek====
====Player.OnSeek====
Line 1,960: Line 6,092:


</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "object",
      "name": "data",
      "properties": {
        "item": {
          "$ref": "Player.Notifications.Item"
        },
        "player": {
          "required": true,
          "$ref": "Player.Notifications.Player.Seek"
        }
      }
    }
  ],
  "description": "The playback position has been changed. If there is no ID available extra information will be provided."
}</syntaxhighlight>}}


====Player.OnSpeedChanged====
====Player.OnSpeedChanged====
Line 1,969: Line 6,125:
#''[[#Player.Notifications.Data|Player.Notifications.Data]]'' data
#''[[#Player.Notifications.Data|Player.Notifications.Data]]'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "name": "data",
      "$ref": "Player.Notifications.Data"
    }
  ],
  "description": "Speed of the playback of a media item has been changed. If there is no ID available extra information will be provided."
}</syntaxhighlight>}}


====Player.OnStop====
====Player.OnStop====
Line 1,981: Line 6,152:


</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "object",
      "name": "data",
      "properties": {
        "item": {
          "$ref": "Player.Notifications.Item"
        }
      }
    }
  ],
  "description": "Playback of a media item has been stopped. If there is no ID available extra information will be provided."
}</syntaxhighlight>}}


===System===
===System===
Line 1,991: Line 6,182:
#''null'' data
#''null'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "null",
      "name": "data"
    }
  ],
  "description": "The system is on low battery."
}</syntaxhighlight>}}


====System.OnQuit====
====System.OnQuit====
Line 2,000: Line 6,206:
#''null'' data
#''null'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "null",
      "name": "data"
    }
  ],
  "description": "XBMC will be closed."
}</syntaxhighlight>}}


====System.OnRestart====
====System.OnRestart====
Line 2,009: Line 6,230:
#''null'' data
#''null'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "null",
      "name": "data"
    }
  ],
  "description": "The system will be restarted."
}</syntaxhighlight>}}


====System.OnSleep====
====System.OnSleep====
Line 2,018: Line 6,254:
#''null'' data
#''null'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "null",
      "name": "data"
    }
  ],
  "description": "The system will be suspended."
}</syntaxhighlight>}}


====System.OnWake====
====System.OnWake====
Line 2,027: Line 6,278:
#''null'' data
#''null'' data
</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "null",
      "name": "data"
    }
  ],
  "description": "The system woke up from suspension."
}</syntaxhighlight>}}


===VideoLibrary===
===VideoLibrary===
Line 2,041: Line 6,307:


</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "object",
      "name": "data",
      "properties": {
        "type": {
          "required": true,
          "$ref": "Notifications.Library.Video.Type"
        },
        "id": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    }
  ],
  "description": "A video item has been removed."
}</syntaxhighlight>}}


====VideoLibrary.OnUpdate====
====VideoLibrary.OnUpdate====
Line 2,055: Line 6,346:


</div>
</div>
'''Returns:''' null
 
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript">{
  "params": [
    {
      "required": true,
      "type": "string",
      "name": "sender"
    },
    {
      "required": true,
      "type": "object",
      "name": "data",
      "properties": {
        "playcount": {
          "default": -1,
          "minimum": 0,
          "type": "integer"
        },
        "type": {
          "enum": [
            "movie",
            "tvshow",
            "episode",
            "musicvideo"
          ],
          "type": "string",
          "id": "Notifications.Library.Video.Type",
          "required": true
        },
        "id": {
          "required": true,
          "$ref": "Library.Id"
        }
      }
    }
  ],
  "description": "A video item has been updated."
}</syntaxhighlight>}}


==See also==
==See also==

Revision as of 14:51, 20 November 2011

Version 3 is a development version of XBMC's JSON-RPC API and will be released as a stable version 4 with the release of Eden. It is a complete re-write and re-structuring of version 2 and therefore isn't backwards compatible to it. The main reason for this was the need to make this version fully compatible with all the functionality, features and requirements of the JSON-RPC 2.0 specification. This was a main concern during early development to make it easier for third party developers and applications to interact with XBMC's JSON-RPC API by using existing JSON-RPC libraries.

An rough and incomplete list of changes compared to version 2 can be found here. A more complete and detailed list can be found in the forum.

JSON-RPC 2.0 compatibility

Version Method calls Notifications
(server-side)
Notifications
(client-side)
Parameters
by-name
Parameters
by-position
Bulk requests
Version 3 Yes Yes Yes Yes Yes Yes

Documentation (JSON Schema)

Starting with JSON-RPC API version 3 a new way of API documentation has been introduced. All methods and data types are described using JSON Schema. This provides third party developers with an always complete and up-to-date documentation by calling JSONRPC.Introspect even during periods of heavy development. Furthermore the same method and data type specification that can be used by third party developers as a documentation is used by XBMC to check and verify method parameters and their values on every JSON-RPC request and allows to provide detailed error messages in case of a bad or missing parameter.

Supported features of JSON Schema

Schema IETF Draft 03
type Yes
properties Yes
patternProperties No
additionalProperties Yes
items Yes
additionalItems Yes
required Yes
dependencies No
minimum Yes
maximum Yes
Schema IETF Draft 03
exclusiveMinimum Yes
exclusiveMaximum Yes
minItems Yes
maxItems Yes
uniqueItems Yes
pattern No
minLength Yes
maxLength Yes
enum Yes
default Yes
Schema IETF Draft 03
title No
description Yes
format No
divisibleBy Yes
disallow No
extends Yes
id Yes
$ref Yes
$schema No
Hyper Schema No

Error message

If XBMC detects a bad or missing parameter in a JSON-RPC request it returns an error object. The JSON schema description of that error object is

{
  "type": "object",
  "properties": {
    "code": { "type": "integer", "required": true },
    "message": { "type": "string", "required": true },
    "data": { "type": "object",
      "properties": {
        "method": { "type": "string", "required": true },
        "stack": { "type": "object", "id": "Error.Stack",
          "properties": {
            "name": { "type": "string", "required": true },
            "type": { "type": "string", "required": true },
            "message": { "type": "string", "required": true },
            "property": { "$ref": "Error.Stack" }
          }
        }
      }
    }
  }
}

Namespaces

The XBMC JSON-RPC API is split up into namespaces, which contain methods that can be called. These namespaces are:

JSONRPC          A variety of standard JSONRPC calls
Player           Manages all available players
Playlist         Playlist modification
Files            Shares information
AudioLibrary     Audio Library information
VideoLibrary     Video Library information
Input            Allows limited navigation within XBMC
Application      Application information and control
System           System controls and information
XBMC             Dumping ground for very XBMC specific operations

Methods

Application

Application.GetProperties

Retrieves the values of the given properties
Permissions:

  • ReadData

Parameters:

  1. Application.Property.Name[] properties

Returns: Application.Property.Value

Application.Quit

Quit application
Permissions:

  • ControlPower

Parameters: None
Returns: string

Application.SetMute

Toggle mute/unmute
Permissions:

  • ControlPlayback

Parameters:

  1. mixed mute

Returns: boolean

Application.SetVolume

Set the current volume
Permissions:

  • ControlPlayback

Parameters:

  1. integer volume

Returns: integer

AudioLibrary

AudioLibrary.Clean

Cleans the audio library from non-existent items
Permissions:

  • RemoveData

Parameters: None
Returns: string

AudioLibrary.Export

Exports all items from the audio library
Permissions:

  • WriteFile

Parameters:

  1. [ mixed options ]

Returns: string

AudioLibrary.GetAlbumDetails

Retrieve details about a specific album
Permissions:

  • ReadData

Parameters:

  1. Library.Id albumid
  2. [ Audio.Fields.Album properties ]

Returns:

Type: object
Properties:

AudioLibrary.GetAlbums

Retrieve all albums from specified artist or genre
Permissions:

  • ReadData

Parameters:

  1. [ Library.Id artistid = -1 ]
  2. [ Library.Id genreid = -1 ]
  3. [ Audio.Fields.Album properties ]
  4. [ List.Limits limits ]
  5. [ List.Sort sort ]

Returns:

Type: object
Properties:

AudioLibrary.GetArtistDetails

Retrieve details about a specific artist
Permissions:

  • ReadData

Parameters:

  1. Library.Id artistid
  2. [ Audio.Fields.Artist properties ]

Returns:

Type: object
Properties:

AudioLibrary.GetArtists

Retrieve all artists
Permissions:

  • ReadData

Parameters:

  1. [ Optional.Boolean albumartistsonly = null ]
  2. [ Library.Id genreid = -1 ]
  3. [ Audio.Fields.Artist properties ]
  4. [ List.Limits limits ]
  5. [ List.Sort sort ]

Returns:

Type: object
Properties:

AudioLibrary.GetGenres

Retrieve all genres
Permissions:

  • ReadData

Parameters:

  1. [ Library.Fields.Genre properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

AudioLibrary.GetRecentlyAddedAlbums

Retrieve recently added albums
Permissions:

  • ReadData

Parameters:

  1. [ Audio.Fields.Album properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

AudioLibrary.GetRecentlyAddedSongs

Retrieve recently added songs
Permissions:

  • ReadData

Parameters:

  1. [ List.Amount albumlimit = -1 ]
  2. [ Audio.Fields.Song properties ]
  3. [ List.Limits limits ]
  4. [ List.Sort sort ]

Returns:

Type: object
Properties:

AudioLibrary.GetSongDetails

Retrieve details about a specific song
Permissions:

  • ReadData

Parameters:

  1. Library.Id songid
  2. [ Audio.Fields.Song properties ]

Returns:

Type: object
Properties:

AudioLibrary.GetSongs

Retrieve all songs from specified album, artist or genre
Permissions:

  • ReadData

Parameters:

  1. [ Library.Id artistid = -1 ]
  2. [ Library.Id albumid = -1 ]
  3. [ Library.Id genreid = -1 ]
  4. [ Audio.Fields.Song properties ]
  5. [ List.Limits limits ]
  6. [ List.Sort sort ]

Returns:

Type: object
Properties:

AudioLibrary.Scan

Scans the audio sources for new library items
Permissions:

  • UpdateData

Parameters: None
Returns: string

Files

Files.Download

Provides a way to download a given file (e.g. providing an URL to the real file location)
Permissions:

  • ReadData

Parameters:

  1. string path

Returns:

Type: object
Properties:

  • string path

Files.GetDirectory

Get the directories and files in the given directory
Permissions:

  • ReadData

Parameters:

  1. string directory
  2. [ Files.Media media = "files" ]
  3. [ List.Fields.All properties ]
  4. [ List.Sort sort ]

Returns:

Type: object
Properties:

Files.GetSources

Get the sources of the media windows
Permissions:

  • ReadData

Parameters:

  1. Files.Media media
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

Input

Input.Back

Goes back in GUI
Permissions:

  • Navigate

Parameters: None
Returns: string

Input.Down

Navigate down in GUI
Permissions:

  • Navigate

Parameters: None
Returns: string

Input.Home

Goes to home window in GUI
Permissions:

  • Navigate

Parameters: None
Returns: string

Input.Left

Navigate left in GUI
Permissions:

  • Navigate

Parameters: None
Returns: string

Input.Right

Navigate right in GUI
Permissions:

  • Navigate

Parameters: None
Returns: string

Input.Select

Select current item in GUI
Permissions:

  • Navigate

Parameters: None
Returns: string

Input.Up

Navigate up in GUI
Permissions:

  • Navigate

Parameters: None
Returns: string

JSONRPC

JSONRPC.Introspect

Enumerates all actions and descriptions
Permissions:

  • ReadData

Parameters:

  1. [ boolean getdescriptions = True ]
  2. [ boolean getmetadata = False ]
  3. [ boolean filterbytransport = True ]
  4. [ object filter ]

Properties:

  • string type
  • string id
  • [ boolean getreferences = True ]

Returns:

Type: object

JSONRPC.NotifyAll

Notify all other connected clients
Permissions:

  • ReadData

Parameters:

  1. string sender
  2. string message
  3. [ any data = null ]

Returns: any

JSONRPC.Permission

Retrieve the clients permissions
Permissions:

  • ReadData

Parameters: None
Returns:

Type: object
Properties:

  • boolean navigate
  • boolean removedata
  • boolean controlplayback
  • boolean readdata
  • boolean updatedata
  • boolean writefile
  • boolean controlnotify
  • boolean controlpower

JSONRPC.Ping

Ping responder
Permissions:

  • ReadData

Parameters: None
Returns: string

JSONRPC.Version

Retrieve the jsonrpc protocol version
Permissions:

  • ReadData

Parameters: None
Returns: string

Player

Player.GetActivePlayers

Returns all active players
Permissions:

  • ReadData

Parameters: None
Returns:

Type: array

Player.GetItem

Retrieves the currently played item
Permissions:

  • ReadData

Parameters:

  1. Player.Id playerid
  2. [ List.Fields.All properties ]

Returns:

Type: object
Properties:

Player.GetProperties

Retrieves the values of the given properties
Permissions:

  • ReadData

Parameters:

  1. Player.Id playerid
  2. Player.Property.Name[] properties

Returns: Player.Property.Value

Player.GoNext

Go to next item on the playlist
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.GoPrevious

Go to previous item on the playlist
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.GoTo

Go to item at the given position in the playlist
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid
  2. Playlist.Position position

Returns: string

Player.MoveDown

If picture is zoomed move viewport down
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.MoveLeft

If picture is zoomed move viewport left otherwise skip previous
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.MoveRight

If picture is zoomed move viewport right otherwise skip next
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.MoveUp

If picture is zoomed move viewport up
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.Open

Start playback of either the playlist with the given ID, a slideshow with the pictures from the given directory or a single file or an item from the database.
Permissions:

  • ControlPlayback

Parameters:

  1. [ mixed item ]

Returns: string

Player.PlayPause

Pauses or unpause playback and returns the new state
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: Player.Speed

Player.Repeat

Set the repeat mode of the player
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid
  2. Player.Repeat state

Returns: string

Player.Rotate

Rotates current picture
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.Seek

Seek through the playing item
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid
  2. mixed value

Returns:

Type: object
Properties:

Player.SetAudioStream

Set the audio stream played by the player
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid
  2. mixed stream

Returns: string

Player.SetSpeed

Set the speed of the current playback
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid
  2. mixed speed

Returns: Player.Speed

Player.SetSubtitle

Set the subtitle displayed by the player
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid
  2. mixed subtitle

Returns: string

Player.Shuffle

Shuffle items in the player
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.Stop

Stops playback
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.UnShuffle

Unshuffle items in the player
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.Zoom

Zooms current picture
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid
  2. integer value

Returns: string

Player.ZoomIn

Zoom in once
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Player.ZoomOut

Zoom out once
Permissions:

  • ControlPlayback

Parameters:

  1. Player.Id playerid

Returns: string

Playlist

Playlist.Add

Add item(s) to playlist
Permissions:

  • ControlPlayback

Parameters:

  1. Playlist.Id playlistid
  2. Playlist.Item item

Returns: string

Playlist.Clear

Clear playlist
Permissions:

  • ControlPlayback

Parameters:

  1. Playlist.Id playlistid

Returns: string

Playlist.GetItems

Get all items from playlist
Permissions:

  • ReadData

Parameters:

  1. Playlist.Id playlistid
  2. [ List.Fields.All properties ]
  3. [ List.Limits limits ]
  4. [ List.Sort sort ]

Returns:

Type: object
Properties:

Playlist.GetPlaylists

Returns all existing playlists
Permissions:

  • ReadData

Parameters: None
Returns:

Type: array

Playlist.GetProperties

Retrieves the values of the given properties
Permissions:

  • ReadData

Parameters:

  1. Playlist.Id playlistid
  2. Playlist.Property.Name[] properties

Returns: Playlist.Property.Value

Playlist.Insert

Insert item(s) into playlist. Does not work for picture playlists (aka slideshows).
Permissions:

  • ControlPlayback

Parameters:

  1. Playlist.Id playlistid
  2. Playlist.Position position
  3. Playlist.Item item

Returns: string

Playlist.Remove

Remove item from playlist. Does not work for picture playlists (aka slideshows).
Permissions:

  • ControlPlayback

Parameters:

  1. Playlist.Id playlistid
  2. Playlist.Position position

Returns: string

Playlist.Swap

Swap items in the playlist. Does not work for picture playlists (aka slideshows).
Permissions:

  • ControlPlayback

Parameters:

  1. Playlist.Id playlistid
  2. Playlist.Position position1
  3. Playlist.Position position2

Returns: string

System

System.GetProperties

Retrieves the values of the given properties
Permissions:

  • ReadData

Parameters:

  1. System.Property.Name[] properties

Returns: System.Property.Value

System.Hibernate

Puts the system running XBMC into hibernate mode
Permissions:

  • ControlPower

Parameters: None
Returns: string

System.Reboot

Reboots the system running XBMC
Permissions:

  • ControlPower

Parameters: None
Returns: string

System.Shutdown

Shuts the system running XBMC down
Permissions:

  • ControlPower

Parameters: None
Returns: string

System.Suspend

Suspends the system running XBMC
Permissions:

  • ControlPower

Parameters: None
Returns: string

VideoLibrary

VideoLibrary.Clean

Cleans the video library from non-existent items
Permissions:

  • RemoveData

Parameters: None
Returns: string

VideoLibrary.Export

Exports all items from the video library
Permissions:

  • WriteFile

Parameters:

  1. [ mixed options ]

Returns: string

VideoLibrary.GetEpisodeDetails

Retrieve details about a specific tv show episode
Permissions:

  • ReadData

Parameters:

  1. Library.Id episodeid
  2. [ Video.Fields.Episode properties ]

Returns:

Type: object
Properties:

VideoLibrary.GetEpisodes

Retrieve all tv show episodes
Permissions:

  • ReadData

Parameters:

  1. [ Library.Id tvshowid = -1 ]
  2. [ integer season = -1 ]
  3. [ Video.Fields.Episode properties ]
  4. [ List.Limits limits ]
  5. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetGenres

Retrieve all genres
Permissions:

  • ReadData

Parameters:

  1. string type
  2. [ Library.Fields.Genre properties ]
  3. [ List.Limits limits ]
  4. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetMovieDetails

Retrieve details about a specific movie
Permissions:

  • ReadData

Parameters:

  1. Library.Id movieid
  2. [ Video.Fields.Movie properties ]

Returns:

Type: object
Properties:

VideoLibrary.GetMovieSetDetails

Retrieve details about a specific movie set
Permissions:

  • ReadData

Parameters:

  1. Library.Id setid
  2. [ Video.Fields.MovieSet properties ]
  3. [ object movies ]

Properties:

Returns:

Type: object
Properties:

VideoLibrary.GetMovieSets

Retrieve all movie sets
Permissions:

  • ReadData

Parameters:

  1. [ Video.Fields.MovieSet properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetMovies

Retrieve all movies
Permissions:

  • ReadData

Parameters:

  1. [ Video.Fields.Movie properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetMusicVideoDetails

Retrieve details about a specific music video
Permissions:

  • ReadData

Parameters:

  1. Library.Id musicvideoid
  2. [ Video.Fields.MusicVideo properties ]

Returns:

Type: object
Properties:

VideoLibrary.GetMusicVideos

Retrieve all music videos
Permissions:

  • ReadData

Parameters:

  1. [ Library.Id artistid = -1 ]
  2. [ Library.Id albumid = -1 ]
  3. [ Video.Fields.MusicVideo properties ]
  4. [ List.Limits limits ]
  5. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetRecentlyAddedEpisodes

Retrieve all recently added tv episodes
Permissions:

  • ReadData

Parameters:

  1. [ Video.Fields.Episode properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetRecentlyAddedMovies

Retrieve all recently added movies
Permissions:

  • ReadData

Parameters:

  1. [ Video.Fields.Movie properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetRecentlyAddedMusicVideos

Retrieve all recently added music videos
Permissions:

  • ReadData

Parameters:

  1. [ Video.Fields.MusicVideo properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetSeasons

Retrieve all tv seasons
Permissions:

  • ReadData

Parameters:

  1. Library.Id tvshowid
  2. [ Video.Fields.Season properties ]
  3. [ List.Limits limits ]
  4. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.GetTVShowDetails

Retrieve details about a specific tv show
Permissions:

  • ReadData

Parameters:

  1. Library.Id tvshowid
  2. [ Video.Fields.TVShow properties ]

Returns:

Type: object
Properties:

VideoLibrary.GetTVShows

Retrieve all tv shows
Permissions:

  • ReadData

Parameters:

  1. [ Video.Fields.TVShow properties ]
  2. [ List.Limits limits ]
  3. [ List.Sort sort ]

Returns:

Type: object
Properties:

VideoLibrary.Scan

Scans the video sources for new library items
Permissions:

  • UpdateData

Parameters: None
Returns: string

XBMC

XBMC.GetInfoBooleans

Retrieve info booleans about XBMC and the system
Permissions:

  • ReadData

Parameters:

  1. array[1..X] booleans

Returns:

Type: object

XBMC.GetInfoLabels

Retrieve info labels about XBMC and the system
Permissions:

  • ReadData

Parameters:

  1. array[1..X] labels

Returns:

Type: object


Global types

Application

Application.Property.Name

Type: string

Application.Property.Value

Type: object
Properties:

  • [ boolean muted = False ]
  • [ integer volume = 0 ]
  • [ object version ]

Properties:

    • integer major
    • string tag
    • integer minor
    • [ mixed revision = null ]
  • [ string name = "" ]

Array

Array.Integer

Type: array

Array.String

Type: array

Audio

Audio.Details.Album

Extends:


Properties:

  • [ string style = "" ]
  • [ string mood = "" ]
  • [ string albumlabel = "" ]
  • [ string theme = "" ]
  • Library.Id albumid
  • [ Library.Id artistid = -1 ]
  • [ string type = "" ]
  • [ string description = "" ]

Audio.Details.Artist

Extends:


Properties:

  • [ string style = "" ]
  • [ string description = "" ]
  • [ string musicbrainzartistid = "" ]
  • string artist
  • [ string formed = "" ]
  • [ string disbanded = "" ]
  • [ string born = "" ]
  • Library.Id artistid
  • [ string yearsactive = "" ]
  • [ string instrument = "" ]
  • [ string died = "" ]
  • [ string mood = "" ]

Audio.Details.Base

Extends:


Properties:

  • [ string genre = "" ]

Audio.Details.Media

Extends:


Properties:

  • [ integer rating = 0 ]
  • [ string title = "" ]
  • [ string artist = "" ]
  • [ string musicbrainzalbumartistid = "" ]
  • [ integer year = 0 ]
  • [ string musicbrainzalbumid = "" ]

Audio.Details.Song

Extends:


Properties:

  • [ string album = "" ]
  • [ string comment = "" ]
  • Library.Id songid
  • [ string musicbrainzartistid = "" ]
  • [ string lyrics = "" ]
  • [ integer track = 0 ]
  • [ string musicbrainztrackid = "" ]
  • [ Library.Id albumid = -1 ]
  • [ Library.Id artistid = -1 ]
  • [ string albumartist = "" ]
  • [ string file = "" ]
  • [ integer duration = 0 ]
  • [ integer playcount = 0 ]

Audio.Fields.Album

Extends:

Audio.Fields.Artist

Extends:

Audio.Fields.Song

Extends:

Configuration

Configuration

Type: object
Properties:

Configuration.Notifications

Type: object
Properties:

  • boolean gui
  • boolean system
  • boolean player
  • boolean audiolibrary
  • boolean other
  • boolean videolibrary

Files

Files.Media

Type: string

Global

Global.Time

Type: object
Properties:

  • integer hours
  • integer seconds
  • integer minutes
  • integer milliseconds

Item

Item.Details.Base

Type: object
Properties:

  • string label

Item.Fields.Base

Type: array

Library

Library.Details.Genre

Extends:


Properties:

  • Library.Id genreid
  • [ string thumbnail = "" ]
  • [ string title = "" ]

Library.Fields.Genre

Extends:

Library.Id

Type: integer

List

List.Amount

Type: integer

List.Fields.All

Extends:

List.Item.All

Extends:


Properties:

  • [ string comment = "" ]
  • [ Library.Id tvshowid = -1 ]
  • [ Array.String set ]
  • [ string lyrics = "" ]
  • [ string albumartist = "" ]
  • [ integer duration = 0 ]
  • [ Array.Integer setid ]
  • [ Library.Id id = -1 ]
  • [ string album = "" ]
  • [ string votes = "" ]
  • [ string mpaa = "" ]
  • [ string writer = "" ]
  • [ Library.Id albumid = -1 ]
  • [ string type = "unknown" ]
  • [ string plotoutline = "" ]
  • [ integer track = 0 ]
  • [ integer season = 0 ]
  • [ string musicbrainztrackid = "" ]
  • [ string imdbnumber = "" ]
  • [ string studio = "" ]
  • [ string showlink = "" ]
  • [ string showtitle = "" ]
  • [ integer episode = 0 ]
  • [ string musicbrainzartistid = "" ]
  • [ string productioncode = "" ]
  • [ string country = "" ]
  • [ string premiered = "" ]
  • [ string originaltitle = "" ]
  • [ Video.Cast cast ]
  • [ Library.Id artistid = -1 ]
  • [ string firstaired = "" ]
  • [ string tagline = "" ]
  • [ integer top250 = 0 ]
  • [ string trailer = "" ]

List.Item.File

Extends:


Properties:

  • string filetype
  • string file

List.Items.Sources

Type: array

List.Limits

Type: object
Properties:

  • [ integer start = 0 ]
  • [ integer end = -1 ]

List.LimitsReturned

Type: object
Properties:

  • [ integer start = 0 ]
  • integer total
  • [ integer end = -1 ]

List.Sort

Type: object
Properties:

  • [ string order = "ascending" ]
  • [ boolean ignorearticle = False ]
  • [ string method = "none" ]

Media

Media.Details.Base

Extends:


Properties:

  • [ string fanart = "" ]
  • [ string thumbnail = "" ]

Optional

Optional.Boolean

Type: mixed

Player

Player.Audio.Stream

Type: object
Properties:

  • integer index
  • string name
  • string language

Player.Audio.Stream.Extended

Extends:


Properties:

  • integer channels
  • string codec
  • integer bitrate

Player.Id

Type: integer

Player.Notifications.Data

Type: object
Properties:

Player.Notifications.Item

Type: mixed

Player.Notifications.Item.Type

Type: string

Player.Notifications.Player

Type: object
Properties:

Player.Notifications.Player.Seek

Extends:


Properties:

Player.Position.Percentage

Type: number

Player.Property.Name

Type: string

Player.Property.Value

Type: object
Properties:

Player.Repeat

Type: string

Player.Speed

Type: object
Properties:

  • [ integer speed = 0 ]

Player.Subtitle

Type: object
Properties:

  • integer index
  • string name
  • string language

Player.Type

Type: string

Playlist

Playlist.Id

Type: integer

Playlist.Item

Type: mixed

Playlist.Position

Type: integer

Playlist.Property.Name

Type: string

Playlist.Property.Value

Type: object
Properties:

Playlist.Type

Type: string

System

System.Property.Name

Type: string

System.Property.Value

Type: object
Properties:

  • [ boolean canreboot = False ]
  • [ boolean cansuspend = False ]
  • [ boolean canhibernate = False ]
  • [ boolean canshutdown = False ]

Video

Video.Cast

Type: array

Video.Details.Base

Extends:


Properties:

  • [ integer playcount = 0 ]

Video.Details.Episode

Extends:


Properties:

  • [ number rating = 0 ]
  • [ Library.Id tvshowid = -1 ]
  • [ string votes = "" ]
  • [ integer episode = 0 ]
  • [ string productioncode = "" ]
  • [ integer season = 0 ]
  • [ string writer = "" ]
  • Library.Id episodeid
  • [ string originaltitle = "" ]
  • [ Video.Cast cast ]
  • [ string firstaired = "" ]
  • [ string showtitle = "" ]

Video.Details.File

Extends:


Properties:

Video.Details.Item

Extends:


Properties:

  • [ string plot = "" ]
  • [ string lastplayed = "" ]
  • [ string file = "" ]

Video.Details.Media

Extends:


Properties:

  • [ string title = "" ]

Video.Details.Movie

Extends:


Properties:

  • [ number rating = 0 ]
  • [ Array.String set ]
  • [ integer year = 0 ]
  • [ Array.Integer setid ]
  • [ string votes = "" ]
  • [ string tagline = "" ]
  • [ string writer = "" ]
  • [ string plotoutline = "" ]
  • [ string sorttitle = "" ]
  • [ string imdbnumber = "" ]
  • [ string studio = "" ]
  • [ string showlink = "" ]
  • [ string genre = "" ]
  • Library.Id movieid
  • [ string productioncode = "" ]
  • [ string country = "" ]
  • [ string premiered = "" ]
  • [ string originaltitle = "" ]
  • [ Video.Cast cast ]
  • [ string mpaa = "" ]
  • [ integer top250 = 0 ]
  • [ string trailer = "" ]

Video.Details.MovieSet

Extends:


Properties:

Video.Details.MovieSet.Extended

Extends:


Properties:

Video.Details.MusicVideo

Extends:


Properties:

  • [ string album = "" ]
  • [ string artist = "" ]
  • [ integer track = 0 ]
  • [ string studio = "" ]
  • [ integer year = 0 ]
  • [ string genre = "" ]
  • Library.Id musicvideoid

Video.Details.Season

Extends:


Properties:

  • integer season
  • [ Library.Id tvshowid = -1 ]
  • [ integer episode = 0 ]
  • [ string showtitle = "" ]

Video.Details.TVShow

Extends:


Properties:

  • [ string episodeguide = "" ]
  • Library.Id tvshowid
  • [ integer episode = 0 ]
  • [ string imdbnumber = "" ]
  • [ number rating = 0 ]
  • [ string mpaa = "" ]
  • [ integer year = 0 ]
  • [ string votes = "" ]
  • [ string premiered = "" ]
  • [ string originaltitle = "" ]
  • [ Video.Cast cast ]
  • [ string studio = "" ]
  • [ string sorttitle = "" ]
  • [ string genre = "" ]

Video.Fields.Episode

Extends:

Video.Fields.Movie

Extends:

Video.Fields.MovieSet

Extends:

Video.Fields.MusicVideo

Extends:

Video.Fields.Season

Extends:

Video.Fields.TVShow

Extends:

Video.Resume

Type: object
Properties:

  • [ number position = 0 ]
  • [ number total = 0 ]

Video.Streams

Type: object
Properties:

  • [ array[1..X] video ]
  • [ array[1..X] audio ]
  • [ array[1..X] subtitle ]


Notifications

AudioLibrary

AudioLibrary.OnRemove

An audio item has been removed.
Parameters:

  1. string sender
  2. object data

Properties:

AudioLibrary.OnUpdate

An audio item has been updated.
Parameters:

  1. string sender
  2. object data

Properties:

Player

Player.OnPause

Playback of a media item has been paused. If there is no ID available extra information will be provided.
Parameters:

  1. string sender
  2. Player.Notifications.Data data

Player.OnPlay

Playback of a media item has been started or the playback speed has changed. If there is no ID available extra information will be provided.
Parameters:

  1. string sender
  2. Player.Notifications.Data data

Player.OnSeek

The playback position has been changed. If there is no ID available extra information will be provided.
Parameters:

  1. string sender
  2. object data

Properties:

Player.OnSpeedChanged

Speed of the playback of a media item has been changed. If there is no ID available extra information will be provided.
Parameters:

  1. string sender
  2. Player.Notifications.Data data

Player.OnStop

Playback of a media item has been stopped. If there is no ID available extra information will be provided.
Parameters:

  1. string sender
  2. object data

Properties:

System

System.OnLowBattery

The system is on low battery.
Parameters:

  1. string sender
  2. null data

System.OnQuit

XBMC will be closed.
Parameters:

  1. string sender
  2. null data

System.OnRestart

The system will be restarted.
Parameters:

  1. string sender
  2. null data

System.OnSleep

The system will be suspended.
Parameters:

  1. string sender
  2. null data

System.OnWake

The system woke up from suspension.
Parameters:

  1. string sender
  2. null data

VideoLibrary

VideoLibrary.OnRemove

A video item has been removed.
Parameters:

  1. string sender
  2. object data

Properties:

VideoLibrary.OnUpdate

A video item has been updated.
Parameters:

  1. string sender
  2. object data

Properties:

  • [ integer playcount = -1 ]
  • string type
  • Library.Id id

See also

External links