function fileArtworkUrl
fileArtworkUrl(
dump: Dump,
token?: string | null
): string | undefined

Returns the artwork of an uploaded file, for its thumbnail and the player: the uploaded thumbnail, or the server's still of a video or scaled-down copy of an image. A bare audio file has none, since the thumbnail endpoint has nothing to serve for it, and shows a placeholder instead.

Parameters

dump: Dump
optional
token: string | null

Return Type

string | undefined

Usage

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