title: Password in a URI is DEPRECATED when passing credentials to VLC
body: <p>For a WPF app, I'm launching VLC 3.0.3 using the following code,</p>
  
  <pre><code>var args = "http://username:password@someurl.com --no-osd --fullscreen --no-audio --loop --volume=0";
  var path = ConfigurationManager.AppSettings["VlcPath"] + @"\vlc.exe";
  _handle = Process.Start(path, args);
  </code></pre>
  
  <p>However, VLC still pops up with the credentials dialog, and has the username filled in. The Messages windows shows this error,</p>
  
  <blockquote>
    <p>Password in a URI is DEPRECATED</p>
  </blockquote>
  
  <p>In <a href="https://github.com/kakone/VLC.MediaElement/issues/45" rel="nofollow noreferrer">this Github issue</a>, someone asks about passing the credentials via capturing the dialog event: " try to use the ShowLoginDialog event (this event should be called if credentials are needed). You can subscribe to this event, and set the username and password in the DialogResult property of the event args"</p>
  
  <p>They provide this line of code:</p>
  
  <pre><code>e.DialogResult = new LoginDialogResult() { Username = username, Password = password };
  </code></pre>
  
  <p>If I'm using <code>Process.Start</code> to launch VLC, where does the above line go? </p>