property UsePlayFileResult.toggle

Plays the file from the start, or pauses and resumes it once it is the player's current item, so a second click doesn't restart it.

Type

() => void

Usage

import { type UsePlayFileResult } from "src/hooks/player/usePlayFile.ts";