473,548 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

playing an avi file in a window

Here is what I want to do..

You know how the file copy dialog boxes in explorer show an animated image
as the files copy? Well that is an AVI file with a magenta background color.
The background color becomes transparent when played on a form. How can I do
this in C# on a WinForm? Thanks
Nov 16 '05 #1
2 3181
If it's possible, it will be in the managed directx classes. Unfortunately,
DirectShow has not been wrapped with managed classes (there is an
AudioVideoPlayb ack class, but I doubt it has the features you need).

The newsgroup for this library is:
microsoft.publi c.win32.program mer.directx.man aged

Hope that helps you get started...

--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Brian Henry" <brian.henry[nospam]@adelphia.net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Here is what I want to do..

You know how the file copy dialog boxes in explorer show an animated image
as the files copy? Well that is an AVI file with a magenta background color. The background color becomes transparent when played on a form. How can I do this in C# on a WinForm? Thanks

Nov 16 '05 #2
there is a win32 api do this... it's in many applications and in explorer
with out any references to directx..

here is an example in VB6

http://www.vbaccelerator.com/home/VB...er/article.asp

no clue how to convert it to C# though...


"Michael Mayer [C# MVP]" <mi**@mag37.com > wrote in message
news:u5******** ******@TK2MSFTN GP09.phx.gbl...
If it's possible, it will be in the managed directx classes. Unfortunately, DirectShow has not been wrapped with managed classes (there is an
AudioVideoPlayb ack class, but I doubt it has the features you need).

The newsgroup for this library is:
microsoft.publi c.win32.program mer.directx.man aged

Hope that helps you get started...

--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Brian Henry" <brian.henry[nospam]@adelphia.net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Here is what I want to do..

You know how the file copy dialog boxes in explorer show an animated image as the files copy? Well that is an AVI file with a magenta background color.
The background color becomes transparent when played on a form. How can

I do
this in C# on a WinForm? Thanks


Nov 16 '05 #3

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

Similar topics

1
2676
by: laredotornado | last post by:
Hello, I want to play an audio file embedded on my page by clicking on an audio image and the page change to a new page. Is there a cross-browser Javascript way to do this? Right now the code I have is ... <html> <head> <title>Dictionary: homeostasis</title> <link href="liveink.css" type="text/css" rel="stylesheet"/> </head>
2
4464
by: Dave | last post by:
Hi, I am writing a c# application that using a directshow to play file and display it on my C# gui, its work just fine but when i try to open another thread in my c# application the file stop playing and i get black image!!! Why? What i should considre when i open a new thread in c# application?? Thanks
7
6437
by: Lee Moody | last post by:
I just want quick and easy way to play a .wav file out the standard sound device. It could even be as simple as activating a sound assigned to an existing windows sound event. Any suggestions? Thanks in advance. -Lee
0
2462
by: Raven Jones | last post by:
Heya all, I'm working on a web-based application (using ASP.NET and C# on .NET 1.1.4322, supporting only IE6 for Windows) that allows for file uploads. Screen real estate is at a premium, so I want to set its style to "display: none;" and interact only with the standard file upload dialog (which can be summoned by firing the click() method...
6
10043
by: Johnny J. | last post by:
Can anybody get me started on how to play an FLV file? Like you play e.g. mpeg files using the wmplayer control, I want a box on my form where the FLV is played and the playback is controlled byt the user. Cheers, Johnny J.
0
7512
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...
0
7707
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. ...
0
7803
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6036
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...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5082
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...
0
3475
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1926
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
1051
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.