code: @Override
      public void setProtocol(String protocol) throws Exception {
          this.protocol = protocol;
          if ("rtmps".equals(protocol) || "rtmpt".equals(protocol) || "rtmpte".equals(protocol) || "rtmfp".equals(protocol)) {
              throw new Exception("Unsupported protocol specified, please use the correct client for the intended protocol.");
          }
      }
docs: Sets the RTMP protocol, the default is "rtmp". If "rtmps" or "rtmpt" are required, the appropriate client type should be selected.
  
  @param protocol
  the protocol to set
  @throws Exception