| | |
How to play Video?
Please support our C# advertiser: Intel Parallel Studio Home
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; 24 Days Ago at 8:54 am.
1
#2 23 Days Ago
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 23 Days Ago
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; 23 Days Ago at 10:03 pm.
Failure is not fatal, but failure to change might be. - John Wooden
•
•
Join Date: Aug 2009
Posts: 56
Reputation:
Solved Threads: 1
0
#8 23 Days Ago
•
•
•
•
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 23 Days Ago
•
•
•
•
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 23 Days Ago
Take a look at this article - http://msdn.microsoft.com/en-us/libr...51(VS.85).aspx
Failure is not fatal, but failure to change might be. - John Wooden
![]() |
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
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client combobox connection console control conversion csharp custom database datagrid datagridview dataset datetime degrees deployment developer development draganddrop drawing editing encryption enum event excel file form format forms function gdi+ hospitalmanagementinformationsystem httpwebrequest image imageprocessing index input install java label list listbox mandelbrot math mouseclick mysql operator oracle path photoshop picturebox pixelinversion post priviallages. programming radians regex remote remoting richtextbox rows serialization server sleep socket sql statistics stream string table temperature text textbox thread time timer txt update uploadatextfile usercontrol validation visualstudio webbrowser windows windowsformsapplication winforms wpf xml






