Winforms VideoView not playing video on Ubuntu18.04 with mono.
Hello! My goal is to make a Winforms form that opens an .mp4 video located on my PC. For that I'm using LibVLCSharp.Winforms and I run it with Mono 6.0.0 on Ubuntu 18.04.
The problem is when I call Play() on a MediaPlayer object, the video opens in a new window and everything looks fine, but when I call Play() on a MediaPlayer of VideoView that's embedded in a Winforms form, then the audio plays normally, but there's no video showing at all and the output looks as follows:
[00007f1774074ce0] main video output error: video output creation failed
[00007f178c0d1170] main decoder error: failed to create video output
[h264 @ 0x7f178c0e4540] get_buffer() failed
[h264 @ 0x7f178c0e4540] thread_get_buffer() failed
[h264 @ 0x7f178c0e4540] decode_slice_header error
[h264 @ 0x7f178c0e4540] no frame!
And the same message repeats forever.
Here's the source code files I'm using:
It's based on the sample provided in the LibVLCSharp git project. All the references and packages are provided.
Any help will be greatly appreciated!
With regards, Pawel