Skip to content

activeHotspots

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/components/Viewer/ChapteredVideo.tsx

Pure hotspot-visibility selector (exported for unit tests): the hotspots whose tMs is within windowMs of the current playback position.

Signature

ts
function activeHotspots(hotspots: ChapteredVideoHotspot[] | undefined, currentMs: number, windowMs: number): ChapteredVideoHotspot[]

Parameters

NameType
hotspots`ChapteredVideoHotspot[]
currentMsnumber
windowMsnumber

Returns: ChapteredVideoHotspot[]

Was this page helpful?

Download as PDF