Audio Visualization starts in new own window
Posted: 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?
"--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?