 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
marty Guest
|
Posted: Sun Apr 02, 2006 4:03 am Post subject: help me working without c# please |
|
|
Hi
I have a big deal for you.
Normaly, I must release a software for my bosses.
I already made this soft in visual studio 2003 c#
To understand what to do: please let me show you some code of mine:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using Microsoft.DirectX.AudioVideoPlayback;
.....
.....
private Video _video = null;
void OpenVideo()
{
openFileDialog1.InitialDirectory =
Application.StartupPath;
if (openFileDialog1.ShowDialog() == DialogResult.OK){
// open the video
// remember the original dimensions of the panel
int height = videoPanel.Height;
int width = videoPanel.Width;
// dispose of the old video
if (_video != null)
{
_video.Dispose();
}
// open a new video
_video = new Video(openFileDialog1.FileName);
// assign the win form control that will contain the video
_video.Owner = videoPanel;
// resize to fit in the panel
videoPanel.Width = width;
videoPanel.Height = height;
// play the first frame of the video so we can identify it
_video.Play();
_video.Pause();
}
}
As you see, i can load a file ( anyone like avi) and play it on a simple
panel. The code of class Video is perfet to manipulate information like that
Could you tell me how can i do that in delphi ?
Please a good example to be able to display a movie directly in a panel or
something like that, but in delphi
I use Borland Studio 2006 in delphi ( not delphi .net, the problem is
identicale )
Thanks all for your help
If non, i will be condamne to work in c# in framework ! Don't make that
happpppen
thanks;
Marty |
|
| Back to top |
|
 |
Gerrit Beuze Guest
|
Posted: Sun Apr 02, 2006 7:03 am Post subject: Re: help me working without c# please |
|
|
Did you check TMediaPlayer on tab system?
That should do what you want.
Also: wrong newsgroup: you'd get a better response in
the compoments.using (or 3rd party) newsgroups.
Also, the large code sample is not really necessary here:
this was enough:
| Quote: | As you see, i can load a file ( anyone like avi) and play it on a simple
panel. The code of class Video is perfet to manipulate information like that
Could you tell me how can i do that in delphi ?
|
Gerrit Beuze
ModelMaker Tools |
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|