                 hola_hls_get_buffer_sec);
             ExternalInterface.addCallback("hola_hls_get_state",
                 hola_hls_get_state);
+            ExternalInterface.addCallback("hola_hls_get_current_fragment",
+                hola_hls_get_current_fragment);
             ExternalInterface.addCallback("hola_hls_get_levels",
                 hola_hls_get_levels);
-	    ExternalInterface.addCallback("hola_hls_get_levels_async",
-	        hola_hls_get_levels_async);
+            ExternalInterface.addCallback("hola_hls_get_levels_async",
+                hola_hls_get_levels_async);
             ExternalInterface.addCallback("hola_hls_get_segment_info",
                 hola_hls_get_segment_info);
             ExternalInterface.addCallback("hola_hls_get_level",
                 hola_hls_get_level);
-	    ExternalInterface.addCallback("hola_hls_get_bitrate",
-	        hola_hls_get_bitrate);
-	    ExternalInterface.addCallback("hola_hls_get_decoded_frames",
-	        hola_hls_get_decoded_frames);
+            ExternalInterface.addCallback("hola_hls_get_bitrate",
+                hola_hls_get_bitrate);
+            ExternalInterface.addCallback("hola_hls_get_decoded_frames",
+                hola_hls_get_decoded_frames);
             ExternalInterface.addCallback("hola_setBandwidth",
                 hola_setBandwidth);
             ExternalInterface.addCallback("hola_hls_setBandwidth",

        }

        private static function hola_hls_get_bitrate(): Number
	{
   	    return _hls.loadLevel<_hls.levels.length ? _hls.levels[_hls.loadLevel].bitrate : 0;
	}

        private static function hola_hls_get_level(): String
	{
            return _hls.loadLevel<_hls.levels.length ? _hls.levels[_hls.loadLevel].url : undefined;
        }

        private static function hola_setBandwidth(bandwidth:Number):void{
            _bandwidth = bandwidth;
        }
    }

            return levels;
        }

        private static function hola_hls_get_current_fragment(): String
        {
            return _currentFrag;
        }

        private static function hola_hls_get_levels_async(): void
        {
            setTimeout(function(): void
            {
                var levels: Array = [];
                for (var i: int = 0; i<_hls.levels.length; i++)
                    levels.push(level_to_object(_hls.levels[i]));
                JSAPI.postMessage('flashls.hlsAsyncMessage', {type: 'get_levels', msg: levels});
            }, 0);
        }

        private static function hola_hls_get_segment_info(url: String): Object
        {
            for (var i: int = 0; i<_hls.levels.length; i++)
            {
                var l: Level = _hls.levels[i];
                for (var j:int = 0; j<l.fragments.length; j++)
                {
                    if (url==l.fragments[j].url)
