Constructor

PlayerInfo

new PlayerInfo(playerId, playerState, playerData, isControllable)

Represents player information maintained by the game manager.

Parameter

playerId

string

playerState

chrome.cast.games.PlayerState

playerData

Object

isControllable

boolean

Methods

equals

equals(other) returns boolean

Returns true if this object and the provided chrome.cast.games.PlayerInfo are equivalent.

Parameter

other

chrome.cast.games.PlayerInfo

Value must not be null.

Returns

boolean 

getPlayerData

getPlayerData() returns Object

Returns the player data for this player.

Returns

Object 

getPlayerId

getPlayerId() returns string

Returns the player id of this player.

Returns

string 

getPlayerState

getPlayerState() returns chrome.cast.games.PlayerState

Returns the player state for this player.

Returns

chrome.cast.games.PlayerState 

isConnected

isConnected() returns boolean

Returns true if this player is in a connected state. A player is considered to be in a connected state if the associated chrome.cast.games.PlayerInfo#playerState is one of chrome.cast.games.PlayerState.IDLE, chrome.cast.games.PlayerState.AVAILABLE, chrome.cast.games.PlayerState.PLAYING or chrome.cast.games.PlayerState.READY.

Returns

boolean 

isControllable

isControllable() returns boolean

Returns true if this player was created on this sender.

Returns

boolean