BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help me working without c# please

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
marty
Guest





PostPosted: Sun Apr 02, 2006 4:03 am    Post subject: help me working without c# please Reply with quote



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





PostPosted: Sun Apr 02, 2006 7:03 am    Post subject: Re: help me working without c# please Reply with quote



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





PostPosted: Sun Apr 02, 2006 8:03 am    Post subject: Re: help me working without c# please Reply with quote



In article <442f46eb (AT) newsgroups (DOT) borland.com>, Marty wrote:
Quote:

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#

Looks like you should examine the TMediaPlayer class. It is a wrapper around
the Windows multimedia API.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.