title: How can I get a fullscreen with libvlc android studio
body: <p>I'm trying to display an udp stream from a GoPro camera, but when I do it that way :</p>
  <pre><code>ArrayList&lt;String&gt; _Options = new ArrayList&lt;String&gt;();
  _Options.add(&quot;--file-caching=2000&quot;);
  _Options.add(&quot;--network-caching=150&quot;);
  _Options.add(&quot;--clock-jitter=0&quot;);
  _Options.add(&quot;--live-caching=1000&quot;);
  _Options.add(&quot;--clock-synchro=0&quot;);
  _Options.add(&quot;--fullscreen&quot;);
  _Options.add(&quot;-vvv&quot;);
  _Options.add(&quot;--drop-late-frames&quot;);
  _Options.add(&quot;--skip-frames&quot;);
  _myLibVlc = new LibVLC(findViewById(android.R.id.content).getContext(), _Options);
  _myPlayer = new MediaPlayer(_myLibVlc);
  _myPlayer.setAspectRatio(&quot;16:9&quot;);
  _myPlayer.setScale(1);
  _myVout = _myPlayer.getVLCVout();
  _myVout.setVideoView(_myVideoView);
  _myVout.attachViews();
  </code></pre>
  <p>But I only get an tiny video like that :</p>
  <p><a href="https://i.stack.imgur.com/VOzpo.jpg" rel="nofollow noreferrer">The image</a></p>
  <p>I tried using DisplayMetrics but it crashes when I use vout.setWindowSize()</p>
  <p>ps : I'm sorry for my bad english ^^</p>