     }

        function playerSetVolume(value) {
            video.volume = value;
        }

        function refreshPlayerStatus() {
            var isPlaying = false;
            if (!video.paused && !video.ended && video.readyState > 2) {
                isPlaying = true;
            }

            postPlayerEvent('playerStatus', {
                'isReady': video.canplay,
                'isFirstFrameReady': isFirstFrameReady,
                'isPlaying': !video.paused,
                'rate': isPlayi