 package com.axis.httpclient {
   import com.axis.ClientEvent;
+  import com.axis.ErrorManager;
   import com.axis.IClient;
   import com.axis.Logger;
 

    public function stop():Boolean {
      ns.dispose();
      nc.close();
      return true;
    }

    public function pause():Boolean {
      ns.pause();
      return true;
    }

    public function resume():Boolean {
      ns.resume();
      return true;
    }

    private var nc:NetConnection;
    private var ns:NetStream;
    public var ended:Boolean = false;
    private var currentState:String = "stopped";

    public function HTTPClient(video:Video, urlParsed:Object) {
      this.urlParsed = urlParsed;
