* Object used to store the state of the player if the * user tries to interact with the API before it has been loaded.
| 78 | * user tries to interact with the API before it has been loaded. |
| 79 | */ |
| 80 | interface PendingPlayerState { |
| 81 | playbackState?: PlayerState.PLAYING | PlayerState.PAUSED | PlayerState.CUED; |
| 82 | playbackRate?: number; |
| 83 | volume?: number; |
| 84 | muted?: boolean; |
| 85 | seek?: {seconds: number; allowSeekAhead: boolean}; |
| 86 | } |
| 87 | |
| 88 | /** Coercion function for time values. */ |
| 89 | function coerceTime(value: number | undefined): number | undefined { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…