Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
How to add a transparent controls on the video? winform,I am using vlcplayer broadcast video
Posted
Comments
Kuthuparakkal 5-Aug-13 23:56pm    
What hae you tried so far ? Explain more
walwyn 6-Aug-13 1:15am    
I tried a lot of kinds of methods but all not line

1 solution

No problem, if you switch to WPF. Not a problem at all. Some background: WPF, as well as video, is based on DirectX, where everything can be superimposed on everything and be transparent or not.

What if you want to stay with System.Windows.Forms and still work with both video and transparency… it's hard to imaging worse decision. It is possible, but very difficult. The whole nature of Forms, which is based on Windows API and GDI+ works against it. Do you want problems which probably won't worth the effort? You could use DirectX on low level. To put a semi-transparent image over video, you will have to use so called overlay manager. GDI+ resists…

So, the real, not overly perverted solution is WPF. The player is available: System.Windows.Media.MediaPlayer:
http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx[^].

VCL as the broadcast software still can be used. As the control? I don't know exactly, really. At least some part of this software can be used, I'm sure, starting from the fact the it's based on ffMpeg/libavcodec; frankly, Windows Media Player feature set looks simply ridiculous next to ffMpeg/libavcodec…

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900