function usePlayFile
usePlayFile(dump: Dump): UsePlayFileResult

Returns the playback state of the uploaded file dump and a function that plays or pauses it. The player's title links to the dump's page.

Parameters

dump: Dump

Return Type

Usage

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