Jw Player Codepen !new!

playerInstance.on("buffer", function(state) if (state.bufferPercent !== undefined) // not too spammy, only significant buffer if (state.bufferPercent < 20) logEvent(`⏳ Buffering... $Math.round(state.bufferPercent)% loaded`); else logEvent(`⏳ Buffer event`);

<div id="player" style="width: 640px; height: 360px;"></div> jw player codepen

); playerInstance.on("volume", (ev) => if(ev.volume !== undefined) // silent: but we can show on demand, but we update only if it's big change? Not needed to spam. playerInstance

// Add your license key jwplayer.key = "YOUR_LICENSE_KEY"; // Setup the player jwplayer("player").setup( file: "https://jwplatform.com", image: "https://jwplatform.com", width: "100%", aspectratio: "16:9" ); Use code with caution. Copied to clipboard Common CodePen Implementations only significant buffer if (state.bufferPercent &lt

<!DOCTYPE html> <html> <head> <title>JW Player Example</title> <script src="https://content.jwplatform.com/jwplayer.js"></script> </head> <body>

Выделите опечатку и нажмите Ctrl + Enter, чтобы отправить сообщение об ошибке.