docs: public static URI checkValidStream(URI uri) throws IllegalArgumentException {
      String scheme = checkNotNull(uri).getScheme();
      scheme = checkNotNull(scheme, "URI is missing a scheme").toLowerCase();
  
      if (rtps.contains(scheme)) {
        return uri;
      }
  
      if (udpTcp.contains(scheme)) {
        if (uri.getPort() == -1) {
          throw new IllegalArgumentException("must set port when using udp or tcp scheme");
        }
        return uri;
      }
  
      throw new IllegalArgumentException("not a valid output URL, must use rtp/tcp/udp scheme");
    }