How to play Video?

Please support our C# advertiser: Intel Parallel Studio Home
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
24 Days Ago
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; 24 Days Ago at 8:54 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,210
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: 572
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast
 
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.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,612
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: 463
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,153
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: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator
 
-6
  #4
23 Days Ago
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; 23 Days Ago 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
23 Days Ago
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
23 Days Ago
@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
23 Days Ago
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
23 Days Ago
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
23 Days Ago
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,612
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: 463
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #10
23 Days Ago
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC