vadnica-logo
X

JavaScript HTML DOM Events: canplaythrough

The canplaythrough event indicates that the media is likely buffered enough to play straight through to the end without stalling. While canplay merely tells you that playback can start, canplaythrough is useful for signaling “ready for continuous playback”. It is not a 100% guarantee, but it’s a solid cue to enable a “Play” button or hide a loading indicator.

EXAMPLE
RESULT

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.