displaying audio and video on different panels (on forms)

This forum is about all development around libVLC.
Zingaro2002
Blank Cone
Blank Cone
Posts: 47
Joined: 30 May 2006 09:58

displaying audio and video on different panels (on forms)

Postby Zingaro2002 » 21 May 2010 19:09

Hi,
I'm using VideoLan.Interop, a .Net libvlc 0.9.x wrapper compiled on Visual Studio 2005 (VLC 1.0.5)

Now I'm creating an application with VB.net and VideoLan.Interop.dll

Everything works fine: I can open an rtsp stream ("rtsp://196.0.0.19:8082/test2.sdp") which carries an audio stream and a video stream.

Is it possible to display the video on a first form.panel and simultaneously have the audio visualization (say spectrum or scope) on a second form.panel without making 2 connections to rtsp source?

(I've succeded in doing this only with two different connections to my rtsp source).
This is my VB.net source code:

Code: Select all

Private Vlc As VideoLan.VideoLanClient Private VlcPlayer As VideoLan.VlcMediaPlayer Private VlcPlayerAudio As VideoLan.VlcMediaPlayer Public Sub New() InitializeComponent() Vlc = New VideoLanClient() VlcPlayer = Vlc.NewMediaPlayer(VideoPanel.Handle) ' in my form I have also an AudioPanel '//VlcPlayer.TimeChanged += new EventHandler<TimeChangedEventArgs>(VlcPlayer_TimeChanged); AddHandler VlcPlayer.PositionChanged, AddressOf VlcPlayer_PositionChanged AddHandler VlcPlayer.StateChanged, AddressOf VlcPlayer_StateChanged End Sub Private Sub Play() Dim desc As VlcMedia = Vlc.NewMedia("rtsp://196.0.0.19:8082/test2.sdp") VlcPlayer.Load(desc) desc.Dispose() VlcPlayer.Play() End Sub
If I create another VlcPlayer, it connects again to rtsp://... BUT I want just 1 connection and 2 visualizations (videostream-visualization on first panel - and audiostream-visualization on a second panel)
Is it possible?
Thank you very much for any hint.

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: displaying audio and video on different panels (on forms

Postby Rémi Denis-Courmont » 25 May 2010 19:01

This is not fully supported at the moment. Some API changes would be required.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 36 guests