oadProgress = data.percent;
            }
            
            player.on('play', onPlay);
            player.on('pause', onPause);
            player.on("ended", onFinish);
            
            window.setInterval(updateState, 500);
            
            if (%@) {
                invoke("autoplay");
            }
        })();
    </script>
</body>
</html>
