How to play Video?

Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Aug 2009
Posts: 56
Reputation: VibhorG is an unknown quantity at this point 
Solved Threads: 1
VibhorG VibhorG is offline Offline
Junior Poster in Training

How to play Video?

 
0
  #1
Nov 4th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,443
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 626
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast
 
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.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 544
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator
 
-6
  #4
Nov 4th, 2009
Originally Posted by adatapost View Post
. 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.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 56
Reputation: VibhorG is an unknown quantity at this point 
Solved Threads: 1
VibhorG VibhorG is offline Offline
Junior Poster in Training
 
-1
  #5
Nov 5th, 2009
Thank you all for your replies..............
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 56
Reputation: VibhorG is an unknown quantity at this point 
Solved Threads: 1
VibhorG VibhorG is offline Offline
Junior Poster in Training
 
-1
  #6
Nov 5th, 2009
@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.................?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 56
Reputation: VibhorG is an unknown quantity at this point 
Solved Threads: 1
VibhorG VibhorG is offline Offline
Junior Poster in Training
 
-1
  #7
Nov 5th, 2009
Originally Posted by jbennet View Post
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..........?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 56
Reputation: VibhorG is an unknown quantity at this point 
Solved Threads: 1
VibhorG VibhorG is offline Offline
Junior Poster in Training
 
0
  #8
Nov 5th, 2009
Originally Posted by adatapost View Post
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..........?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 56
Reputation: VibhorG is an unknown quantity at this point 
Solved Threads: 1
VibhorG VibhorG is offline Offline
Junior Poster in Training
 
0
  #9
Nov 5th, 2009
Originally Posted by sknake View Post
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........?
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #10
Nov 5th, 2009
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 870 | Replies: 17
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC