Page 1 of 1

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

Posted: 02 Oct 2011 16:41
by bonnymon
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,

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

Posted: 02 Oct 2011 23:37
by devildrey33
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.

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

Posted: 04 Sep 2014 13:19
by bonnymon
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.

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

Posted: 04 Sep 2014 13:30
by bonnymon
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 !!!

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

Posted: 01 Jan 2015 17:38
by InfoBridge
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