473,651 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Play a video

Hi

How do I play a video with c#, I don't need my app to play it, I just
wanna my app calling another program (say WMPlayer) and then that
program starts playing the video.

I just need to see how much time is used in load/unload a video or
audio file.

Tnx.
Nov 16 '05 #1
1 4221
Do a search on Code project www.codeproject.com, you will find samples of
what you are asking for.

"Will" <so********@hot mail.com> wrote in message
news:co******** **@domitilla.ai oe.org...
Hi

How do I play a video with c#, I don't need my app to play it, I just
wanna my app calling another program (say WMPlayer) and then that program
starts playing the video.

I just need to see how much time is used in load/unload a video or audio
file.

Tnx.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8481
by: jaffar | last post by:
hi, i am developing a windows application, in my application i have to stor video files into database and play those video files from database , how to da this application, send me replay as soon as possible.
5
14466
by: mcfarlandorama | last post by:
Hello, How do I play a DVD from a website? I am starting with zero knowledge of media but have HTML Experience. I found out that Windows Media Player won't play the DVD. Do I suggest everyone download Real Player for free? or can I put a realplayer plug in on the server? Is it possible to check if they have DVD playing software and use that. The below mentioned is all I have and of course it is not working, that is why I am here.
13
4869
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives, suggestions or improvements? if( wmv file) document.write("<OBJECT id=Player classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354" width="479">
3
4633
by: John Piper | last post by:
Again, I am a beginer, and need help. Can some walk me through the steps to do the following: click a button, which will play a video file in WMP in fullscreen mode (launch player, not in a form) then when the video is done playing, I want the player to close, then the form that had the button to also close. I really do not have a clue, so I need very basic instruction. Thanks to those of you that share what you know so the rest of us...
3
9484
by: rayne | last post by:
hi pls help me on how to play a video in full screen using visual basic 6 and how can I unload the screen and load another form after the video stop from playing. Another is how can I save a video in a database and then play it whenever I click a button. THanks ver much for your help.
3
8371
by: Ryan Liu | last post by:
Hi, I want to play Audio/Video in my C# application(standlalone, not web applicatoin). The source of multimedia may in different formats and decided by the end user, which I have no control. My question is -- which is the best approach to add multimedia capability to my c# application, to support most possible formats, and make it easiest for the end user(e.g. does not need convert before play it)?
5
4852
by: mratanudey83 | last post by:
With the help of this forum members and google search i've done the following part Imports AxShockwaveFlashObjects Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim axShockwaveFlash As New AxShockwaveFlash axShockwaveFlash.Location = New System.Drawing.Point(10, 10) Me.Controls.Add(axShockwaveFlash)
3
8644
by: pavanip | last post by:
Hi, I am new to Silverlight application.I want to display video using Mediaelement tag and I used the below code to play video. <Canvas> <MediaElement x:Name="mPlayer" Width="640" Height="480" Source="a_video.avi"/> <Button x:Name="bPlay" Background="Green" Width="100" Height="45" Canvas.Left="8" Canvas.Top="497" Content="Play" /> <Button x:Name="bPause" Background="Yellow" Width="100" Height="45"...
0
8347
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8792
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7294
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1905
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.