title: Play H264 Video/Audio Stream (from existing RTP session) on Xamarin Android device (4.4+)
body: <p>I am developing an App on Xamarin right now for Android, alter IOS.
  I have started a SIP session as a Client successfully and got a SDP.</p>
  
  <p>With the session description I start my RTPClient (I am using Managed Media Aggregation (<a href="https://net7mma.codeplex.com/" rel="nofollow">https://net7mma.codeplex.com/</a>) also successfully it seems.</p>
  
  <p>I get an URI ending with a Media Port.</p>
  
  <p>I have tried different ways to Play back that stream:</p>
  
  <p>Android.Widget.VideoView:</p>
  
  <pre><code>videoview.SetVideoURI(Android.Net.Uri.Parse(fullPath));
  videoview.Start();
  </code></pre>
  
  <p>says in a popup box "Cannot Playback Video" or something like this just in german in my case.</p>
  
  <p>So I tried an Android.Media.MediaPlayer:</p>
  
  <pre><code>player.Reset();
  player.SetDataSource(fullPath);
  player.Prepare();
  </code></pre>
  
  <p>runs into an exception and </p>
  
  <pre><code>player.PrepareAsync();
  </code></pre>
  
  <p>seems to run nowhere.</p>
  
  <p>Should These work somehow and am I just doing wrong?</p>
  
  <p>Or must I give it more info like it is H.264 decoded, has 640x480 Pixels and more stuff I know exactly from my SDP media description?</p>
  
  <p>I have taken a look into that MediaFormat and MediaCodec classes from Android but still do not know how to use them exactly for my case (RTP Connection with known Media description).</p>
  
  <p>Thanks a lot and have a nice Weekend!</p>
  
  <p>Eric</p>