Interface for position sources that support seeking to arbitrary positions.
Not all position sources are seekable. For example:
if (isSeekable(source)) { const actualPosition = await source.seek(30.5); console.log(`Seeked to: ${actualPosition}`);} Copy
if (isSeekable(source)) { const actualPosition = await source.seek(30.5); console.log(`Seeked to: ${actualPosition}`);}
Seek to a specific position.
Target position in seconds (or source-specific units)
Actual position after seek (may differ from requested if clamped)
Interface for position sources that support seeking to arbitrary positions.
Not all position sources are seekable. For example:
Example