title: Streaming live webcam to Android smrtphone
body: <p>So what I want to do is very simple, but I lack experience in streaming methods/softwares. What I want to do is stream my laptops webcam live to a videoView on android. I'm using vlc to stream the webcam using http//:privateIP:8080/stream, with transcoding WMV+WMA.
  This is the vlc generated output string:</p>
  
  <pre><code>    :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{mux=asf,dst=:8080/stream} :sout-all :sout-keep
  </code></pre>
  
  <p>my android code is as follows:</p>
  
  <pre><code>    package com.example.vlctest;
  
  import android.net.Uri;
  import android.os.Bundle;
  import android.app.Activity;
  import android.graphics.PixelFormat;
  import android.view.Menu;
  import android.widget.MediaController;
  import android.widget.VideoView;
  
  public class MainActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
       VideoView view1 = (VideoView) findViewById(R.id.videoView1); 
       getWindow().setFormat(PixelFormat.TRANSLUCENT);
  
       MediaController mc = new MediaController(this); 
       mc.setMediaPlayer(view1); 
  
       view1.setMediaController(mc); 
       view1.setVideoURI(Uri.parse("http://192.168.1.100:8080/stream")); 
       view1.requestFocus(); 
       view1.start();
  }
  }
  </code></pre>
  
  <p>Sometimes the app tells me it can't play the video, and sometimes after changing the transcoding the videoview just stays black without doing anything.
  If there's a solution for this or a more efficient method please do tell me.</p>