PlayerInit

external interface PlayerInit

Options for instantiating the Player

Properties

getOAuthToken
Link copied to clipboard
js
abstract var getOAuthToken: (cb: (token: String) -> Unit) -> Unit
This will be called every time you run Spotify.Player#connect or when a user's access token has expired (maximum of 60 minutes).
name
Link copied to clipboard
js
abstract var name: String
The name of the Spotify Connect player.
volume
Link copied to clipboard
js
open var volume: Number?
The default volume of the player.

Sources

js source
Link copied to clipboard