New method for TMci

New method for TMci

Postby Enrico Maria Giordano » Mon Feb 06, 2006 8:26 pm

Here it is (for playing fullscreen):

Code: Select all  Expand view
#define MCI_PLAY 2054
#define MCI_MCIAVI_PLAY_FULLSCREEN 33554432

METHOD PlayFull() INLINE MciSendCommand( ::nId, MCI_PLAY, MCI_MCIAVI_PLAY_FULLSCREEN, "" )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8402
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Tue Feb 07, 2006 10:21 am

Enrico,

Added, many thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41456
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Tue Feb 07, 2006 10:44 am

Thank you. You may add this to TVideo too:

Code: Select all  Expand view
METHOD PlayFull() INLINE ::oMci:PlayFull()


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8402
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Tue Feb 07, 2006 10:48 am

Enrico,

big thanks,

you are truly inspired :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41456
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Tue Feb 07, 2006 10:52 am

:-) :-) :-)

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
Enrico Maria Giordano
 
Posts: 8402
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Tue Feb 07, 2006 10:53 am

Yes, please :)

All enhancement are welcome!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41456
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Tue Feb 07, 2006 11:32 am

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

Code: Select all  Expand view
::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
Enrico Maria Giordano
 
Posts: 8402
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby vilian » Wed Mar 14, 2007 1:11 pm

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
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Enrico Maria Giordano » Wed Mar 14, 2007 1:36 pm

No, sorry. Maybe the codec?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8402
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 126 guests