944,017 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 9396
  • C# RSS
You are currently viewing page 1 of this multi-page discussion thread
Nov 4th, 2009
0

How to play Video?

Expand Post »
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............
Last edited by VibhorG; Nov 4th, 2009 at 8:54 am.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
VibhorG is offline Offline
71 posts
since Aug 2009
Nov 4th, 2009
1
Re: How to play Video?
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.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Nov 4th, 2009
0
Re: How to play Video?
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.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Nov 4th, 2009
-6
Re: How to play Video?
Click to Expand / Collapse  Quote originally posted by adatapost ...
. Here is a good example to play a video using DirectX - .
You can also play video in a 3d space using the XNA framework if you want to do some fanciness
Last edited by jbennet; Nov 4th, 2009 at 10:23 pm.
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is online now Online
16,525 posts
since Apr 2005
Nov 5th, 2009
-1
Re: How to play Video?
Thank you all for your replies..............
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
VibhorG is offline Offline
71 posts
since Aug 2009
Nov 5th, 2009
-1
Re: How to play Video?
@sknake
Well sknake i want to to inbuilt video in my application, and want to play videos from there, like as user click on link, related video should start on form.
Can i do this thing as well with add to reference of Window Media Player in my application.................?
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
VibhorG is offline Offline
71 posts
since Aug 2009
Nov 5th, 2009
-1
Re: How to play Video?
Click to Expand / Collapse  Quote originally posted by jbennet ...
You can also play video in a 3d space using the XNA framework if you want to do some fanciness
jbennet can you please tell me how can i use XNA framework in my application, i never used this..........
Can you explain me something more about this..........?
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
VibhorG is offline Offline
71 posts
since Aug 2009
Nov 5th, 2009
0
Re: How to play Video?
Click to Expand / Collapse  Quote originally posted by adatapost ...
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.
One thing i want to ask you, if i am using DirectX to develop my application, So is it necessary that DirectX should also be installed on User end..........?
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
VibhorG is offline Offline
71 posts
since Aug 2009
Nov 5th, 2009
0
Re: How to play Video?
Click to Expand / Collapse  Quote originally posted by sknake ...
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.
Well sknake i have done whatever you mentioned here,
BUt now tell me how can i run the video inside this........?
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
VibhorG is offline Offline
71 posts
since Aug 2009
Nov 5th, 2009
0
Re: How to play Video?
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: close button event for form
Next Thread in C# Forum Timeline: get name of file opened through file association





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC