Audio Visualization starts in new own window

This forum is about all development around libVLC.
AndreJ
New Cone
New Cone
Posts: 7
Joined: 11 Aug 2009 08:47

Audio Visualization starts in new own window

Postby AndreJ » 22 Aug 2009 13:40

I'm using the following command in a C# Wrapper class to start the audio visualization:
"--audio-visual=visual"
"--effect-list=spectrum"

This works fine, but the Visualization starts in its own new Window. I want to give it a handle to a pane on a Window to display the audio visualization.

This is the function I use to define the main window for the Video display:

VlcPlayer1 = Vlc1.NewMediaPlayer(panel1.Handle, Vlc1.NewMedia(strTarget));

public VlcMediaPlayer NewMediaPlayer(IntPtr parent, VlcMedia media)
{
IntPtr p_media_player = InteropMethods.libvlc_media_player_new_from_media(media.p_media, ref p_exception);
p_exception.CheckException();
InteropMethods.libvlc_media_player_set_drawable(p_media_player, parent, ref p_exception);
p_exception.CheckException();
return new VlcMediaPlayer(this, p_media_player);
}

Can anybody help here?

jethro77
New Cone
New Cone
Posts: 3
Joined: 25 Jun 2015 17:55

Re: Audio Visualization starts in new own window

Postby jethro77 » 26 Jun 2015 11:45

Hi AnderJ,
Hi know your post is old but I'm trying to use the audio visualization in C# with visual studio 2013 and vlc 2.0, but it doesn't work.
This is my code

Code: Select all

private VlcControl vlcControl; vlcControl = new Vlc.DotNet.Forms.VlcControl(); this.panelVideo.Controls.Add(vlcControl); string[] options = new string[] { ":audio-visual=visual", ":effect-list=spectrum" }; vlcControl.Play(uri, options);
What I wrong?
Thanks in advance


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests