Windows Develop Bookmark and Share   
 index > Windows Forms General > play video on the form without a control
 

play video on the form without a control

Is it possible to play a video file on a specific area on the form using code code without placing a control to contain the video file? any C# example plz? Thanks..
Jassim Rahma
Jassim Rahma  Friday, September 18, 2009 2:47 PM

Hi,

I don’t think this is easy to draw the video images on the windows forms. Every control is paint on the form including the form itself.

If you want to analysis and show the video, you can paint it in a special area on the form.

Some information about Windows Media Player Control: http://msdn.microsoft.com/en-us/library/ms930695.aspx

Hope this helps.

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Friday, September 25, 2009 2:09 PM

Seems like you're basically talking about writing your own video player. I don't know of any code examples for that. What's the problem with using a control?

ScottyDoesKnow  Friday, September 25, 2009 3:17 PM
because windows media control will not play real media and quicktimes format.. then?
Jassim Rahma
Jassim Rahma  Friday, September 25, 2009 9:04 PM
Quicktime is Apple so I'd doubt there's any official support for C#. I don't think realmedia files are playable on many players, but I found this on wikipedia:

http://en.wikipedia.org/wiki/Rockbox

Both of those can be streamed over the internet though, quicktime on it's own if you have the player, realmedia you might need a flash program for I don't know (there's also Real Alternative which is codecs for windows media player, so you might be able to play it with the WMP Control). So you could always hack it by using an internet browser control and making it the same size as the video.

But basically what you're trying to do is create your own media player that can play any type of video, which is not easy to do. The best one out there (in my opinion) is VLC media player, and I don't think it can play realmedia files. Speaking of VLC media player, it's open source though I don't know what it's written in. Your best bet may be using that source code, which should be fine if it's not a commercial application. Either way it's not going to be simple.
ScottyDoesKnow  Monday, September 28, 2009 1:47 PM

You can use google to search for other answers

Custom Search

More Threads

• Adding a save button to a binding navigator for multiple tables
• How do you merge a ContextMenuStrip with a MenuStrip?
• Downloading a file
• Notepad to Image
• Double/Single .... Integer/Byte
• Custom Control - Extending Over Parents Edge
• BUG: TreeView Indent in Vista causes HitTest to fail
• Move the Directory
• Tab through Tree nodes
• Build a UserControl as Login