Using Media constructor to read from .NET h264 stream
Summary
We are using Media constructor to create media from buffer (C# .NET memory stream) but no video is displayed
_mediaPlayer.Play(new Media(_libVLC, buffer, "--demux h264"));
Minimal project and steps to reproduce
In libVLCsharp.WPF.Sample open process with ADB video h264 stream and display it with Media constructor
What is the current bug behavior?
No video is displayed
What is the expected correct behavior?
ADB h264 stream decoded and video displayed
Does it work on other plaforms? Does it work with the official VLC apps?
Our stream works perfectly when testing with standalone VLC windows app where we need to specify h264 demuxer (--demux h264) to get video decoded properly, so we suspect we need to specify demux to libVLC in a similar way, but we can't find how to pass such options the proper way. Maybe some other options will have to be passed as well.
Relevant logs and/or screenshots
Environment
- OS: Windows
- Version 10
- Device: Desktop PC
- LibVLC version and architecture 3.2 x64
- LibVLCSharp version 3.4.2
Possible fixes
_mediaPlayer.Play(new Media(_libVLC, buffer, "--demux h264"));