getError
method
description
If the player is currently in the "Error"
state,
returns the corresponding error object.
In any other case, return null
.
Syntax
const error = player.getError();
- return value:
Object|null
: Returns the current error object if in the "Error"
state or
null
in any other case.