Skip to content

Commit 1ce2b21

Browse files
authored
docs(types): document Player.error(null) for clearing MediaError (#9174)
1 parent 81b3cb4 commit 1ce2b21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/js/player.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4219,13 +4219,13 @@ class Player extends Component {
42194219
}
42204220

42214221
/**
4222-
* Set or get the current MediaError
4222+
* Set, clear, or get the current MediaError
42234223
*
42244224
* @fires Player#error
42254225
*
4226-
* @param {MediaError|string|number} [err]
4226+
* @param {MediaError|string|number|null} [err]
42274227
* A MediaError or a string/number to be turned
4228-
* into a MediaError
4228+
* into a MediaError. Pass `null` to clear the current error state.
42294229
*
42304230
* @return {MediaError|null|undefined}
42314231
* - The current MediaError when getting (or null)

0 commit comments

Comments
 (0)