Page 1 of 1

2 screens playing 2 different files in ONE vlc player

Posted: 06 Dec 2004 10:10
by Guest
Hello Xperts,

It's been great studying VLC-0.7.2 for 4Months.

My new task is to play 2 different media files and on two different screens but ONE VLC.EXE should do this.
(I hope I described my problem correctly, if no, please let me know)

I decided to use the iObject(of libvlc.c) variable.

I have gone thru libvlc.c, vlc.c code.
Following is what I did in vlc.c file.

Code: Select all

/* Initialize libvlc */ for( iCurr = 0 ; iCurr < NUMBER_OF_SCREENS ; iCurr ++ ) { i_ret = VLC_Init( iCurr, i_argc, ppsz_argv ); if( i_ret < 0 ) { /* cleaning WILL come here */ return i_ret; } if ( iCurr == NUMBER_OF_SCREENS - 1 ) { /* Let's make last screen as blocking */ i_ret = VLC_AddIntf( iCurr, NULL, VLC_TRUE, VLC_TRUE ); } else { /* Add a blocking interface, start playing, and keep the return value */ i_ret = VLC_AddIntf( iCurr, NULL, VLC_FALSE, VLC_TRUE ); } }
I AM getting two windows.
But they share ONE DISPLAY Wnd.

Please let me know if my strategy used is wrong?
Or I need to dig further?

Thanks & Regards,
Pacific

Posted: 06 Dec 2004 12:30
by Sigmund
yes, your strategy is wrong. there are currently two ways to do this:
1. Using an unmodified vlc (probably need 0.8.x) you can do this using vlm. Just follow the streaming examples in the documentation, but skip the sout part.
2. Using modified sources you could call input_Create several times (at least I think that's what it's called).

Posted: 06 Dec 2004 17:06
by Pacific
Hi sigmund,
Thank you for the reply.
I tried both the options you gave me.
1st one, I couldnt find the documentation
2nd one's : Are you talking about input_CreateThread function?
Are you taling about VLM here? (e.g. vlm_MediaNew which is getting called from telnet/http)??

I tried calling VLC_Create() 3 times but that didnt make it show 3 windows.

Please guide!

Regards,
Pacific

Posted: 06 Dec 2004 18:16
by Sigmund
probably talking about input_CreateThread yes. The documentation is in the file called vlm.txt in the doc folder in newer vlc sources

Posted: 21 Apr 2007 13:50
by Asha
Can anyone of you say how I should reach upto creating a VLC Instance.
My program hangs .. giving nothing.

I am using libvlc with VC++.

Please provide me pointers to proceed further.
Regards,
Asha