setPlayer

fun setPlayer(@Nullable player: Player)

Sets the Player.

Setting the player starts a notification immediately unless the player has no source loaded, in which case the notification is started as soon as the player transitions away from being unloaded.

If the player is destroyed it must be removed from the manager by calling setPlayer(null). This will cancel the notification.