title: Playing Video in Android's media player from an URL
body: <p>I have an app that plays a video file from an URL that is the IP of a local server. The video plays fine when I run it in a browser or VLC player. But I don't want the IP address to be displayed when I play the video. Is there any way I can accomplish this?
  This is the code that plays the video file:</p>
  
  <pre><code>import android.app.Activity;
  import android.content.Intent;
  import android.net.Uri;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  
  
  
   public class welcome extends Activity{
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          Button b = (Button) findViewById(R.id.button1);{
              b.setOnClickListener(new OnClickListener() {
  
                  @Override
                  public void onClick(View v) {
                      Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://192.168.1.4/videotest/Camera1.mp4"));
                  startActivity(browserIntent);
              }});
  
  
          }
  
      }
  }
  </code></pre>
  
  <p>Thanks</p>