Receiving video stream to VLC on PC from Android
<p>I want to stream the video from android phone camera to VLC media player running on PC.</p>

<p>I have written a sample code to stream the video to the specific IP on my local network using <code>MediaRecorder</code>. The app on phone is working but I am not able to get the stream in VLC media player.</p>

<p>Code of my android app to stream the video to the network:</p>

<pre><code>    InetAddress serverAddr = InetAddress.getByName("192.168.2.8");
    Socket soc=new Socket(serverAddr,8210);
    ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(soc);
    tempRecorder.setOutputFile(pfd.getFileDescriptor()); 
    tempRecorder.prepare();
</code></pre>

<p>Can anyone tell me where I am doing wrong or how to do this?</p>
