Visualization starts in its own new Window

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

Visualization starts in its own new Window

Postby AndreJ » 22 Aug 2009 14:16

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?

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests