     import flash.net.NetStream;
     
     import org.mangui.hls.HLS;
+    import org.mangui.hls.HLSEvent;
     import org.mangui.osmf.plugins.loader.HLSNetLoader;
     import org.mangui.osmf.plugins.traits.*;
+    import org.mangui.osmf.plugins.utils.ErrorManager;
     
     import org.osmf.media.LoadableElementBase;
     import org.osmf.media.MediaElement;

            var alternateAudioTrait : HLSAlternativeAudioTrait = new HLSAlternativeAudioTrait(_hls, this as MediaElement);
            addTrait(MediaTraitType.ALTERNATIVE_AUDIO, alternateAudioTrait);
        }
    }
}

            _hls = hls;
            _defaultduration = duration;
            super(resource, new HLSNetLoader(hls));
            _hls.addEventListener(HLSEvent.ERROR, _errorHandler);
        }

        protected function createVideo() : Video {
