'How can I get a fullscreen with libvlc android studio

I'm trying to display an udp stream from a GoPro camera, but when I do it that way :

ArrayList<String> _Options = new ArrayList<String>();
_Options.add("--file-caching=2000");
_Options.add("--network-caching=150");
_Options.add("--clock-jitter=0");
_Options.add("--live-caching=1000");
_Options.add("--clock-synchro=0");
_Options.add("--fullscreen");
_Options.add("-vvv");
_Options.add("--drop-late-frames");
_Options.add("--skip-frames");
_myLibVlc = new LibVLC(findViewById(android.R.id.content).getContext(), _Options);
_myPlayer = new MediaPlayer(_myLibVlc);
_myPlayer.setAspectRatio("16:9");
_myPlayer.setScale(1);
_myVout = _myPlayer.getVLCVout();
_myVout.setVideoView(_myVideoView);
_myVout.attachViews();

But I only get an tiny video like that :

The image

I tried using DisplayMetrics but it crashes when I use vout.setWindowSize()

ps : I'm sorry for my bad english ^^



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source