I'am playing arround with libVLCSharp and I found a wired behavior. Actually I have no problem creating a media and playing it with MediaPlayer. However when I try to create a Media from MediaList it breaks with the followig message:
Failed to perform instanciation on the native side. Make sure you installed the correct VideoLAN.LibVLC.[YourPlatform] package in your platform specific project
What I wanted to achive is video merging using ":sout=#gather" pipe.
My code is very basic :
Core.Initialize();
using (var libvlc = new LibVLC())
using (var mediaPlayer = new MediaPlayer(libvlc))
{
Media media1 = new Media(libvlc, @"C:\Temp\SampleVideo.mp4");
Media media2 = new Media(libvlc, @"C:\Temp\SampleVideo.mp4");
MediaList list = new MediaList(libvlc);
list.AddMedia(media1);
list.AddMedia(media2);
Media mediaList = new Media(list); <-- Error here
...
}
I have 2 nuget packages used in my project:
- LibVLCSharp v3.0.2 June 12
- VideoLAN.LibVLC.Windows v3.0.7 June 10