2 screens playing 2 different files in ONE vlc player
Posted: 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.
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
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 );
}
}
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