Posted By: Doctor Who | Sep 6th @ 3:31 PM
page 1 of 1
Comments: 4 | Views: 735
How do I get a video to display in a Windows Forms application?
wisemx
wisemx
Live it
I used this methods a few weeks ago and got some good results out of it:
http://blogs.msdn.com/calvin_hsia/archive/2007/11/29/6600915.aspx
CannotResolveSymbol
CannotResolveSymbol
{insert caption here}
And that's not Windows Forms.

If you just want to play a video, the Windows Media Player COM component works quite nicely.  If you're using the WinForms designer, you can add it to the Toolbox by selecting Choose Items on the Toolbox's context menu (which apparently takes a really long time to open on my machine) and selecting Windows Media Player on the COM tab.

If you want to be able to draw on top of the video or want a little more control, you probably want to use DirectShow (via DirectShow.net, if that project's not dead).  You can't layer other components (including labels) on top of the WMP control; they'll just punch a hole through the control and show the form's background.  See http://channel9.msdn.com/forums/TechOff/138593-Superimpose-text-on-top-of-Windows-Media-Player/.
wisemx
wisemx
Live it
I was hoping WPF would suffice.
The methods in that link worked out very nicely.
You can create a WPF "form" listing videos and play them just by clicking.
page 1 of 1
Comments: 4 | Views: 735