VIDEO
Posted: Fri Oct 11, 2019 5:36 am
Hi everyone, I need to play a VIDEO
Any idea how to do it
Thank you
Miguel
Any idea how to do it
Thank you
Miguel
Donnay Software Web Forums
http://bb.mobile.donnay-software.com/Donnay/
http://bb.mobile.donnay-software.com/Donnay/viewtopic.php?f=2&t=2653
use XppFd,EXE (Formdesigner) and DragDrop WMP (Windows Media Player) Control to Forum.MIGUELON wrote:Hi everyone, I need to play a VIDEO
Any idea how to do it
Code: Select all
bOldError := ERRORBLOCK( { | e | BREAK( e ) } )
BEGIN SEQUENCE
// Create an ActiveX instance in the Form client area, and wrap it in an Xbase++ class instance
oWMP := XBPACTIVEXCONTROL() :new( oAnzeig,, { 0, 0 - nHidepanel }, aSize )
// oWMP:CLSID := "WMPlayer.OCX.7"
oWMP:CLSID := "{6BF52A52-394A-11D3-B153-00C04F79FAA6}"
oWMP:create()
RECOVER USING oError
IF oError:subCode == 6500
MSGBOX( "Error creating ActiveX Control." + CRLF + ;
"Please make sure M$ Mediaplayer 9 Componends" + CRLF + ;
"WMP.OCX are installed on your computer.", ;
"WMPlayer Sample" )
oWMP := NIL
QUIT
ENDIF
END SEQUENCE
ERRORBLOCK( bOldError )
Code: Select all
bOldError := ERRORBLOCK( { | e | BREAK( e ) } )
BEGIN SEQUENCE
oWMP:URL := cPlayFile
RECOVER
ERRORBLOCK( bOldError )
MSGBOX( cPathFile + " coud not be opend", "load URL" )
oWMP:Controls:stop()
RETURN
END SEQUENCE
ERRORBLOCK( bOldError )
i guess it is not a Problem to place a ActiveX into eXpress++ dialogs ... just change the Parent.MIGUELON wrote:Hi Roger that was my question, the type of video file can be mp4.
But I would like to play this video with the eXpress dialogs.
to play more than 1 Video it need "more"MIGUELON wrote: The idea is to play several videos that are in a folder to advertise on a second screen.
For now I have done it with "DC_BitMapDraw" teaching images but I want to change and be able to teach MP4 videos
Code: Select all
::oWMP:currentMedia:Duration
Code: Select all
::oWMP:Controls:CurrentPosition