Hi everybody, I made a project in VS 2005 to use LibVlc.cs.
I first created a Windows Application (containing Form1.cs and Program.cs), then I made a class called LibVlc.cs.
In Form1.cs, I only have:
I cannot import the libvlc.dll file, when i did right click on the project then "add reference...", search the libvlc.dll file and "ok" i have the error message :Code: Select all
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace CustomVlcPlayer { public partial class Form1 : Form { public Form1() { InitializeComponent(); LibVlc.LibVlc vlc = new LibVlc.LibVlc(); vlc.Initialize(); MessageBox.Show(vlc.LastError); vlc.VideoOutput = pictureBox1; vlc.PlaylistClear(); vlc.AddTarget("F:\\....\\matrix.mpg"); vlc.Play(); } } }
Une reference a "D:\....\libvlc.dll" n'a pas pu etre ajoutee. Assurez vous que le fichier est accessible et qu'il s'agit d'un assembly valide ou d'un composant COM
If I run the project without libvlc.dll in my project, I have this error :
could not find libvlc
This is normal !
Am I doing something wrong ? if yes, can someone help me with that and give me the correct solution to succeed?
thank you very much.
ParKiN
Hi, could you share it with me ?Hi,
here is a sample for c#.
I have also written a wrapper in managed c++ (assembly)! If you want, i can mail you the project!
ciao Odysee
Code: Select all
Functions.LibVlc vlc = new Functions.LibVlc();
vlc.Initialize();
vlc.VideoOutput = pictureBox1;
vlc.PlaylistClear();
vlc.AddTarget("S:\\test.avi");
vlc.Play();
I am using the sample code on the first page... nothing special for internet radio... just add the radio link by addtarget like open other media file, so I would say the player is "nice" as I do nothing to handle...Hello,
I am interested playing internet radio, now I can only visualize video stream.
Can you share the code?
Send me at caddress@gmail.com
Regards, Andrés
Users browsing this forum: No registered users and 22 guests