VLC media player for Windows Troubleshooting • Visualstudio c# – vlc.DotNet.Forms – –vout=NDI not working



Hello,
i try to make a remote video player thats outputting over NDI.
Tee NDI plugin is already installed and working (with the regular VLC)

On my program, the audio goes over NDI, but the video is played in my form (and the “NDI screen” is blank).
I also tryed to write my programm whitout the video windows. nothing changed, still no video output on NDI.

Thank you for your help!

(Sorry for my bad english)

Here mi code snipped (Visual studio 2022 c#)

Code:

using Vlc.DotNet.Forms;namespace VLC_remote{ public partial class Form1 : Form { VlcControl My_MP; public Form1() { InitializeComponent(); My_MP = new VlcControl(); ((System.ComponentModel.ISupportInitialize)(My_MP)).BeginInit(); My_MP.VlcLibDirectory = new DirectoryInfo(@"C:\Program Files\VideoLAN\VLC"); My_MP.VlcMediaplayerOptions = new string[] { "--vout=NDI", "--aout=NDI"}; ((System.ComponentModel.ISupportInitialize)(My_MP)).EndInit(); } private void button1_Click(object sender, EventArgs e) //GET { My_MP.Play(new Uri(textBox1.Text)); //"https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4" } private void button2_Click(object sender, EventArgs e) //Toggle pause { My_MP.Pause(); } private void button3_Click(object sender, EventArgs e) // stop { My_MP.Stop(); } }}

Statistics: Posted by LandOnFIre — 01 Aug 2024 15:39