Player
public enum Player
Manages all available players (Kodi Namespace & Kodi Global Type)
Note
Fuctions inPlayer that will give a response are ‘Asynchronous’; others are not
-
The audio details of the player (Global Kodi Type)
See moreDeclaration
Swift
enum Audio -
The direction for
See moregoTo(playerID:position:)(SwiftlyKodi Type)Declaration
Swift
enum GoToDirection : String, Codable -
The ID of the player (Global Kodi Type)
See moreDeclaration
Swift
enum ID : Int, Codable -
The type of player (SwiftlyKodi Type)
See moreDeclaration
Swift
enum MediaType : String, Decodable -
Party mode of the player (SwiftlyKodi Type)
See moreDeclaration
Swift
enum PartyMode : String, Encodable -
The position details of the player (Global Kodi Type)
See moreDeclaration
Swift
enum Position -
The properties of the player (Global Kodi Type)
See moreDeclaration
Swift
enum Property -
The repeat mode of the player (Global Kodi Type)
See moreDeclaration
Swift
enum Repeat : String, Decodable -
The current subtitle of the player (Global Kodi Type)
See moreDeclaration
Swift
struct Subtitle : Decodable -
The video details of the player (Global Kodi Type)
See moreDeclaration
Swift
enum Video
-
getActivePlayers()Asynchronous
-
getItem(playerID:Asynchronous)
-
getProperties(playerID:Asynchronous)
-
Go to previous/next in the playlist (Kodi API)
Declaration
Swift
public static func goTo(playerID: Player.ID, direction: Player.GoToDirection)Parameters
playerIDThe
IDof the playerdirectionThe
GoToDirection
View on GitHub
Player Enumeration Reference