Fullscreen in 2nd monitor

This forum is about all development around libVLC.
askem87
New Cone
New Cone
Posts: 3
Joined: 23 Mar 2009 18:09

Fullscreen in 2nd monitor

Postby askem87 » 23 Mar 2009 18:13

Hi
I'm trying to write a program that will display 2 videos in fullscreen in 2 separate monitors.
I can get a video to do fullscreen, but I can't seem to work out how to choose which monitor it will fullscreen into
I am writing in C++ for Windows XP

Thanks
Ben

askem87
New Cone
New Cone
Posts: 3
Joined: 23 Mar 2009 18:09

Re: Fullscreen in 2nd monitor

Postby askem87 » 24 Mar 2009 14:34

Ok... I'm getting a little closer I think, still not really sure. Here's some ideas in case it triggers some ideas in anyone...

From the help file (vlc --long-help)


--directx-device={} Name of desired display device
In a multiple monitor configuration, you can specify the Windows
device name of the display that you want the video window to open on.
For example, "\\.\DISPLAY1" or "\\.\DISPLAY2".

I was thinking maybe I can use this option in the, "void libvlc_media_add_option()" function

From doxygen


void libvlc_media_add_option ( libvlc_media_t * p_md,
const char * ppsz_options,
libvlc_exception_t * p_e
)
Add an option to the media.

This option will be used to determine how the media_player will read the media. This allows to use VLC's advanced reading/streaming options on a per-media basis.

The options are detailed in vlc --long-help, for instance "--sout-all"


My problem at the moment is I'm not sure how to use this ppsz_options thing. Doxygen says it's a string, so perhaps something like "--directx-device={\\.\DISPLAY1}" would work?

How do I find out the name of each specific monitor on my system?

Do I have to set VLC to be in DirectX mode somewhere before I can use this?


Thanks,
Ben

askem87
New Cone
New Cone
Posts: 3
Joined: 23 Mar 2009 18:09

Re: Fullscreen in 2nd monitor

Postby askem87 » 25 Mar 2009 00:50

In case anyone is wondering, I managed to get this working.

The trick is to add options to the libvlc_media_t, namely, ":vout=opengl", ":x-pos=x", ":y-pos=y", ":fullscreen"

set the x and y positions on each video so that they are created in the two separate monitors, and they fullscreen accordingly

Ben

kesasar
New Cone
New Cone
Posts: 1
Joined: 27 Mar 2009 18:44

Re: Fullscreen in 2nd monitor

Postby kesasar » 27 Mar 2009 18:50

Having the same problem ...
Even if "display2" is configured => fullscreen brings VLC on the first window


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests