Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining dimensions of video snippet
Message
De
22/12/2003 09:55:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00861231
Message ID:
00861257
Vues:
17
>To get at the dimensions of a video from within VFP:
>
ov=CREATEOBJECT("WMPlayer.OCX")
>ov.currentMedia=ov.newMedia("file://c:\scratch\test.mpg")
>?ov.currentMedia.imageSourceHeight
>?ov.currentMedia.imageSourcewidth
>
>Any suggestions on how to do this from an ASP application so you can determine the actual H&W sizes of a video snippet on the fly? I'm concerned that instantiating a media player (per example above) like you can do with an interactive application will cause problems. Thanks!

What you meant.. If it is the X,Y aspect ratio of the current resolution (of MSWindows):

sysmetric(1) - brings the width
sysmetric(2) - bring the height

Maybe, this is what you are looking for
ov.currentMedia.imageSourceHeight = sysmetric(2)
ov.currentMedia.imageSourcewidth  = sysmetric(1)
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform