Tambien puede servirte:
oActiveX : currentmedia:name
Windows Media Player is embedded without controls, and with only the video or visualization window displayed.
Function Main()
Private oActiveX
DEFINE DIALOG oDlgP TITLE UPPER(NOMBRE) STYLE WS_POPUP ; oDlgP:lHelpIcon := .F.
ACTIVATE DIALOG oDlgP NOWAIT ON INIT PlayVideo() VALID (oActiveX:controls:Stop(),.T. )
Return nil
*
Function PlayVideo()
oActiveX = TActiveX():New( oDlgP, "WMPlayer.OCX" )
__KeyBoard(chr(13))
oDlgP:oClient = oActiveX
oDlgP:MAXIMIZE()
oActiveX:Settings:Volume = 100
oActiveX:StretchToFit = .T.
oActiveX:url ="C:\VIDEOS\video1.avi" // "C:\MUSICA\audio1.mp3"
While oActiveX:Playstate != 1
SysRefresh()
If Lastkey()=27
Exit
Endif
EndDo
oDlp:End()
Return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 36 guests