A JavaBean to play sound files
By francois degrelle on Friday, March 27 2015, 14:52 - PJC - Javabean - Permalink
Purpose
This is a JavaBean that allows to play sound files from the file system.
The Java code
sound.java soundlist.java soundloader.java
note : the jar file must be signed
Implementation Class property
oracle.forms.fd.Sound
The properties you can set
Set the file name to read
Set_Custom_Property( 'BLK.BEAN', 1, 'SET_FILE', 'directory,filename' ) ;
Play the sound
Set_Custom_Property( 'BLK.BEAN', 1, 'PLAY', '' ) ;
The sample dialog
. Download the sound.zip file
. Unzip the file
. copy the sound.jar file in the <ORACLE_HOME>/forms/java directory
. Edit your /forms/server/formsweb.cfg file
. Open the SOUND.fmb module (Oracle Forms 9.0.2)
. Compile all and run the module