How to play video using VLC go to 2 screen by C#

This forum is about all development around libVLC.
bonnymon
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2011 10:19

How to play video using VLC go to 2 screen by C#

Postby bonnymon » 02 Oct 2011 16:41

Hi,

I want to make a program using VLC by C# and I need it can play video go to 2 screen the same. How can I do?

Pls help me,

devildrey33
Blank Cone
Blank Cone
Posts: 11
Joined: 07 Dec 2010 17:06
Operating System: Windows & Linux
Location: Spain

Re: How to play video using VLC go to 2 screen by C#

Postby devildrey33 » 02 Oct 2011 23:37

If you have 2 screens on windows, you can use the video card software to show same video on both screens. For example on windows 7 in "screen resolution" you can set the option "duplicate screens".

On early windows if you dont have these option you can try with you video card drivers software.
http://www.devildrey33.es

bonnymon
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2011 10:19

Re: How to play video using VLC go to 2 screen by C#

Postby bonnymon » 04 Sep 2014 13:19

I mean that 2 screens on the 2 forms in a project.

First form, I control the video. Second form I will show to the television.

bonnymon
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2011 10:19

Re: How to play video using VLC go to 2 screen by C#

Postby bonnymon » 04 Sep 2014 13:30

And I want to create the text on the screen (same karaoke). How I can do?

I use label or graphic to draw the text but it is not show when video playing or have backcolor.

Other way, I use marquee of libvlc:

This is my code: but it is not working. :(

player1.set_video_marquee_int(0, 1);
player1.set_video_marquee_string(0, "abc");
player1.set_video_marquee_int(1, 32768);
player1.set_video_marquee_int(2, 100);
player1.set_video_marquee_int(3, 10);
player1.set_video_marquee_int(4, 10);
player1.set_video_marquee_int(5, 100);
player1.set_video_marquee_int(6, 100);
player1.set_video_marquee_int(7, 10);
player1.set_video_marquee_int(8, 10);

Pls help me !!!

InfoBridge
New Cone
New Cone
Posts: 1
Joined: 01 Jan 2015 17:30

Re: How to play video using VLC go to 2 screen by C#

Postby InfoBridge » 01 Jan 2015 17:38

I little experience with .set_video_marquee_int(0, 1);

In version 2.0.X when you used set_video_marquee I had to delay this call until there was active video playing. My delay was 3 seconds behind the call to play or an RTSP stream. If I did not delay it I am guessing the the Z-Axis of the marquee was behind the active video. Making an additional call to set_video_marquee seems to correct the issue.

In version 2.1.X the back end process seems to have changed, the same code base with an upgraded vlccore.lib produced different results, the marquee would appear to blink and then not be visible to the user. I had to make 3 calls to set_video_marquee in order for it to display correctly. If anyone has any insight into this issue it would be greatly appreciated.

If I need to open a new thread instead of tagging onto this one please let me know.

Thanks,

Tim


Return to “Development around libVLC”

Who is online

Users browsing this forum: Google [Bot] and 19 guests