New method for TMci

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

New method for TMci

Post by Enrico Maria Giordano »

Here it is (for playing fullscreen):

Code: Select all

#define MCI_PLAY 2054
#define MCI_MCIAVI_PLAY_FULLSCREEN 33554432

METHOD PlayFull() INLINE MciSendCommand( ::nId, MCI_PLAY, MCI_MCIAVI_PLAY_FULLSCREEN, "" )
EMG
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Added, many thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Thank you. You may add this to TVideo too:

Code: Select all

METHOD PlayFull() INLINE ::oMci:PlayFull()
EMG
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

big thanks,

you are truly inspired :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

:-) :-) :-)

I think it could be useful to add MPEG playing capability to TVideo. Do you want my modified TVideo (very little changes)?

EMG
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Yes, please :)

All enhancement are welcome!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

It is enough to change this in New() and Redefine() methods:

Code: Select all

 ::oMci = TMci():New( "mpegvideo", cFileName )
We may use the filename extension to automatically switch from AVI to MPG or add a new clause in VIDEO command and leave the choice to the user.

EMG
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Post by vilian »

Hi Enrico,

When I show archives avi(divx) with the "Video" class, some times the image alone I appear if to make some movement in the window!

You know why this you happen?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Post Reply