web api instance property
AudioPlaybackStats: maximumLatency property
Limited availability
The maximumLatency read-only property of the AudioPlaybackStats interface is a number indicating the maximum latency since the audio context was initialized or since resetLatency() was last called.
Value
A double-precision floating point number indicating the maximum latency, in seconds. Initialized to 0.
Examples
Basic usage
const audioCtx = new AudioContext();
const stats = audioCtx.playbackStats;
// ...
// Log maximum latency
console.log(stats.maximumLatency);
See also the main AudioPlaybackStats reference page for a more in-depth example.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.