2 screens playing 2 different files in ONE vlc player

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Guest

2 screens playing 2 different files in ONE vlc player

Postby Guest » 06 Dec 2004 10:10

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

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 06 Dec 2004 12:30

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).

Pacific
Blank Cone
Blank Cone
Posts: 13
Joined: 09 Sep 2004 08:21
Location: Bharat

Postby Pacific » 06 Dec 2004 17:06

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
Thanks & Regards,
A1Pacific

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 06 Dec 2004 18:16

probably talking about input_CreateThread yes. The documentation is in the file called vlm.txt in the doc folder in newer vlc sources

Asha
New Cone
New Cone
Posts: 4
Joined: 18 Apr 2007 15:32

Postby Asha » 21 Apr 2007 13:50

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests