title: Streaming from VLC to Android via Multicast
body: <p>I've built a media player using VideoView to stream from VLC using multicast. I've provided the url and the application does stream the video. But when I check the Network Activity (In the resource monitor) it shows that VLC is connected to both the multicast address as well as the IP of the android device therefore the application is streaming in unicast.</p>
  
  <p>The code I'm using:</p>
  
  <pre><code>VideoView videoView = (VideoView) findViewById(R.id.video);
  
  Uri uri= Uri.parse("rtsp://192.168.137.159:8554/test.sdp");
  videoView.setVideoURI(uri);
  videoView.start();
  </code></pre>
  
  <p>I've also made sure that multicast packets are not filtered out using this code:</p>
  
  <pre><code>WifiManager wifi = (WifiManager)getSystemService( Context.WIFI_SERVICE );
  if(wifi != null)
  {
      WifiManager.MulticastLock lock = wifi.createMulticastLock("Log_Tag");
      lock.acquire();
  }
  </code></pre>
  
  <p>Is there something else I'm missing in order tell the VideoView to stream from the multicast address and not directly from the server?</p>
  
  <p>I've set up VLC to stream to a multicast address using these parameters: #rtp{mux=ts,dst=239.255.12.42,sdp=rtsp://:8554/test.sdp}</p>