method PlayerContextValue.onPlayStateChange
PlayerContextValue.onPlayStateChange(playing: boolean): void

Called by MediaPlayer when its media starts or stops.

Parameters

playing: boolean

Return Type

void

Usage

import { type PlayerContextValue } from "src/contexts/player/PlayerContext.ts";