function playerItemKey
playerItemKey(item: PlayerItem): string

Returns a key that identifies item whatever its stream URL, so that a re-resolved track is still the same track. GlobalPlayer keys its tracklist on it and tells a new item by it; PlayerProvider tells repeated failures of one track by it.

Parameters

Return Type

string

Usage

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