title: vitamio unable to play udp streaming in android
body: <p>I am using <a href="https://www.vitamio.org/en/" rel="nofollow noreferrer">vitamio</a> library to play video streaming in android . Though I can play <code>rtsp</code> streaming with it, but I can't play <code>udp</code> streaming .</p>
  <p>I integrated vitamio via gradle</p>
  <pre><code>compile 'me.neavo:vitamio:4.2.2'
  </code></pre>
  <p>And using it on activity like following</p>
  <pre><code>        setContentView(R.layout.activity_main);
          if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this)) //it will check the include library of Vitamio
              return;
  
          mVideoView = (VideoView) findViewById(R.id.videoView);
          Vitamio.initialize(this);
          mVideoView.setVideoPath(&quot;udp://@192.168.0.104:1234&quot;);
          //mVideoView.setVideoPath(&quot;rtsp://192.168.0.104:8554/ss&quot;);
          mVideoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_HIGH);
          mVideoView.setBufferSize(2048);
          mVideoView.requestFocus();
          mVideoView.start();
          mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
              @Override
              public void onPrepared(MediaPlayer mediaPlayer) {
                  mediaPlayer.setPlaybackSpeed(1.0f);
              }
  
  
          });
          mVideoView.setOnErrorListener(new MediaPlayer.OnErrorListener() {
              @Override
              public boolean onError(MediaPlayer mp, int what, int extra) {
                  return false;
              }
          });
  </code></pre>
  <p>Here is my code for layout</p>
  <pre><code>&lt;android.support.constraint.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      tools:context=&quot;me.example.vitamiotest.MainActivity&quot;&gt;
  
      &lt;io.vov.vitamio.widget.VideoView
          android:layout_width=&quot;0dp&quot;
          android:layout_height=&quot;0dp&quot;
          android:id=&quot;@+id/videoView&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
          app:layout_constraintRight_toRightOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  <p>I tried chaning url to <code>udp://@192.168.0.104:1234</code> (removing @) with no luck . rtsp streaming is playing well .</p>
  <p>Here is one thing to be noted that those streaming aren't actually live streaming in some remote url . I am streaming from my PC using <code>vlc</code>  and <code>192.168.0.104</code> is my PC's local ip .In case of <code>rtsp</code> I can play <code>rtsp://192.168.0.104:8554/ss</code> this url but for <code>udp</code> nothing worked, no error msg in the log .</p>