| | |
How to play Video?
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2009
Posts: 56
Reputation:
Solved Threads: 1
Hi all,
Can anyone tell me how can we play the video(.wmv) in C# window application .................?
Let i have some links on window form, As the user click on that link, related video should start playing.....
And i am using VS2008.......
Kindly help me regarding this............
Can anyone tell me how can we play the video(.wmv) in C# window application .................?
Let i have some links on window form, As the user click on that link, related video should start playing.....
And i am using VS2008.......
Kindly help me regarding this............
Last edited by VibhorG; Nov 4th, 2009 at 8:54 am.
1
#2 Nov 4th, 2009
You can embed windows media player in your application which can play videos from your harddrive or stream them from a URL.
Add a reference to "Windows Media Player" aka Interop.WMPLib.dll, and then navigate to the controls in that DLL (using the "customize toolbox" menu option). You will see a media player control. Drop it on your form and away you go.
Add a reference to "Windows Media Player" aka Interop.WMPLib.dll, and then navigate to the controls in that DLL (using the "customize toolbox" menu option). You will see a media player control. Drop it on your form and away you go.
0
#3 Nov 4th, 2009
Good suggestion from scott. Here is a good example to play a video using DirectX - http://www.codeproject.com/KB/graphi...viePlayer.aspx. You may use MCI - Media Control Interface API to play video.
Last edited by adatapost; Nov 4th, 2009 at 10:03 pm.
•
•
Join Date: Aug 2009
Posts: 56
Reputation:
Solved Threads: 1
0
#8 Nov 5th, 2009
•
•
•
•
Good suggestion from scott. Here is a good example to play a video using DirectX - http://www.codeproject.com/KB/graphi...viePlayer.aspx. You may use MCI - Media Control Interface API to play video.
•
•
Join Date: Aug 2009
Posts: 56
Reputation:
Solved Threads: 1
0
#9 Nov 5th, 2009
•
•
•
•
You can embed windows media player in your application which can play videos from your harddrive or stream them from a URL.
Add a reference to "Windows Media Player" aka Interop.WMPLib.dll, and then navigate to the controls in that DLL (using the "customize toolbox" menu option). You will see a media player control. Drop it on your form and away you go.
BUt now tell me how can i run the video inside this........?
0
#10 Nov 5th, 2009
Take a look at this article - http://msdn.microsoft.com/en-us/libr...51(VS.85).aspx
![]() |
Similar Threads
- Play video/flash over the desktop (C++)
- Flash drives won't play video files on 8GB & 16GB drives, but will play on 2GB drives (Storage)
- How to use asp.net Ajax play video? (JavaScript / DHTML / AJAX)
- Freeze when trying to play video files (Windows NT / 2000 / XP)
- can't play video games or watch dvd (Windows NT / 2000 / XP)
Other Threads in the C# Forum
- Previous Thread: close button event for form
- Next Thread: get name of file opened through file association
Views: 870 | Replies: 17
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap broadcast button buttons c# check checkbox class client code color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing event excel file files form format forms ftp function gdi+ http httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator path picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






