             _hls = hls;
             _defaultduration = duration;
             super(resource, new HLSNetLoader(hls));
+            _hls.addEventListener(HLSEvent.ERROR, _errorHandler);
         }
 
         protected function createVideo() : Video {

            var alternateAudioTrait : HLSAlternativeAudioTrait = new HLSAlternativeAudioTrait(_hls, this as MediaElement);
            addTrait(MediaTraitType.ALTERNATIVE_AUDIO, alternateAudioTrait);
        }
    }
}
package org.mangui.osmf.plugins {
    import org.mangui.HLS.HLSError;
    import org.osmf.events.MediaErrorCodes;
    import org.osmf.events.MediaError;
    import org.osmf.events.MediaErrorEvent;
    import org.mangui.HLS.HLSEvent;
    import org.osmf.traits.DVRTrait;

    import flash.net.NetStream;
