Video in FullScreen

Video in FullScreen

Postby bterce@matrixcomputer.com » Tue Mar 20, 2007 9:18 pm

Hi,

I'm trying to create an application that plays video in fullscreen mode. However the video class of my old version of xHarbour does not support video in fullscreen mode. Do I need to buy the latest xHarbour? Please help.

Bert
bterce@matrixcomputer.com
 
Posts: 10
Joined: Mon Mar 05, 2007 11:18 pm
Location: Southern California

Postby vilian » Thu Mar 22, 2007 1:13 am

hi,

Try this,


Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   local oWnd, oActiveX

   DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"

   oActiveX = TActiveX():New( oWnd, "MediaPlayer.MediaPlayer.1" )

   oWnd:oClient = oActiveX // To fill the entire window surface

   oActiveX:SetProp( "DisplaySize", 2 )
   oActiveX:SetProp( "FileName", "trailler.avi" )
   oActiveX:bOnEvent = { | event, aParams | EventInfo( event, aParams ) }

   ACTIVATE WINDOW oWnd

return nil

function EventInfo( event, aParams )

   local cMsg := "Event: " + cValToChar( event ) + CRLF + CRLF
   local n

   cMsg += "Params: "

   for n = 1 to Len( aParams )
      cMsg += cValToChar( aParams[ n ] ) + CRLF
   next

   MsgInfo( cMsg )

return nil

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 977
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

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