           updateState();
            }

            function onPause(data) {
                playbackState = 0;
                updateState();
            }
         
            function onFinish(data) {
                playbackState = 2;
                updateState();
            }
         
            function onPlayProgress(data) {
                position = data.seconds;
                duration = data.duration;
            }
         
            function onLoadProgress(data) {
                downl