             holaManaged = FragmentLoader.g_hls_mode;
             reqCount++;
             req_id = 'req'+reqCount;
+            ZErr.log("load "+req_id);
             if (!holaManaged)
                 return super.load(request);
+            WorkerUtils.addEventListener(HEvent.WORKER_MESSAGE, onmsg);
             reqs[req_id] = this;
             _resource = new ByteArray();
             _trigger('requestFragment', {url: request.url, req_id: req_id});

        }

        protected function resourceLoadingError() : void {
            this.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
        }

        protected function resourceLoadingSuccess() : void {
            this.dispatchEvent(new Event(Event.COMPLETE));
        }
    }
}

    import flash.utils.Timer;
    import org.hola.ZErr;
    import org.hola.Base64;
    import org.hola.WorkerUtils;
    import org.hola.HEvent;
    import org.mangui.hls.loader.FragmentLoader;

    public dynamic class JSURLStream extends URLStream {
        private var _connected : Boolean;
        private var _resource : ByteArray = new ByteArray();
        private var _curr_data : Object;
        public var holaManaged:Boolean = false;
        public static var jsApiInited:Boolean = false;
        public static var reqCount:Number = 0;
