Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 19 APR 1998 07:20:18PM Jim Steinhart wrote:

Does anyone have experience in launching video or music clips from within OI (but using other utility software?

If so

1) Which display software do you find the most compatible?

2) Have you encountered any problems (e.g. memory shortages, color control, etc.)?

We are looking for advice and a consultant. Email me [email protected]


At 19 APR 1998 09:12PM Blaise(Revelation) wrote:

Jim,

You can call the applications that are used to play these files and pass them the filename. Here are 2 examples that I have been successful in using.

Code for wav files declare subroutine utility Get the wav file to play

param="

param=0 ;* open mode

param=WAV Files (*.wav)/*.wav/"

wav=utility("CHOOSEFILE" , @WINDOW , param)

Utility("RUNWIN" , "sndrec32.exe /play /close ":wav , 0)

Code for avi files declare subroutine utility Get the avi file to play

param="

param=0 ;* open mode

paramt=AVI Files (*.avi)/*.avi/"

avi=utility("CHOOSEFILE" , @WINDOW , param)

Utility("RUNWIN" , "mplayer.exe /play /close ":avi , 1)

In the Utility statement for WAV files, 0 is passed so the application sndrec32 will be invisible. In the Utility statement for AVI's, 1 is passed to mplayer to make it visible. Both pass the PLAY and CLOSE parameters to make it seem automatic.

Good Luck…

Blaise


At 20 APR 1998 03:17AM Andrew P McAuley wrote:

Hey Jim,

In SENL in August last year we printed the following

"Sprezzatura have been increasingly involved in the production of Multimedia CD Rom catalogues using OpenInsight and we've been having to integrate multimedia into the repository. The problem we had was that when we EXECUTEd an AVI, the MPLAYER window opened but the video didn't play until the user clicked the play button. This was obviously not what we wanted so a quick browse of the MSDN was called for. There we found what we wanted, two underdocumented command line switches for MPLAYER.EXE namely /play to play the video immediately /close to close MPLAYER after the video has finished. So all that is required is to replace the repository entry subkey as follows - instead of Multim\building.avi we now use /play /close Multim\building.avi note that the switches come BEFORE the file name not after."

This does what we want.

Regards

[email protected]

Sprezzatura Ltd

World Leaders in all things RevSoft

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/df66073444ea0050852565eb0080339a.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1